Graph Theory37 sections · 1633 units
Open in Course

Maximum Matching - Walkthrough

(4 left 3 right)

Trace an example: 44 vertices in LL, 33 in RR, edges {(1,1),(2,1),(2,2),(3,2),(4,3)}\{(1,1), (2,1), (2,2), (3,2), (4,3)\}. Try matching 11 to 11, 22 to 22, then 33 needs to bump someone. DFS finds an augmenting path. 44 matches to 33. Final matching: size 33.

Notice how DFS automatically finds augmenting paths when a direct match fails. This is the power of the recursive approach. The algorithm handles complex rematching without explicit path tracking.