# pseudocode example

The following

  \begin{pseudocode}[framebox]{reduce}{projection, x, y, f}
\FOR i \GETS 1 \TO y/f \DO
\BEGIN
\FOR j \GETS 1 \TO x/f \DO
\BEGIN
sum \GETS 0 \\
\FOR m \GETS 1 \TO f \DO
\BEGIN
\FOR n \GETS 1 \TO f \DO
sum = sum + projection[i*f+m][j * f+n]  \\
\END \\
reducedProjection[i][j] = sum / (f * f) \\
\END
\END \\
\RETURN{reducedProjection}
\end{pseudocode}

produced:

If you'd rather enclose the pseudocode in a figure (upon which you could use the figure number for reference), you can remove the algorithm numbering by using the following command:

  \renewcommand{\thepseudocode}{}

To restore, type
\renewcommand{\thepseudocode}{\thesection.\arabic{pseudocode}}