\begin{algorithm}
\caption{Young Find}
\begin{algorithmic}
\INPUT a $m \times n$ young matrix $Y$ and a $key$ to be found
\OUTPUT true if $key \in Y$, otherwise false
\STATE $i = m$
\STATE $j = 1$
\WHILE{$i \ge 1$ \AND $j \le n$}
\IF{$Y[i, j] > key$}
\STATE $i = i - 1$
\ELSEIF{$Y[i, j] < key$}
\STATE $j = j + 1$
\ELSE
\RETURN \TRUE
\ENDIF
\ENDWHILE
\RETURN \FALSE
\end{algorithmic}
\end{algorithm}