summaryrefslogtreecommitdiff
path: root/content/other/other.tex
diff options
context:
space:
mode:
authorLucas Schwebler <lucas.schwebler@gmail.com>2024-09-10 23:06:28 +0200
committerLucas Schwebler <lucas.schwebler@gmail.com>2024-09-10 23:06:28 +0200
commitfacc5da35282ef30e5111cdc04942d118f4ae0c5 (patch)
tree7c568dcfbc0da8e4ad6ae3188bb4bc4e657d7dba /content/other/other.tex
parent36fa19a38cf9a357f04d4ed76f25b1cbf44deedb (diff)
add fastSubsetSum
Diffstat (limited to 'content/other/other.tex')
-rw-r--r--content/other/other.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/other/other.tex b/content/other/other.tex
index e8d8041..368d0b3 100644
--- a/content/other/other.tex
+++ b/content/other/other.tex
@@ -102,6 +102,10 @@
\textbf{WICHTIG:} $x$ und $y$ müssen kleiner als $\sqrt{\nicefrac{m}{2}}$ sein!
\sourcecode{other/recover.cpp}
+\subsection{Fast Subset Sum}
+\method{fastSubsetSum}{findet maximale subset sum $\leq t$}{n \cdot A}
+Die Laufzeit hängt vom maximalen Wert $A$ in der Menge ab.
+\sourcecode{other/fastSubsetSum.cpp}
\begin{algorithm}[optional]{Zeileneingabe}
\sourcecode{other/split.cpp}