Skip to content

Commit 9f29f4e

Browse files
committed
adding hrulefill
1 parent a663bda commit 9f29f4e

File tree

8 files changed

+126
-100
lines changed

8 files changed

+126
-100
lines changed

contents.tex

Lines changed: 90 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,110 @@
11
\section{Combinatorial optimization}
22
\subsection{Sparse max-flow}
33
\raggedbottom\lstinputlisting[style=customcc]{code/Dinic.cc}
4+
\hrulefill
45
\subsection{Min-cost max-flow}
56
\raggedbottom\lstinputlisting[style=customcc]{code/MinCostMaxFlow.cc}
7+
\hrulefill
68
\subsection{Push-relabel max-flow}
79
\raggedbottom\lstinputlisting[style=customcc]{code/PushRelabel.cc}
10+
\hrulefill
811
\subsection{Min-cost matching}
912
\raggedbottom\lstinputlisting[style=customcc]{code/MinCostMatching.cc}
13+
\hrulefill
1014
\subsection{Max bipartite matching}
1115
\raggedbottom\lstinputlisting[style=customcc]{code/MaxBipartiteMatching.cc}
16+
\hrulefill
1217
\subsection{Global min-cut}
1318
\raggedbottom\lstinputlisting[style=customcc]{code/MinCut.cc}
19+
\hrulefill
1420
\subsection{Graph cut inference}
1521
\raggedbottom\lstinputlisting[style=customcc]{code/GraphCutInference.cc}
1622

17-
% \section{Geometry}
18-
% \subsection{Convex hull}
19-
% \raggedbottom\lstinputlisting[style=customcc]{code/ConvexHull.cc}
20-
% \subsection{Miscellaneous geometry}
21-
% \raggedbottom\lstinputlisting[style=customcc]{code/Geometry.cc}
22-
% \subsection{Java geometry}
23-
% \raggedbottom\lstinputlisting[style=customjava]{code/JavaGeometry.java}
24-
% \subsection{3D geometry}
25-
% \raggedbottom\lstinputlisting[style=customjava]{code/Geom3D.java}
26-
% \subsection{Slow Delaunay triangulation}
27-
% \raggedbottom\lstinputlisting[style=customjava]{code/Delaunay.cc}
23+
\section{Geometry}
24+
\subsection{Convex hull}
25+
\raggedbottom\lstinputlisting[style=customcc]{code/ConvexHull.cc}
26+
\hrulefill
27+
\subsection{Miscellaneous geometry}
28+
\raggedbottom\lstinputlisting[style=customcc]{code/Geometry.cc}
29+
\hrulefill
30+
\subsection{Java geometry}
31+
\raggedbottom\lstinputlisting[style=customjava]{code/JavaGeometry.java}
32+
\hrulefill
33+
\subsection{3D geometry}
34+
\raggedbottom\lstinputlisting[style=customjava]{code/Geom3D.java}
35+
\hrulefill
36+
\subsection{Slow Delaunay triangulation}
37+
\raggedbottom\lstinputlisting[style=customjava]{code/Delaunay.cc}
2838

29-
% \section{Numerical algorithms}
30-
% \subsection{Number theory (modular, Chinese remainder, linear Diophantine)}
31-
% \raggedbottom\lstinputlisting[style=customcc]{code/Euclid.cc}
32-
% \subsection{Systems of linear equations, matrix inverse, determinant}
33-
% \raggedbottom\lstinputlisting[style=customcc]{code/GaussJordan.cc}
34-
% \subsection{Reduced row echelon form, matrix rank}
35-
% \raggedbottom\lstinputlisting[style=customcc]{code/ReducedRowEchelonForm.cc}
36-
% \subsection{Fast Fourier transform}
37-
% \raggedbottom\lstinputlisting[style=customcc]{code/FFT_new.cpp}
38-
% \subsection{Simplex algorithm}
39-
% \raggedbottom\lstinputlisting[style=customcc]{code/Simplex.cc}
39+
\section{Numerical algorithms}
40+
\subsection{Number theory (modular, Chinese remainder, linear Diophantine)}
41+
\raggedbottom\lstinputlisting[style=customcc]{code/Euclid.cc}
42+
\hrulefill
43+
\subsection{Systems of linear equations, matrix inverse, determinant}
44+
\raggedbottom\lstinputlisting[style=customcc]{code/GaussJordan.cc}
45+
\hrulefill
46+
\subsection{Reduced row echelon form, matrix rank}
47+
\raggedbottom\lstinputlisting[style=customcc]{code/ReducedRowEchelonForm.cc}
48+
\hrulefill
49+
\subsection{Fast Fourier transform}
50+
\raggedbottom\lstinputlisting[style=customcc]{code/FFT_new.cpp}
51+
\hrulefill
52+
\subsection{Simplex algorithm}
53+
\raggedbottom\lstinputlisting[style=customcc]{code/Simplex.cc}
4054

41-
% \section{Graph algorithms}
42-
% \subsection{Fast Dijkstra\'s algorithm}
43-
% \raggedbottom\lstinputlisting[style=customcc]{code/FastDijkstra.cc}
44-
% \subsection{Strongly connected components}
45-
% \raggedbottom\lstinputlisting[style=customcc]{code/SCC.cc}
46-
% \subsection{Eulerian path}
47-
% \raggedbottom\lstinputlisting[style=customcc]{code/EulerianPath.cc}
55+
\section{Graph algorithms}
56+
\subsection{Fast Dijkstra\'s algorithm}
57+
\raggedbottom\lstinputlisting[style=customcc]{code/FastDijkstra.cc}
58+
\hrulefill
59+
\subsection{Strongly connected components}
60+
\raggedbottom\lstinputlisting[style=customcc]{code/SCC.cc}
61+
\hrulefill
62+
\subsection{Eulerian path}
63+
\raggedbottom\lstinputlisting[style=customcc]{code/EulerianPath.cc}
4864

49-
% \section{Data structures}
50-
% \subsection{Suffix array}
51-
% \raggedbottom\lstinputlisting[style=customcc]{code/SuffixArray.cc}
52-
% \subsection{Binary Indexed Tree}
53-
% \raggedbottom\lstinputlisting[style=customcc]{code/BIT.cc}
54-
% \subsection{Union-find set}
55-
% \raggedbottom\lstinputlisting[style=customcc]{code/UnionFind.cc}
56-
% \subsection{KD-tree}
57-
% \raggedbottom\lstinputlisting[style=customcc]{code/KDTree.cc}
58-
% \subsection{Splay tree}
59-
% \raggedbottom\lstinputlisting[style=customcc]{code/splay.cpp}
60-
% \subsection{Lazy segment tree}
61-
% \raggedbottom\lstinputlisting[style=customjava]{code/SegmentTreeLazy.java}
62-
% \subsection{Lowest common ancestor}
63-
% \raggedbottom\lstinputlisting[style=customcc]{code/LCA.cc}
65+
\section{Data structures}
66+
\subsection{Suffix array}
67+
\raggedbottom\lstinputlisting[style=customcc]{code/SuffixArray.cc}
68+
\hrulefill
69+
\subsection{Binary Indexed Tree}
70+
\raggedbottom\lstinputlisting[style=customcc]{code/BIT.cc}
71+
\hrulefill
72+
\subsection{Union-find set}
73+
\raggedbottom\lstinputlisting[style=customcc]{code/UnionFind.cc}
74+
\hrulefill
75+
\subsection{KD-tree}
76+
\raggedbottom\lstinputlisting[style=customcc]{code/KDTree.cc}
77+
\hrulefill
78+
\subsection{Splay tree}
79+
\raggedbottom\lstinputlisting[style=customcc]{code/splay.cpp}
80+
\hrulefill
81+
\subsection{Lazy segment tree}
82+
\raggedbottom\lstinputlisting[style=customjava]{code/SegmentTreeLazy.java}
83+
\hrulefill
84+
\subsection{Lowest common ancestor}
85+
\raggedbottom\lstinputlisting[style=customcc]{code/LCA.cc}
6486

65-
% \section{Miscellaneous}
66-
% \subsection{Longest increasing subsequence}
67-
% \raggedbottom\lstinputlisting[style=customcc]{code/LongestIncreasingSubsequence.cc}
68-
% \subsection{Dates}
69-
% \raggedbottom\lstinputlisting[style=customcc]{code/Dates.cc}
70-
% \subsection{Regular expressions}
71-
% \raggedbottom\lstinputlisting[style=customjava]{code/LogLan.java}
72-
% \subsection{Prime numbers}
73-
% \raggedbottom\lstinputlisting[style=customcc]{code/Primes.cc}
74-
% \subsection{C++ input/output}
75-
% \raggedbottom\lstinputlisting[style=customcc]{code/IO.cpp}
76-
% \subsection{Knuth-Morris-Pratt}
77-
% \raggedbottom\lstinputlisting[style=customcc]{code/KMP.cpp}
78-
% \subsection{Latitude/longitude}
79-
% \raggedbottom\lstinputlisting[style=customcc]{code/LatLong.cpp}
80-
% \subsection{Emacs settings}
81-
% \raggedbottom\lstinputlisting[style=customtxt]{code/EmacsSettings.txt}
87+
\section{Miscellaneous}
88+
\subsection{Longest increasing subsequence}
89+
\raggedbottom\lstinputlisting[style=customcc]{code/LongestIncreasingSubsequence.cc}
90+
\hrulefill
91+
\subsection{Dates}
92+
\raggedbottom\lstinputlisting[style=customcc]{code/Dates.cc}
93+
\hrulefill
94+
\subsection{Regular expressions}
95+
\raggedbottom\lstinputlisting[style=customjava]{code/LogLan.java}
96+
\hrulefill
97+
\subsection{Prime numbers}
98+
\raggedbottom\lstinputlisting[style=customcc]{code/Primes.cc}
99+
\hrulefill
100+
\subsection{C++ input/output}
101+
\raggedbottom\lstinputlisting[style=customcc]{code/IO.cpp}
102+
\hrulefill
103+
\subsection{Knuth-Morris-Pratt}
104+
\raggedbottom\lstinputlisting[style=customcc]{code/KMP.cpp}
105+
\hrulefill
106+
\subsection{Latitude/longitude}
107+
\raggedbottom\lstinputlisting[style=customcc]{code/LatLong.cpp}
108+
\hrulefill
109+
\subsection{Emacs settings}
110+
\raggedbottom\lstinputlisting[style=customtxt]{code/EmacsSettings.txt}

filter.exe

-93.5 KB
Binary file not shown.

joined-2pages.pdf

-342 KB
Binary file not shown.

joined.pdf

-764 KB
Binary file not shown.

notebook_new.pdf

430 KB
Binary file not shown.

notebook_new.tex

Lines changed: 36 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
\documentclass[10pt]{article}
2-
\usepackage[margin=0.5in]{geometry}
2+
\usepackage[left=0.4in,right=0.4in,top=0.7in,bottom=0.4in]{geometry}
33
\usepackage{hyperref}
44
\usepackage{fancyhdr}
55
\usepackage{listings}
@@ -9,62 +9,59 @@
99
\usepackage{multicol}
1010

1111
\renewcommand*{\ttdefault}{pcr}
12-
\renewcommand\cftsecfont{\small\bfseries}
13-
\renewcommand\cftsecpagefont{\small}
14-
\renewcommand\cftsubsecfont{\footnotesize}
15-
\renewcommand\cftsubsecpagefont{\footnotesize}
12+
\renewcommand\cftsecfont{\fontsize{8}{9}\bfseries}
13+
\renewcommand\cftsecpagefont{\fontsize{8}{9}\mdseries}
14+
\renewcommand\cftsubsecfont{\fontsize{5}{6}\mdseries}
15+
\renewcommand\cftsubsecpagefont{\fontsize{5}{6}\mdseries}
16+
\renewcommand\cftsecafterpnum{\vspace{-1ex}}
17+
\renewcommand\cftsubsecafterpnum{\vspace{-1ex}}
1618

19+
\lstdefinestyle{shared}{
20+
belowcaptionskip=1\baselineskip,
21+
breaklines=true,
22+
xleftmargin=\parindent,
23+
showstringspaces=false,
24+
basicstyle=\fontsize{5.5}{6}\ttfamily,
25+
}
1726
\lstdefinestyle{customcc}{
18-
language=C++,
19-
belowcaptionskip=1\baselineskip,
20-
breaklines=true,
21-
xleftmargin=\parindent,
22-
showstringspaces=false,
23-
%basicstyle=\scriptsize\ttfamily,
24-
basicstyle=\fontsize{6}{7}\ttfamily,
25-
keywordstyle=\bfseries\color{green!40!black},
26-
commentstyle=\itshape\color{red!80!black},
27-
identifierstyle=\color{blue},
28-
stringstyle=\color{purple!40!black},
27+
style=shared,
28+
language=C++,
29+
keywordstyle=\bfseries\color{green!40!black},
30+
commentstyle=\itshape\color{red!80!black},
31+
identifierstyle=\color{blue},
32+
stringstyle=\color{purple!40!black},
2933
}
3034
\lstdefinestyle{customjava}{
31-
language=Java,
32-
belowcaptionskip=1\baselineskip,
33-
breaklines=true,
34-
xleftmargin=\parindent,
35-
showstringspaces=false,
36-
basicstyle=\scriptsize\ttfamily,
37-
keywordstyle=\bfseries\color{green!40!black},
38-
commentstyle=\itshape\color{purple!40!black},
39-
identifierstyle=\color{blue},
40-
stringstyle=\color{orange},
35+
style=shared,
36+
language=Java,
37+
keywordstyle=\bfseries\color{green!40!black},
38+
commentstyle=\itshape\color{purple!40!black},
39+
identifierstyle=\color{blue},
40+
stringstyle=\color{orange},
41+
}
42+
\lstdefinestyle{custompython}{
43+
style=shared,
44+
language=Python,
45+
keywordstyle=\bfseries\color{green!40!black},
46+
commentstyle=\itshape\color{purple!40!black},
47+
identifierstyle=\color{blue},
48+
stringstyle=\color{orange},
4149
}
4250
\lstdefinestyle{customtxt}{
43-
belowcaptionskip=1\baselineskip,
44-
breaklines=true,
45-
xleftmargin=\parindent,
46-
showstringspaces=false,
47-
basicstyle=\scriptsize\ttfamily,
51+
style=shared,
4852
}
4953
\lstset{escapechar=@}
5054

5155
\pagestyle{fancy}
52-
\fancyhf{}
5356
\fancyhead[L]{Stanford University}
54-
\fancyhead[C]{}
5557
\fancyhead[R]{\thepage}
56-
\fancyfoot[L]{}
5758
\fancyfoot[C]{}
58-
\fancyfoot[R]{}
5959

6060
\fancypagestyle{plain}
6161
{
6262
\fancyhead[L]{Stanford University}
63-
\fancyhead[C]{}
6463
\fancyhead[R]{\thepage}
65-
\fancyfoot[L]{}
6664
\fancyfoot[C]{}
67-
\fancyfoot[R]{}
6865
}
6966

7067
\title{\vspace{-4ex}\Large{Stanford University ICPC Team Notebook (2015-16)}}
@@ -76,7 +73,7 @@
7673
\begin{multicols}{2}
7774

7875
\maketitle
79-
\vspace{-10ex}
76+
\vspace{-13ex}
8077
\tableofcontents
8178
\pagestyle{fancy}
8279

page_numbers.docx

-20.7 KB
Binary file not shown.

page_numbers.pdf

-118 KB
Binary file not shown.

0 commit comments

Comments
 (0)