我想用
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
但是,我无法得到我想要的,请参考下面的代码
\begin{algorithm}
\DontPrintSemicolon
\KwIn{Data 1,2 to n }
\KwOut{Optimal $\alpha$ and $\beta$}
\If{ Condtion 1} {pass $\alpha_{0},\beta_{0}$}
\ElseIf {Condtion 2}{pass $\alpha_{1},\beta_{1}$}
\ElseIf {Condtion 3}{pass $\alpha_{2},\beta_{2}$}
\ElseIf {Condtion 4}{pass $\alpha_{3},\beta_{3}$}
\Else
{pass $\alpha_{4},\beta_{4}$}
\caption{Algorithm to obtain optimal $\alpha$}
\label{algo1}
\end{algorithm}
那么我该如何根据我所附的图片来编辑它呢?