'Latex algorithm cross-column typesetting

How to use latex to implement the multi-column algorithm in the link below, thank you very much. multi-column algorithm



Solution 1:[1]

Thanks to your suggestions, I finally solved it using "\begin{multicols}{n}" and "\end{multicols}".

\usepackage{multicol}
\begin{algorithm*}[h]
\begin{multicols}{3} //three columns
// your code
}
\end{multicols}
\end{algorithm*}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 young xbhlp