Graphs Beyond Traversal Checkpoint

Justify Kruskal decisions, reconstruct SCC finish order, and trace shortest augmenting paths.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. A connected graph has edges AB:-3, AC:2, BC:4, CD:5, BD:9. What MST total does Kruskal return? Enter one integer.
2. Kruskal has selected n-2 edges in a connected n-vertex graph. The next edge joins vertices with the same DSU root. What should happen?

Select one answer.

3. DFS on 0→1→2, starting at 0, appends vertices on finish as [2,1,0]. How many SCCs exist? Enter one integer.
4. A first pass on the original graph appends vertices after all descendants finish. Which second pass implements the lesson’s Kosaraju convention?

Select one answer.

5. A graph with six vertices contains SCCs {0,1}, {2,3}, {4}, {5}, with an edge from 1 to 2. Why must that one-way edge not combine the first two SCCs?

Select one answer.

6. The matching is A–X and B–Y. A also connects to Z, B also connects to X, and free C connects only to Y. Which rerouting matches all three left vertices?

Select one answer.

7. BFS finds a shortest free-right terminal distance of 2 in a matching phase. DFS at left u has dist[u]=2 and sees a free right. What is the correct decision?

Select one answer.

8. A sparse matching instance contains an alternating path with 5,000 left vertices. What implementation change addresses Python recursion depth while preserving the path search?

Select one answer.

Join Discord