Skip to content

Commit

Permalink
Move all presentation sources to 'src' folders, see #3
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinJadoul committed Jul 18, 2016
1 parent 0ece815 commit a495bd4
Show file tree
Hide file tree
Showing 27 changed files with 19 additions and 19 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions 08-segment-tree/segment-tree.tex
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ \section{Regular Segment Tree}
\begin{frame}
\frametitle{Querying implementation}

\lstinputlisting{listings/query.cpp}
\lstinputlisting{src/query.cpp}
\end{frame}

\begin{frame}
Expand Down Expand Up @@ -137,7 +137,7 @@ \section{Regular Segment Tree}

\begin{frame}
\frametitle{Building implementation}
\lstinputlisting{listings/build.cpp}
\lstinputlisting{src/build.cpp}
\end{frame}

\begin{frame}
Expand Down Expand Up @@ -175,7 +175,7 @@ \section{Regular Segment Tree}

\begin{frame}
\frametitle{Updating implementation}
\lstinputlisting{listings/update.cpp}
\lstinputlisting{src/update.cpp}
\end{frame}

\section{Lazy Segment Tree}
Expand Down Expand Up @@ -216,7 +216,7 @@ \section{Lazy Segment Tree}

\begin{frame}
\frametitle{Propagation implementation}
\lstinputlisting{listings/propagation.cpp}
\lstinputlisting{src/propagation.cpp}
\end{frame}

\begin{frame}
Expand All @@ -228,7 +228,7 @@ \section{Lazy Segment Tree}

\begin{frame}
\frametitle{Querying implementation}
\lstinputlisting{listings/lazy-query.cpp}
\lstinputlisting{src/lazy-query.cpp}
\end{frame}

\begin{frame}
Expand All @@ -250,7 +250,7 @@ \section{Lazy Segment Tree}

\begin{frame}
\frametitle{Updating implementation}
\lstinputlisting{listings/lazy-update.cpp}
\lstinputlisting{src/lazy-update.cpp}
\end{frame}


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions 09-fenwick-tree/fenwick-tree.tex
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ \section{How it works}

\begin{frame}
\frametitle{Query Implementation}
\lstinputlisting{lst/ft-query.cpp}
\lstinputlisting{src/ft-query.cpp}
\end{frame}

\begin{frame}
Expand Down Expand Up @@ -215,7 +215,7 @@ \section{How it works}

\begin{frame}
\frametitle{Update Implementation}
\lstinputlisting{lst/ft-update.cpp}
\lstinputlisting{src/ft-update.cpp}
\end{frame}

\begin{frame}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions 11-binary-search/binary-search.tex
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ \section{Basic algorithm}

\begin{frame}
\frametitle{The code}
\lstinputlisting{listings/binary-search.cpp} \pause \blank
\lstinputlisting{src/binary-search.cpp} \pause \blank
Complexity? $\bigoh{log(n)}$
\end{frame}

Expand Down Expand Up @@ -200,12 +200,12 @@ \section{Other applications}

\begin{frame}
\frametitle{The code: iterative}
\lstinputlisting{listings/bisection.cpp}
\lstinputlisting{src/bisection.cpp}
\end{frame}

\begin{frame}
\frametitle{The code: recursive}
\lstinputlisting{listings/bisection-rec.cpp}
\lstinputlisting{src/bisection-rec.cpp}
\end{frame}

\begin{frame}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions 13-dynamic-programming-i/dynamic-programming-i.tex
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ \section{Motivating Problem I: Partition Problem}

\begin{frame}
\frametitle{Brute-Force solution}
\lstinputlisting{listings/brute-force.cpp}
\lstinputlisting{src/brute-force.cpp}
\pause
Complexity? \pause $\bigoh{3^n}$ \TLE \\\blank
We can do better\ldots
Expand All @@ -119,7 +119,7 @@ \section{Motivating Problem I: Partition Problem}
\begin{frame}
What we want to do is to traverse the state graph (DFS like). \\\blank
How can we achieve that? \pause
\lstinputlisting{listings/partition-problem.cpp} \pause \blank
\lstinputlisting{src/partition-problem.cpp} \pause \blank
Is this enough to get \AC? \pause \textbf{No}. \\
The graph has $ \approx n \cdot S^3 = 50 \cdot 500^3 = 6250000000$ nodes $\Rightarrow$ \MLE.
\end{frame}
Expand All @@ -135,7 +135,7 @@ \section{Motivating Problem I: Partition Problem}
\frametitle{State space reduction}
Observe that at the end $ given3 = S - given1 - given2 $. \\\blank
Thus we can drop one parameter and reduce the state space to $ n \cdot S^2 $.
\lstinputlisting{listings/partition-problem-better.cpp} \blank
\lstinputlisting{src/partition-problem-better.cpp} \blank
This is called \textbf{State space reduction}
\end{frame}

Expand Down Expand Up @@ -197,7 +197,7 @@ \section{Motivating Problem II: Knapsack Problem}

\begin{frame}
\frametitle{Knapsack solution}
\lstinputlisting{listings/knapsack.cpp}
\lstinputlisting{src/knapsack.cpp}
\end{frame}

\begin{frame}
Expand Down Expand Up @@ -376,7 +376,7 @@ \section{Motivating Problem II: Knapsack Problem}

\begin{frame}
\frametitle{Implementation}
\lstinputlisting{listings/knapsack-bottom-up.cpp}
\lstinputlisting{src/knapsack-bottom-up.cpp}
\blank
For most DP problems, a topological order can be achieved simply with the proper sequencing of some (nested) loops.
\end{frame}
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions 16-minimum-spanning-tree/minimum-spanning-tree.tex
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ \section{Kruskal's algorithm}
\end{frame}
\begin{frame}
\frametitle{Code}
\lstinputlisting[language=C++,firstline=52,lastline=64]{code/kruskal.cpp}
\lstinputlisting[language=C++,firstline=52,lastline=64]{src/kruskal.cpp}
\end{frame}

\section{Prim's algorithm}
Expand Down Expand Up @@ -791,12 +791,12 @@ \section{Prim's algorithm}
\begin{frame}
\frametitle{Code}
Inside main:\\
\lstinputlisting[language=C++, firstline=10, lastline=19]{code/prim.cpp}
\lstinputlisting[language=C++, firstline=10, lastline=19]{src/prim.cpp}
\end{frame}
\begin{frame}
\frametitle{Code}
Process function:\\
\lstinputlisting[language=C++, firstline=1, lastline=8]{code/prim.cpp}
\lstinputlisting[language=C++, firstline=1, lastline=8]{src/prim.cpp}
\end{frame}


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a495bd4

Please sign in to comment.