Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- usepackage{algorithm}
- usepackage[noend]{algpseudocode}
- algnewcommand{Inputs}[1]{%
- State textbf{Inputs:}
- Statex hspace*{algorithmicindent}parbox[t]{.9linewidth}{raggedright #1}
- }
- algnewcommand{Outputs}[1]{%
- State textbf{Outputs:}
- Statex hspace*{algorithmicindent}parbox[t]{.9linewidth}{raggedright #1}
- }
- algnewcommand{Compute}[1]{%
- State textbf{Compute:}
- hspace*{algorithmicindent}parbox[t]{.9linewidth}{raggedright #1}
- }
- begin{algorithm}
- begin{algorithmic}
- Inputs{$X$}
- Compute{
- For{i = 0 to I}
- State do sth in the loop
- EndFor
- }
- Outputs{$Y$}
- end{algorithmic}
- end{algorithm}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement