Tagged Questions
3
votes
1answer
3k views
Recursive algorithms with the »algorithms« package?
I need to write a recursive algorithm, using the algorithms package.
I thought of writing something like this:
\begin{algorithmic}
\IF {$x=1}
\RETURN 1
\ELSE
\RETURN recurse$(x-1)$
\ENDIF
...