From 9a6aeb3f3fa1c5442ef99118b3b93ae47b2c43c4 Mon Sep 17 00:00:00 2001 From: MZuenni Date: Tue, 14 Feb 2023 16:53:47 +0100 Subject: moved even more --- other/bitOps.cpp | 2 +- other/other.tex | 56 +++++++++++++++++++++++++++---------------------------- tcr.pdf | Bin 646805 -> 646775 bytes 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/other/bitOps.cpp b/other/bitOps.cpp index d1ace9a..98fc994 100644 --- a/other/bitOps.cpp +++ b/other/bitOps.cpp @@ -14,5 +14,5 @@ int numberOfSetBits(int i) { // (z.B. 00111 => 01011 => 01101 => ...) ll nextPerm(ll v) { ll t = v | (v - 1); - return (t + 1) | (((~t & -~t) - 1) >> (__builtin_ctzll(v) + 1)); + return (t+1) | (((~t & -~t) - 1) >> (__builtin_ctzll(v) + 1)); } diff --git a/other/other.tex b/other/other.tex index 454cf5a..1097dc3 100644 --- a/other/other.tex +++ b/other/other.tex @@ -1,21 +1,5 @@ \section{Sonstiges} -\begin{algorithm}[optional]{Zeileneingabe} - \sourcecode{other/split.cpp} -\end{algorithm} - -\begin{algorithm}[optional]{Fast IO} - \sourcecode{other/fastIO.cpp} -\end{algorithm} - -\begin{algorithm}{Pragmas} - \sourcecode{other/pragmas.cpp} -\end{algorithm} - -\begin{algorithm}{Sonstiges} - \sourcecode{other/stuff.cpp} -\end{algorithm} - \begin{algorithm}{Compiletime} \begin{itemize} \item überprüfen ob Compilezeit Berechnungen erlaubt sind! @@ -24,11 +8,6 @@ \sourcecode{other/compiletime.cpp} \end{algorithm} -\begin{algorithm}{Timed} - Kann benutzt werdem un randomisierte Algorithmen so lange wie möglich laufen zu lassen. - \sourcecode{other/timed.cpp} -\end{algorithm} - \begin{algorithm}{Bit Operations} \begin{expandtable} \begin{tabularx}{\linewidth}{|Ll|} @@ -60,27 +39,32 @@ \end{expandtable} \end{algorithm} +\begin{algorithm}{Timed} + Kann benutzt werdem un randomisierte Algorithmen so lange wie möglich laufen zu lassen. + \sourcecode{other/timed.cpp} +\end{algorithm} + \begin{algorithm}{DP Optimizations} Aufgabe: Partitioniere Array in genau $k$ zusammenhängende Teile mit minimalen Kosten: $dp[i][j] = \min_{k