diff options
| author | Paul Jungeblut <paul.jungeblut@gmail.com> | 2015-08-21 17:00:53 +0200 |
|---|---|---|
| committer | Paul Jungeblut <paul.jungeblut@gmail.com> | 2015-08-21 17:00:53 +0200 |
| commit | c09586373003db70b4366a6d110ac38f3bee7b2c (patch) | |
| tree | 1156e195d1d91cd42de9a12f4d2808ed2d183465 | |
| parent | 6ed077a782d36a8eb97586305c9114964b649c82 (diff) | |
Adding a little helper note to Floyd Warshall.
| -rw-r--r-- | graph/graph.tex | 5 | ||||
| -rw-r--r-- | tcr.pdf | bin | 214829 -> 215205 bytes |
2 files changed, 4 insertions, 1 deletions
diff --git a/graph/graph.tex b/graph/graph.tex index 04bb93e..38deee6 100644 --- a/graph/graph.tex +++ b/graph/graph.tex @@ -20,7 +20,10 @@ Kürzestes Pfade in Graphen mit negativen Kanten. Erkennt negative Zyklen. \subsubsection{\textsc{Floyd-Warshall}-Algorithmus} Alle kürzesten Pfade im Graphen. \lstinputlisting{graph/floydWarshall.cpp} -\textsc{Floyd-Warshall} findet auch negative Kreise. Es existiert genau dann ein negativer Kreis, wenn \lstinline{dist[i][i] < 0} ist. +\begin{itemize} + \item \textsc{Floyd-Warshall} findet auch negative Kreise. Es existiert genau dann ein negativer Kreis, wenn \lstinline{dist[i][i] < 0} ist. + \item Evtl. überschreibt die Eingabe die Nullen auf der Hauptdiagonalen. +\end{itemize} \subsection{Strongly Connected Components (\textsc{Tarjans}-Algorithmus)} \lstinputlisting{graph/scc.cpp} Binary files differ |
