I get a Undefined control sequence \WHILE error in my latex code.
\documentclass[11pt]{article}
\usepackage{algorithm}
\usepackage{algorithmicx}
\begin{document}
\begin{algorithm}
\begin{algorithmic}
$ \bar{w} \leftarrow w.$
$S = \{u \in V : w(u) = 0 \}$.
$ \WHILE{S is not a hitting set for C} do
\mathcal{M} $ a collection of cycles returned by a violation oracle Violation(G, C, S).
$c_{ \mathcal{M} (u) } \leftarrow |{M _ M : u _ M}|, for all u _ V $.
$ \alpha
\leftarrow min_ {u \in V \backslash S} | w(u) /
c_{M (u) } $
$\bar{
w(u) } \leftarrow w(u) - \alpha cM (u),$ for all u in V.
$ S \leftarrow \{u _ V : w(u) = 0 \}.
\ENDWHILE $
%end
return a minimal hitting set $ H \subset S $ of $\mathcal{C}$.
\end{algorithmic}
\end{algorithm}
\end{document}
Also I'm a bit confused about the various algorithms packages and which can be used together