Skip to content

Commit

Permalink
Mention N <= M requirement in WeightedMatching.h (kth-competitive-pro…
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfVoxel authored and yanir-edri committed Feb 11, 2023
1 parent f11629a commit 3ce7e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/graph/WeightedMatching.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* nodes are in two matchings and the sum of the edge weights is minimal. Takes
* cost[N][M], where cost[i][j] = cost for L[i] to be matched with R[j] and
* returns (min cost, match), where L[i] is matched with
* R[match[i]]. Negate costs for max cost.
* R[match[i]]. Negate costs for max cost. Requires $N \le M$.
* Time: O(N^2M)
* Status: Tested on kattis:cordonbleu, stress-tested
*/
Expand Down

0 comments on commit 3ce7e4d

Please sign in to comment.