Dez 4, 2006
LaTeX Algorithmenbeschreibung einfügen
The algorithm and the algorithmic environments
The algorithm package provides two environments, algorithm and algorithmic, to represent algorithms, pseudo-codes, program-lists,…,etc., in a professional way.
1. you must use the ‘algorithm’ and ‘algorithmic’ as follows:
\usepackage{algorithm}
\usepackage{algorithmic}
2. the following is a example of these two environments:
\begin{algorithm}
\caption{Super Algorithm} \label{SuperAlg}
\begin{algorithmic} [1] \STATE i=0 \IF{$P=NP$} \STATE Run algorithm \STATE Print result
\ELSE \STATE print “Sorry, that would take too long” \ENDIF\end{algorithmic}
\end{algorithm}
im Original von newslab
technorati tags:algorithm, algorithmic
Gefällt Dir der Artikel? Dann würde ich mich sehr freuen, wenn Du ihn bewerten würdest!




