Hungarian algorithm: Difference between revisions

Content deleted Content added
B52481 (talk | contribs)
m Connection to successive shortest paths: - link to Johnson's algo page
B52481 (talk | contribs)
Implementation in C++: - fix incorrect comment
Line 198:
}
// delta will always be non-negative,
// except possibly during the first iteration if onetime ofthis C[j_cur][*]loop isruns
// if any entries of C are negative
for (int w = 0; w <= W; ++w) {
if (in_Z[w]) ys[job[w]] += delta, yt[w] -= delta;
Line 262:
}
</syntaxhighlight>
 
 
==Connection to successive shortest paths==