blob: 1c529a4b1415fb7f6b1bfc340fe5bf63e17f6642 (
plain)
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
|
\section{Datenstrukturen}
\subsection{Union-Find}
\lstinputlisting{datastructures/unionFind.cpp}
\subsection{Segmentbaum}
\lstinputlisting{datastructures/segmentTree.cpp}
\subsection{2D-Segmentbaum}
\lstinputlisting{datastructures/segmentTree2D.cpp}
\subsection{Fenwick Tree}
\lstinputlisting{datastructures/fenwickTree.cpp}
\lstinputlisting{datastructures/fenwickTreeNiklas.cpp}
\subsection{Sparse Table}
\lstinputlisting{datastructures/sparseTable.cpp}
\subsection{STL-Tree}
\lstinputlisting{datastructures/stlTree.cpp}
\subsection{STL-Rope (Implicit Cartesian Tree)}
\lstinputlisting{datastructures/stlRope.cpp}
\subsection{Treap (Cartesian Tree)}
\lstinputlisting{datastructures/treap.cpp}
\subsection{STL Priority Queue}
Nicht notwendig, wenn Smaller-Larger-Optimization greift.
\lstinputlisting{datastructures/stlPQ.cpp}
\subsection{Lower/Upper Envelop (Convex Hull Optimization)}
Um aus einem lower envelope einen upper envelope zu machen (oder umgekehrt), einfach beim Einfügen der Geraden $m$ und $b$ negieren.
\lstinputlisting{datastructures/monotonicConvexHull.cpp}
\lstinputlisting{datastructures/dynamicConvexHull.cpp}
|