I have this snippet:
\documentclass[10pt]{article}
\usepackage{amsmath}
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
\begin{document}
\begin{algorithm}
\While{$|\text{OPEN}| > 0$}{
$u = \textsc{ExtractMinimum}(\text{OPEN})$ \\
}
\caption{\textsc{$A*$}$(s, t, w, h)$}
\end{algorithm}
\end{document}
which produces the following output:
My problem is that I cannot find a way to make LaTeX typeset on the first line "OPEN" instead of "OPEN"? Any advice?