[CS] Add more macros for TI

This commit is contained in:
2025-09-26 18:16:43 +02:00
parent 1f296ccd56
commit 05d5ef49e6
3 changed files with 6 additions and 2 deletions

Binary file not shown.

View File

@@ -82,7 +82,9 @@ These commands have to be executed inside math environment, except \verb|\timeco
\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 \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|\wordbool| Prints $\wordbool$
\item \verb|\wordx|\{\textit{string}\} Prints $\wordx{test}$ \item \verb|\words|\{\textit{string}\} Prints $\words{test}$
\item \verb|\wordm|\{\textit{math}\} Prints $\wordm{1}$
\item \verb|\alphabetx|\{\textit{string}\} Prints $\alphabetx{test}$
\end{itemize} \end{itemize}
\fhlc{Aquamarine}{Algorithms} \fhlc{Aquamarine}{Algorithms}

View File

@@ -18,7 +18,9 @@
\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{\wordbool}{(\Sigma_{\text{bool}})^*} \newcommand{\wordbool}{(\Sigma_{\text{bool}})^*}
\newcommand{\wordx}[1]{(\Sigma_{\text{#1}})^*} \newcommand{\words}[1]{(\Sigma_{\text{#1}})^*}
\newcommand{\wordm}[1]{(\Sigma_{\text{#1}})^*}
\newcommand{\alphabetx}[1]{\Sigma_{\text{#1}}}
\newcommand{\tR}{\text{R}} \newcommand{\tR}{\text{R}}
\newcommand{\tC}{\text{C}} \newcommand{\tC}{\text{C}}
\newcommand{\tN}{\text{N}} \newcommand{\tN}{\text{N}}