Change FORALL to FOREACH in algorithms package
Simple enough and covered in the algorithms
manual:
\renewcommand{\algorithmicforall}{\textbf{for each}}
This command redefines the macro that is used to typeset \FORALL
. It should be placed in the document preamble.
You can also use the following trick to convert \FOR
into \FOREACH
in algorithms
package
\FOR{\textbf{each} a in b}
\STATE do something
\ENDFOR
There is a For Each loop in the algorithm2e
package.