我正在尝试弄清楚如何在 algorithm2e 算法上方添加空间。该算法超出了边距,我无法让它使用 vspace 向下移动。只是顶部栏超出了边距。
\documentclass[letterpaper, 10 pt, conference]{ieeeconf}
\IEEEoverridecommandlockouts
\overrideIEEEmargins
\begin{algorithm}
\SetAlgoLined
\KwIn{Initial configuration $s$}
\KwOut{A sequence}
Create tree \Tree{}\;
Create auxiliary\;
\While{$t$ not in \Tree }
{
\If{guiding iteration}
{
Find a node\;
Create a new node\;
\If{$n'$ is valid }{
Calculate\;
Insert $n'$ into \Tree{}\;
}
}
\Else
{
Generate a random;
Find a node\;
Create a new node\;
\If{$n'$}{
Calculate a configuration\;
Insert $n'$\;
}
}
Check to see\;
}
Generate a path\;
\Return $P$\;
\caption{WRRT*}
\label{ALG:Path}
\end{algorithm}