Graph Theory37 sections · 1633 units
Open in Course

Common Mistakes

Matching impl errors

Mistake 11: Forgetting to reset the visited array between DFS calls. This causes the algorithm to miss augmenting paths and return a suboptimal matching. Mistake 22: Using the wrong graph structure (not bipartite).

Check for odd cycles first using BFS coloring. Mistake 33: Off-by-one errors in indexing. Make sure your matching array and adjacency list indices match your input format (00-indexed vs 11-indexed).