-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.tex
134 lines (113 loc) · 3.35 KB
/
notes.tex
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
\documentclass[oneside, 12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[english, bulgarian]{babel}
\usepackage{pgfplots}
\usepackage{amssymb}
\usepackage{hyperref, fancyhdr, lastpage, fancyvrb, tcolorbox, titlesec}
\usepackage{array, tabularx, colortbl}
\usepackage{tikz}
\usepackage{venndiagram}
\usepackage{amsthm, bm}
\usepackage{relsize}
\usepackage{amsmath,physics}
\usepackage{mathtools}
\usepackage{subcaption}
\usepackage{theoremref}
\usepackage{circuitikz}
\usepackage{geometry}
\usepackage{stmaryrd}
\usepackage[symbol]{footmisc}
\usepackage{minted}
\usepackage{enumitem}
\usepackage{listings}
\usepackage{systeme}
\usepackage{forest}
\useforestlibrary{linguistics}
\pgfplotsset{width=10cm,compat=1.9}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\T}{\mathbb{T}}
\newcommand{\F}{\mathbb{F}}
\newcommand{\calF}{\mathcal{F}}
\newcommand{\calT}{\mathcal{T}}
\newcommand{\NP}{\textbf{NP}}
\newcommand{\arr}{\operatorname{array}(\mathbb{Z})}
\newcommand{\arrbool}{\operatorname{array}(\mathbb{B})}
\newcommand{\str}{\operatorname{string}}
\newcommand{\adj}{\operatorname{adj}}
\newcommand{\queue}{\operatorname{queue}}
\newcommand{\pqueue}{\operatorname{priority\_queue}}
\newcommand{\dynarr}{\operatorname{dynamic\_array}}
\newcommand{\graph}{\mathfrak{Graph}}
\newcommand{\weightedgraph}{\mathfrak{Graph}(\operatorname{weighted})}
\newcommand{\dc}[1]{\tikz \node[draw, circle, inner sep=0pt, minimum size=9mm]{#1};}
\newcommand{\dt}[1]{\tikz \node[circle, inner sep=0pt, minimum size=9mm]{#1};}
\renewcommand{\theFancyVerbLine}{
$\arabic{FancyVerbLine}$
}
\ExplSyntaxOn
\NewDocumentCommand{\opair}{m}
{
\langle\mspace{2mu}
\clist_set:Nn \l_tmpa_clist { #1 }
\clist_use:Nn \l_tmpa_clist {,\mspace{3mu plus 1mu minus 1mu}\allowbreak}
\mspace{2mu}\rangle
}
\ExplSyntaxOff
\hypersetup{
colorlinks=true,
linktoc=all,
linkcolor=blue
}
\lstdefinelanguage{custom}{
morekeywords={for, if, else, return, break, continue, while, to, init, empty}
}
\lstset{
basicstyle=\ttfamily,
breaklines=true,mathescape=true,numbers=left,
inputencoding=utf8,extendedchars=true,frame=single,
keywordstyle=\bf,
language=custom
}
\theoremstyle{definition}
\newtheorem*{definition}{Дефиниция}
\newtheorem{problem}{Задача}[chapter]
\newtheorem*{solution}{Решение}
\newtheorem*{warning}{\textcolor{red}{Внимание}}
\theoremstyle{plain}
\newtheorem{theorem}{Теорема}[section]
\newtheorem{invariant}[theorem]{Инвариант}
\newtheorem{claim}[theorem]{Твърдение}
\newtheorem{axiom}[theorem]{Аксиома}
\newtheorem{lemma}[theorem]{Лема}
\newtheorem{corollary}[theorem]{Следствие}
\theoremstyle{remark}
\newtheorem*{remark}{Забележка}
\pagestyle{fancy}
\lhead{\leftmark}
\rhead{}
\setlength\parindent{0pt}
\begin{document}
\begin{titlepage}
\title{Записки за упражнения по ДАА}
\author{Тодор Дуков}
\date{\today}
\end{titlepage}
\pagenumbering{alph}
\maketitle
\pagenumbering{roman}
\tableofcontents
\include{foreword}
\clearpage
\pagenumbering{arabic}
\include{asymptotic-analysis}
\include{complexity/index}
\include{correctness/index}
\include{sorting/index}
\include{graphs/index}
\include{dynamic-programming}
\include{lower-bounds}
\include{intractability/index}
\end{document}