Skip to content

Commit be46e4f

Browse files
committed
and edge -> an edge
1 parent 4f388bb commit be46e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph/hungarian-algorithm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ On the one hand, it is easy to see that the cost of the desired solution $sol$ *
6161

6262
On the other hand, it turns out that there is always a solution and a potential that turns this inequality into **equality**. The Hungarian algorithm described below will be a constructive proof of this fact. For now, let's just pay attention to the fact that if any solution has a cost equal to any potential, then this solution is **optimal**.
6363

64-
Let's fix some potential. Let's call and edge $(i,j)$ **rigid** if $u[i]+v[j]=A[i][j].$
64+
Let's fix some potential. Let's call an edge $(i,j)$ **rigid** if $u[i]+v[j]=A[i][j].$
6565

6666
Recall an alternative formulation of the assignment problem, using a bipartite graph. Denote with $H$ a bipartite graph composed only of rigid edges. The Hungarian algorithm will maintain, for the current potential, **the maximum-number-of-edges matching** $M$ of the graph $H$. As soon as $M$ contains $n$ edges, then the solution to the problem will be just $M$ (after all, it will be a solution whose cost coincides with the value of a potential).
6767

0 commit comments

Comments
 (0)