-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpasta.algos.sty
34 lines (26 loc) · 1.03 KB
/
pasta.algos.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
\usepackage{pasta.base}
% ALGORITHMS ===================================================================
% Boolean Values ---------------------------------------------------------------
% positive
\newcommand{\yes}{\text{yes}}
\newcommand{\Yes}{\text{Yes}}
\newcommand{\YES}{\text{YES}}
\newcommand{\true}{\text{true}}
\newcommand{\True}{\text{True}}
\newcommand{\TRUE}{\text{TRUE}}
% negative
\newcommand{\no}{\text{no}}
\newcommand{\No}{\text{No}}
\newcommand{\NO}{\text{NO}}
\newcommand{\false}{\text{false}}
\newcommand{\False}{\text{False}}
\newcommand{\FALSE}{\text{FALSE}}
% Big O Notation ---------------------------------------------------------------
\newcommand{\Oh}{\fnpr{O}} % Big Oh
\newcommand{\oh}{\fnpr{o}} % Little O
\newcommand{\Om}{\fnpr{\Omega}} % Big Omega
\newcommand{\om}{\fnpr{\omega}} % Little Omega
\newcommand{\Th}{\fnpr{\Theta}} % Big Theta
% Complexity Classes -----------------------------------------------------------
\newcommand{\reducesto}[1][]{\leq_{#1}}
\newcommand{\complete}[1]{\text{\({#1}\)-complete}}