by Maarten Behn
Group 5
Exercise 1.1 (Algorithm for maximum weight bipartite matching)
For the weighted bipartite graph given below and for each , compute a maximum weight matching of cardinality .
Exercise 1.2 (Improved running time for maximum weight bipartite matching)
Prove the following theorem from the lecture:
We can compute a maximum-weight matching in a bipartite graph in time , where is the minimum size of a maximum-weight matching.
Given
- bipartite graph
- directed Graph
- set of exposed vertecies
- the maximum weight matching with no path in with negative length
Task
Let be the cardinality of
Let be a maximum matching in of cardinality
proof that
Proof by induction over n
Start
→
( and are equal so this is obviously true) tho
Step
Let be a path in
Let be the shortest path in
Let (The sum of all weights of a path also refered to as the length.)
Observation
(The weight of the matching always increases by the negative weight of the shortest path. I have not proofen this futher as it seems obvious. I hope this is fine. I did not really know how formal the proof should be.)
because
Exercise 1.3 (Algorithm for the assignment problem)
Prove the following theorem from the lecture:
We can compute a minimum-weight perfect matching in a bipartite graph in time .
Given
- bipartite graph
Task
- Show how to perform the minimum-weight perfect matching in a bipartite graph
- Proof that it has a runtime of
1. Show by reduction to maximum weight matching
Let
Let
Let
Perform the first and second step of maximum weight matching on .
Let be the set of computed matchings from the second step.
Let
Let be the matching in with cardinality .
is the minimum-weight perfect matching in .
Proof: exists in
A maximum weight matching of could be of cardinality therefore the must contain .
Proof: is a perfekt matching
is of cardinality .
Proof: is a minimum-weight matching
Observation
is the maximum weigth of all perfect matchings.
If the maximum value is subtracted from a constant value the resulting value is the minimum. Because both sums are over the same matching,
is the minimum weight of all perfect matchings.
→ M is a minimum-weight matching
2. Proof that its runtime is
| Steps | Runtime |
|---|---|
| Let | |
| Perform maximum weight matching |
All other steps have a runtime of .
Sources
The idea for I got from here:
https://www.cse.iitd.ac.in/~naveen/courses/CSL851/lec4.pdf (10.4.25, 22:09)