1
0
mirror of https://github.com/2martens/uni.git synced 2026-05-06 11:26:25 +02:00

AD-6: Aufgabe 2 korrigiert.

This commit is contained in:
Jim Martens
2014-01-14 17:53:31 +01:00
parent 7099956376
commit 3fa88e27c0

View File

@ -99,7 +99,8 @@ Jim Martens (6420323)}
\caption{Relax}
\begin{algorithmic}[1]
\Procedure{Relax}{$u,v$}
\If{$w(u,v) > u.maxWeight$}
\State $maxWeight \gets max(u.maxWeight, w(u,v))$
\If{$maxWeight < v.maxWeight$}
\State $v.maxWeight \gets w(u,v)$
\State $v.\pi \gets u$
\EndIf