Compare commits

..

4 Commits

Author SHA1 Message Date
5f66b9e1db [CS] Update macros 2025-09-26 18:19:04 +02:00
ba7e3f444a [CS] Update word math mode macro 2025-09-26 18:17:35 +02:00
05d5ef49e6 [CS] Add more macros for TI 2025-09-26 18:16:43 +02:00
1f296ccd56 [CS] Add new macro for words 2025-09-26 18:12:09 +02:00
3 changed files with 10 additions and 0 deletions

Binary file not shown.

View File

@@ -70,6 +70,8 @@ All these have to be executed in the math environment.
\item \verb|\dern|\{\textit{math}\}\{\textit{math}\} Higher derivative, $\displaystyle \dern{x}{2}$
\end{itemize}
\newpage
\subsection{CS-Commands}
These commands have to be executed inside math environment, except \verb|\timecomplexity| and \verb|\tc|.
\begin{itemize}
@@ -79,6 +81,10 @@ These commands have to be executed inside math environment, except \verb|\timeco
\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|\alphabets|\{\textit{string}\} Prints $\alphabets{test}$
\end{itemize}
\fhlc{Aquamarine}{Algorithms}

View File

@@ -17,6 +17,10 @@
\newcommand{\tct}[1]{\Theta\left(#1\right)}
\newcommand{\tco}[1]{\mathcal{O}\left(#1\right)}
\newcommand{\tcl}[1]{\Omega\left(#1\right)}
\newcommand{\wordbool}{(\Sigma_{\text{bool}})^*}
\newcommand{\words}[1]{(\Sigma_{\text{#1}})^*}
\newcommand{\wordm}[1]{\Sigma_{\text{#1}}^*}
\newcommand{\alphabets}[1]{\Sigma_{\text{#1}}}
\newcommand{\tR}{\text{R}}
\newcommand{\tC}{\text{C}}
\newcommand{\tN}{\text{N}}