In the AAAI template, if the algorithm is slightly long, but much shorter than the height of a column, it is pushed to the next column, no matter how short the current text is. How can I avoid this?
Here is an example:
\documentclass[letterpaper]{article}
\usepackage{aaai17} %Required
\usepackage{times} %Required
\usepackage{helvet} %Required
\usepackage{courier} %Required
\usepackage{url} %Required
\usepackage{graphicx} %Required
\frenchspacing %Required
\setlength{\pdfpagewidth}{8.5in} %Required
\setlength{\pdfpageheight}{11in} %Required
\usepackage[vlined,ruled,linesnumbered]{algorithm2e}
\begin{document}
some texts.
\begin{algorithm}[htb]
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\KwRet{A}\;
\end{algorithm}
\end{document}


some texts.then the column will fill, so there does not seem to be a real problem, although it would be better to make the float 6pt smaller vertically – David Carlisle Mar 25 '17 at 20:27(\end occurred inside a group at level 1)at the end of the log ? that denotes a serious bug in the package... – David Carlisle Mar 25 '17 at 20:40