Compare commits

..

2 Commits

Author SHA1 Message Date
496ac27f02 [Docs] Document new macros 2025-09-22 19:18:09 +02:00
08ddefd342 [CS] Add new macros 2025-09-22 19:18:04 +02:00
3 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@@ -78,6 +78,7 @@ These commands have to be executed outside the math environment.
\item \verb|\tct| Time complexity in \tct{}-notation (average case) \item \verb|\tct| Time complexity in \tct{}-notation (average case)
\item \verb|\tco| Time complexity in \tco{}-notation (worst case / upper bound) \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|\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
\end{itemize} \end{itemize}
\fhlc{Aquamarine}{Algorithms} \fhlc{Aquamarine}{Algorithms}

View File

@@ -17,3 +17,6 @@
\newcommand{\tct}[1]{$\Theta\left(#1\right)$} \newcommand{\tct}[1]{$\Theta\left(#1\right)$}
\newcommand{\tco}[1]{$\mathcal{O}\left(#1\right)$} \newcommand{\tco}[1]{$\mathcal{O}\left(#1\right)$}
\newcommand{\tcl}[1]{$\Omega\left(#1\right)$} \newcommand{\tcl}[1]{$\Omega\left(#1\right)$}
\newcommand{\tR}{\text{R}}
\newcommand{\tC}{\text{C}}
\newcommand{\tN}{\text{N}}