KTUGFaq

KTUG FAQ

α:
йȣ:
Men seldom show dimples to girls who have pimples.
Karnes/2006-05&value=Yhchoe/WinEdt̵WinEdt/KC2007&value=Yhchoe/WinEdt̵?독후감&value=DHUcs/FindPage › KC2006/ó�������/��ġ/DviOut����&value=KC2006/ó/FindPageScientificWorkPlace&value= › 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 ϸ . ̴ ذѴ. KTUGOperate:18108

\documentclass{memoir}

\let\MEMOIRnewfloat\newfloat
\let\newfloat\relax
\usepackage{algorithm}
\usepackage{algpseudocode}
\let\newfloat\MEMOIRnewfloat

[]

comment ٲٱ

C++ ŸϷ ĿƮ ִ. ̰ Ѵ.

\renewcommand{\algorithmiccomment}[1]{\hfill// #1}

[]

Ŭ ˰ ̴.

\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}

.
a.jpg

[]

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/

[]


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-01-11 01:30:26
Processing time 0.0492 sec