-
Notifications
You must be signed in to change notification settings - Fork 121
/
Copy pathalgo-quicksheet.tex
127 lines (107 loc) · 3.67 KB
/
algo-quicksheet.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
%%%%%%%%%%%%%%%%%%%%%%%% editor.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% sample root file for the contributions of a "contributed volume"
%
% Use this file as a template for your own input.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Springer %%%%%%%%%%%%%%%%%%%%%%%%%%
% RECOMMENDED %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[graybox, envcountchap, twocolum]{styles/svmult}
% general metadata:
\author{Author: idf@github}
\title{Algorithm Quicksheet}
\subtitle{Classical equations, diagrams and patterns in algorithms}
% choose options for [] as required from the list
% in the Reference Guide
\usepackage{amssymb,amsmath,bm}
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
\usepackage{textcomp}
\newcommand\abs[1]{\left\lvert#1\right\rvert}
\usepackage{longtable}
\usepackage{algorithm2e}
\usepackage{tocbibind}
\usepackage[toc]{multitoc}
\usepackage{commons/commons}
\usepackage{commons/code_style}
\usepackage{style/customized}
\usepackage{listings}
\lstset{columns=fullflexible, commentstyle=\rm, basicstyle=\footnotesize} % remove columns=fullflexible for monospace
\usepackage{titlesec}
\titlespacing*{\section}{0pt}{5\baselineskip}{\baselineskip}
\renewcommand{\bibname}{References}
\usepackage{mathptmx} % selects Times Roman as basic font
\usepackage{helvet} % selects Helvetica as sans-serif font
\usepackage{courier} % selects Courier as typewriter font
%\usepackage{type1cm} % activate if the above 3 fonts are
% not available on your system
\usepackage{makeidx} % allows index generation
\usepackage{graphicx} % standard LaTeX graphics tool
% when including figure files
\usepackage[justification=centering]{caption}
\usepackage{subfig}
\usepackage{multicol} % used for the two-column index
\usepackage{multirow}
\usepackage[bottom]{footmisc}% places footnotes at page bottom
\usepackage{comment}
%\excludecomment{figure}
\graphicspath{{figures/}}
\newcommand\AND{\ \&\ }
\newcommand\OR{\ |\ }
\newcommand\XOR{\wedge}
\newcommand\NOT{\ensuremath{\mathord{\sim}}}
\newcommand\SHIFTL{\ll}
\newcommand\SHIFTR{\gg}
% see the list of further useful packages in the Reference Guide
\makeindex % used for the subject index
% please use the style svind.ist with
% your makeindex program
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[normalem]{ulem}
\usepackage{color}
\begin{document}
\frontmatter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{titlepage}
\include{dedic}
%\include{foreword}
\include{preface}
%\include{acknow}
\tableofcontents
%\include{cblist}
%\include{acronym}
\include{notation}
\mainmatter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\include{part}
% complexity
\include{chapterTimeComplexity}
\include{chapterMemoryComplexity}
% data structure
\include{chapterBasicDataStructures}
\include{chapterLinkedList}
\include{chapterHeap}
\include{chapterTree}
\include{chapterBalancedSearchTree}
% algorithm
\include{chapterSort}
\include{chapterSearch}
\include{chapterArray}
\include{chapterString}
\include{chapterStream}
\include{chapterMath}
\include{chapterArithmetic}
\include{chapterCombinatorics}
\include{chapterProbability}
\include{chapterBitManipulation}
\include{chapterGreedy}
\include{chapterBacktracking}
\include{chapterDivideAndConquer}
\include{chapterGraph}
\include{chapterDynamicProgramming}
\include{chapterInterval}
\include{chapterGeneral}
\backmatter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appendix
\include{glossary}
\include{acronym}
\printindex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}