\newcounter{algorithm}
\def\thealgorithm{\@arabic\c@algorithm}
\def\theauxalgorithm{\thealgorithm}
\def\fps@algorithm{tbp}
\def\ftype@algorithm{2}
\def\ext@algorithm{lot}
\def\fnum@algorithm{Algorithm \thealgorithm}
\def\algorithm{\@float{algorithm}}
\let\endalgorithm\end@float
\@namedef{algorithm*}{\@dblfloat{algorithm}}
\@namedef{endalgorithm*}{\end@dblfloat}
