33 lines
1.3 KiB
TeX
33 lines
1.3 KiB
TeX
\newpage
|
|
\subsection{CS-Commands}
|
|
These commands have to be executed inside math environment, except \verb|\timecomplexity| and \verb|\tc|.
|
|
\begin{itemize}
|
|
\item \verb|\timecomplexity| Prints the word time complexity with a coloured box.
|
|
\item \verb|\tc| Shorthand for \verb|\tct|. Deprecated
|
|
\item \verb|\tct| Time complexity in $\tct{}$-notation (average case)
|
|
\item \verb|\tco| Time complexity in $\tco{}$-notation (worst case / upper bound)
|
|
\item \verb|\tcl| Time complexity in $\tcl{}$-notation (best case / lower bound)
|
|
\item \verb|\t[R, C, N]| Simply prints a capital R, C or N in math mode as normal text. So e.g. use $\tR$ to print an R
|
|
\item \verb|\wordbool| Prints $\wordbool$
|
|
\item \verb|\words|\{\textit{string}\} Prints $\words{test}$
|
|
\item \verb|\wordm|\{\textit{math}\} Prints $\wordm{1}$
|
|
\item \verb|\word| Prints $\word$
|
|
\item \verb|\alphabets|\{\textit{string}\} Prints $\alphabets{test}$
|
|
\item \verb|\alphabetbool| Prints $\alphabetbool$
|
|
\end{itemize}
|
|
|
|
\fhlc{Aquamarine}{Algorithms}
|
|
\begin{minted}{latex}
|
|
\begin{algo}{functionName(A)}
|
|
\Procedure{functionName}{$(A)$}
|
|
\State\Return "Hello World"
|
|
\EndProcedure
|
|
\end{algo}
|
|
\end{minted}
|
|
|
|
\begin{algo}{functionName(A)}
|
|
\Procedure{functionName}{$(A)$}
|
|
\State\Return "Hello World"
|
|
\EndProcedure
|
|
\end{algo}
|