KTUGFaq
KTUG FAQ
WarmReader › LUGs&value= › 占쏙옙占쏙옙占쌕띰옙占쏙옙占쏙옙占쏙옙占 › NSIS&value=ǥѱTeXȯƮ › MiKTeXѱȯ/HPack&value=Yhchoe/FrontPage › Algorithm
Algorithms Rogerio Brito ˰ ǥ Ű̴. CS о߿ ˰ ǥؾ ϴ 찡 ̰ ϰ ִ.
algorithmic ȯ ¶
algorithmic ȯ item ϱ ó ɾ ; Ѵ. [1] ȣ ϳ ̶ ǹ̰ ȴ.
\begin{algorithmic}[1] \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b} \State $r\gets a\bmod b$ \While{$r\not=0$}\Comment{We have the answer if r is 0} \State $a\gets b$ \State $b\gets r$ \State $r\gets a\bmod b$ \EndWhile\label{euclidendwhile} \State \textbf{return} $b$\Comment{The g.c.d. is b} \EndProcedure \end{algorithmic}
algorithm ȯ ¶
̸ float ϰ ؼ algorithm ̿ϸ ȴ.
\begin{algorithm} \caption{Euclids algorithm}\label{euclid} \begin{algorithmic}[1] ... \end{algorithmic} \end{algorithm}
\listofalgorithms ȴ.
memoir 浹ذ ¶
float memoir ϸ . ̴ ذѴ. 18108
\documentclass{memoir} \let\MEMOIRnewfloat\newfloat \let\newfloat\relax \usepackage{algorithm} \usepackage{algpseudocode} \let\newfloat\MEMOIRnewfloat
¶
Ŭ ˰ ̴.
\documentclass{memoir} \let\MEMOIRnewfloat\newfloat \let\newfloat\relax \usepackage{algorithm} \usepackage{algpseudocode} \let\newfloat\MEMOIRnewfloat \renewcommand{\algorithmiccomment}[1]{// #1} \begin{document} \listofalgorithms \begin{algorithm} \caption{Euclids algorithm}\label{euclid} \begin{algorithmic}[1] \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b} \State $r\gets a\bmod b$ \While{$r\not=0$}\Comment{We have the answer if r is 0} \State $a\gets b$ \State $b\gets r$ \State $r\gets a\bmod b$ \EndWhile\label{euclidendwhile} \State \textbf{return} $b$\Comment{The g.c.d. is b} \EndProcedure \end{algorithmic} \end{algorithm} \end{document}
.
algorithmicx Ű ¶
algorithmic Ű Ȯ algorithmicx Ű̴. \usepackage{algpseudocode} μ ڵ ̿ϰ ȴ. Ű .
algorithmicx.pdf (191.55 KB)
Introduction to Algorithms, Second Edition. ¶
˰ ؼ ̺ å LaTeX clrscode.sty ġ ִ.
http://www.cs.dartmouth.edu/~thc/clrscode/