-
Notifications
You must be signed in to change notification settings - Fork 0
/
diploma-proiect-template.tex
255 lines (199 loc) · 8.1 KB
/
diploma-proiect-template.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc} % pentru suport diacritice
\usepackage[english]{babel} % setări pentru limba română
\renewcommand\familydefault{\sfdefault} % sans serif
\usepackage[margin=2.54cm]{geometry} % dimensiuni pagină și margini
\usepackage{graphicx} % support the \includegraphics command and options
\graphicspath{ {./img/} }
% formatting sections and subsections
\usepackage{textcase}
\usepackage[titletoc, title]{appendix}
\usepackage{titlesec}
\titleformat{\chapter}{\large\bfseries\MakeUppercase}{\thechapter}{2ex}{}[\vspace*{-1.5cm}]
\titleformat*{\section}{\large\bfseries}
\titleformat*{\subsection}{\large\bfseries}
\titleformat*{\subsubsection}{\large\bfseries}
\usepackage{chngcntr}
\counterwithout{figure}{chapter} % no chapter number in figure labels
\counterwithout{equation}{chapter} % no chapter number in equation labels
\usepackage[table,xcdraw]{xcolor}
\usepackage{sectsty}
\chapterfont{\color{black}} % sets colour of chapters
\sectionfont{\color{black}} % sets colour of sections
\usepackage{booktabs} % for much better looking tables
\usepackage{url} % Useful for inserting web links nicely
\usepackage[bookmarks,unicode,hidelinks]{hyperref}
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subcaption}
\usepackage{enumitem}
\usepackage{adjustbox}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage[ruled]{algorithm}
\usepackage{algpseudocode}
\usepackage{enumitem}
%jsons
\usepackage{listings}
\colorlet{punct}{red!60!black}
\definecolor{background}{HTML}{EEEEEE}
\definecolor{delim}{RGB}{20,105,176}
\colorlet{numb}{magenta!60!black}
\lstdefinelanguage{json}{
basicstyle=\normalfont\ttfamily,
numbers=left,
numberstyle=\scriptsize,
stepnumber=1,
numbersep=8pt,
showstringspaces=false,
breaklines=true,
frame=lines,
backgroundcolor=\color{background},
literate=
*{0}{{{\color{numb}0}}}{1}
{1}{{{\color{numb}1}}}{1}
{2}{{{\color{numb}2}}}{1}
{3}{{{\color{numb}3}}}{1}
{4}{{{\color{numb}4}}}{1}
{5}{{{\color{numb}5}}}{1}
{6}{{{\color{numb}6}}}{1}
{7}{{{\color{numb}7}}}{1}
{8}{{{\color{numb}8}}}{1}
{9}{{{\color{numb}9}}}{1}
{:}{{{\color{punct}{:}}}}{1}
{,}{{{\color{punct}{,}}}}{1}
{\{}{{{\color{delim}{\{}}}}{1}
{\}}{{{\color{delim}{\}}}}}{1}
{[}{{{\color{delim}{[}}}}{1}
{]}{{{\color{delim}{]}}}}{1},
}
%end of jsons
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{definition}{Definition}[section]
\newtheorem*{remark}{Remark}
\newtheorem{pitfall}{Pitfall}[theorem]
\newtheorem{fallacy}{Fallacy}[theorem]
\setlist{noitemsep}
%%% HEADERS & FOOTERS
\usepackage{fancyhdr}
\pagestyle{empty}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\lhead{}\chead{}\rhead{}
\lfoot{}\cfoot{\thepage}\rfoot{}
\newcommand{\alg}{\texttt{algorithmicx}}
\newcommand{\old}{\texttt{algorithmic}}
\newcommand{\euk}{Euclid}
\newcommand\ASTART{\bigskip\noindent\begin{minipage}[b]{0.5\linewidth}}
\newcommand\ACONTINUE{\end{minipage}\begin{minipage}[b]{0.5\linewidth}}
\newcommand\AENDSKIP{\end{minipage}\bigskip}
\newcommand\AEND{\end{minipage}}
\renewcommand{\qedsymbol}{\rule{0.7em}{0.7em}}
\newcommand{\HeaderLineSpace}{-0.25cm}
\newcommand{\UniTextRO}{UNIVERSITATEA POLITEHNICA DIN BUCUREȘTI \\[\HeaderLineSpace]
FACULTATEA DE AUTOMATICĂ ȘI CALCULATOARE \\[\HeaderLineSpace]
DEPARTAMENTUL DE CALCULATOARE\\}
\newcommand{\DiplomaRO}{PROIECT DE DIPLOMĂ}
\newcommand{\AdvisorRO}{Coordonator științific:}
\newcommand{\BucRO}{BUCUREȘTI}
\newcommand{\UniTextEN}{UNIVERSITY POLITEHNICA OF BUCHAREST \\[\HeaderLineSpace]
FACULTY OF AUTOMATIC CONTROL AND COMPUTERS \\[\HeaderLineSpace]
COMPUTER SCIENCE AND ENGINEERING DEPARTMENT\\}
\newcommand{\DiplomaEN}{DIPLOMA PROJECT}
\newcommand{\AdvisorEN}{Thesis advisor:}
\newcommand{\BucEN}{BUCHAREST}
\newcommand{\frontPage}[6]{
\begin{titlepage}
\begin{center}
{\Large #1} % header (university, faculty, department)
\vspace{50pt}
\begin{tabular}{p{6cm}p{4cm}}
\includegraphics[scale=0.8]{pics/upb-logo.jpg} &
\includegraphics[scale=0.5,trim={14cm 11cm 2cm 5cm},clip=true]{pics/cs-logo.pdf}
\end{tabular}
\vspace{105pt}
{\Huge #2}\\ % diploma project text
\vspace{40pt}
{\Large #3}\\ \vspace{0pt} % project title
{\Large #4}\\ % project subtitle
\vspace{40pt}
{\LARGE \Name}\\ % student name
\end{center}
\vspace{60pt}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}p{6cm}r}
&{\large\textbf{#5}}\vspace{10pt}\\ % scientific advisor
&{\large \Advisor} % advisor name
\end{tabular*}
\vspace{20pt}
\begin{center}
{\large\textbf{#6}}\\ % bucharest
\vspace{0pt}
{\normalsize \Year}
\end{center}
\end{titlepage}
}
\newcommand{\frontPageRO}{\frontPage{\UniTextRO}{\DiplomaRO}{\LARGE \ProjectTitleRO }{\small \ProjectSubtitleRO}{\AdvisorRO}{\BucRO}}
\newcommand{\frontPageEN}{\frontPage{\UniTextEN}{\DiplomaEN}{\LARGE \ProjectTitleEN}{\small \ProjectSubtitleEN}{\AdvisorEN}{\BucEN}}
\linespread{1.15}
\setlength\parindent{0pt}
\setlength\parskip{.28cm}
%% Abstract macro
\newcommand{\AbstractPage}{
\begin{titlepage}
\textbf{\large SINOPSIS}\par
\AbstractRO\par\vfill
\textbf{\large ABSTRACT}\par
\AbstractEN \vfill
\end{titlepage}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% End of template definitions
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Campurile de mai jos trebuie modificate de autor. Modificati doar continutul, nu si numele fiecarei definitii
%%
\newcommand{\ProjectTitleRO}{Metrici de evaluare a performanțelor și complexității pentru programele de calculatoare}
\newcommand{\ProjectSubtitleRO}{O noua abordare asupra modalitatilor traditionale de masurare a complexitatii algoritmilor si estimare a timpilor de rulare in raport cu arhitectura aleasa, in contextul infrastructurii dinamice}
\newcommand{\ProjectTitleEN}{Metrics for evaluating the performance and complexity of computer programs}
\newcommand{\ProjectSubtitleEN}{A new approach to the traditional ways of measuring the complexity of algorithms and estimating running times given the chosen architecture, in the context of dynamic infrastructure}
\newcommand{\Name}{Rares Folea}
\newcommand{\Advisor}{Prof. Emil-Ioan Slusanschi}
\newcommand{\Year}{2020}
% Setări document
\title{Proiect de diplomă}
\author{\Name}
\date{\Year}
%%
%% Campurile aferente rezumatului
%%
\newcommand{\AbstractRO}{Acest proiect prezinta un model reconceptualizat de calcul al complexitatii: r-Complexitate, o notatie asimptotica ce reda o metrica de comparare selectiva pentru programe similare, incluzand algoritmii ce fac parte din aceeasi clasa de complexitate. Dependenta de arhitectura aleasa, metrica reprezinta o imbunatatire si din punct de vedere al unei analize finite in raport cu dimensiunea datelor de intrare.}
\newcommand{\AbstractEN}{This project presents a refined complexity calculus model: r-Complexity, a new asymptotic notations that offer better complexity feedback for similar programs, providing subtle insights even for algorithms that are part of the same conventional complexity class. The Architecture-sensitive metric represents an enhancement that provides better sensitivity wrt. discrete analysis.}
\begin{document}
\frontPageRO
\frontPageEN
\begingroup
\linespread{1}
\tableofcontents
\endgroup
\AbstractPage
% Textul licentei incepe de aici
\pagestyle{fancy}
\input{complexity/complexity.tex}
\input{complexity/rComplexity.tex}
\input{complexity/unitaryRComplexity.tex}
\input{complexity/algoToComplex.tex}
\input{complexity/practicalRComplexity.tex}
\input{web/web.tex}
\input{platform/platform.tex}
\input{chess/chess.tex}
% Asa se specifica folosirea unui fisier cu referinte bibliografice:
\bibliographystyle{plain}
\bibliography{bibliography}
%\newpage
\end{document}