# Floating an algorithm?

I'm typesetting an algorithm using the algorithmx package as follows:

\begin{algorithm}
\caption{\textsc{Whatever}}
\begin{algorithmic}[1]
...
\end{algorithm}


However, I would like it to float like a figure. If I replace \begin{algorithm} with \begin{figure} it does float as I like, however, the caption does not look as pretty any more (I presume it is redefined by a sig-alternate class I am using for the whole document).

Is it possible to have both a nice caption and floating behaviour at the same time?

-
Have you looked into using the float package? – Harald Hanche-Olsen Nov 29 '10 at 14:18
Yes, thank you, it does work. I'll put this as an answer. – Konstantin Nov 29 '10 at 15:11

\usepackage{float}