I want describe an algorithm, and that's why I wanted to use the algorithm
package, but the algorithm that I define does not involve of pseudocode. Instead it has more steps and math formulas, so I want to describe it as stages using itemize
, and write normal text and some math equations inside the algorithm. I started with something like this, assuming it is valid, but it gives errors.
\documentclass[a4paper]{paper}
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{document}
\begin{algorithm}
\caption{MyAlgo}
\begin{algorithmic}
\begin{itemize}
\item \textbf{Parameters:} $n, t \in \mathbb{N}$, where $t < n$.
\end{itemize}
\end{algorithmic}
\end{algorithm}
\end{document}
Any ideas how can I add itemize, and some math stuff inside an algorithm?