\documentstyle[12pt]{article}
\textheight=9.5in
\topmargin=-0.5in
\oddsidemargin=0in
\evensidemargin=0in
\textwidth=6.5in
\newcommand{\grad}{\nabla}
\newcommand{\spone}{1.02}
\newcommand{\sptwo}{1.59}
\newcommand{\spmed}{1.28}
\newcommand{\singlespace}{\edef\baselinestretch{\spone}\Large\normalsize}
\newcommand{\doublespace}{\edef\baselinestretch{\sptwo}\Large\normalsize}
\newcommand{\mediumspace}{\edef\baselinestretch{\spmed}\Large\normalsize}
\newcommand{\beq}{\begin{displaymath}}
\newcommand{\be}{\begin{equation}}
\newcommand{\eeq}{\end{displaymath}}
\newcommand{\ee}{\end{equation}}
\newcommand{\bl}{\begin{flushleft}}
\newcommand{\el}{\end{flushleft}}
\newcommand{\bc}{\begin{center}}
\newcommand{\ec}{\end{center}}
\newcommand{\La}{\Longleftarrow}
\newcommand{\la}{\langle}
\newcommand{\Ra}{\Longrightarrow}
\newcommand{\ra}{\rangle}
\newcommand{\Ba}{\Longleftrightarrow}
\newcommand{\goto}{\rightarrow}
\pagestyle{empty}
\begin{document}
\begin{center}
\fbox{\bf Depth-first Search Algorithm for SAW Enumeration}
\end{center}
\vspace{0.25in}

\begin{description}
\item[0.] Decide on a fixed $local$ search order around a site. Initialize
          all variables.
\item[1.] $Occupy$ the starting point, set $n=1$, and set search directioon
          index at this site as $dir(1)=1$.
\item[2.] Test if all directions around site $n$ have already been searched.
 \begin{itemize}
  \item If yes:
   \begin{itemize}
    \item $Unoccupy$ site $n$.
    \item Decrement $n$ $\Ra$ $n-1$.
    \item If $n=0$, you are done. Otherwise, repeat {\bf 2}.
   \end{itemize}
  \item If not, test the target in $dir(n)$ from site $n$ is $available$:
   \begin{itemize}
    \item If it is:
     \begin{itemize}
      \item Extend SAW to this site and add this walk to statistics.
      \item Increment $dir(n)$.
      \item Test if $n+1=n_{max}$.
       \begin{itemize}
        \item If it has, repeat {\bf 2}.
        \item If not:\\
           $\;\;=$ Increment $n$ $\Ra$ $n+1$.\\
           $\;\;=$ $Occupy$ the target site.\\
           $\;\;=$ Set $dir(n)=1$.\\
           $\;\;=$ Repeat {\bf 2}.\\
       \end{itemize}
     \end{itemize}
    \item If it is not, increment $dir(n)$ and repeat {\bf 2}.
   \end{itemize}
 \end{itemize}
\end{description}
\end{document}
