I'm making slides with beamer. My algorithm is a little bit long so that I cannot put it in one slide. I need to divide it from the middle of it and display it in two slides. What should I do?
\usepackage[ruled]{algorithm2e}
\begin{frame}[allowframebreaks]
\begin{algorithm}[H]
\footnotesize
\caption{What should I do?}
\KwIn{$\{\bm{K}_m\},C$.}
\KwOut{$\bm{\alpha},\bm{d}$.}
set someting;
\While{stopping criterion not met}{
compute sth.\;
compute sth.\;
set sth.\;
computing sth.\;
set sth.\;
\While{sth.}{
sth.\;
sth.\;
sth.\;
sth.\;
sth.\;
sth.\;
}
}
\end{algorithm}
\end{frame}

\documentclassand the appropriate packages that sets up the problem. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. – samcarter_is_at_topanswers.xyz Mar 11 '19 at 15:46