Skip to content
Embercode
✕
Advanced graphsQuick quiz

Spanning trees and rollback DSU

8 questions. Covers Disjoint set union with rollback.

Questions 1 to 5 of 8

  1. 1. A graph has five vertices and these edges: 0-1 (weight 1), 1-2 (weight 2), 0-2 (weight 2), 2-3 (weight 3), 3-4 (weight 1), 1-3 (weight 4) and 2-4 (weight 5). Take the cut S = {3, 4}. Which edge is in every minimum spanning tree?
  2. 2. On the cycle 0-1-2-0 with edges 0-1 (weight 1), 1-2 (weight 2) and 0-2 (weight 2), which claim is true?
  3. 3. Which statements about the cycle property and the cut property are true? Choose all that apply.

    Pick every answer that is true.

  4. 4. An AI wrote Kruskal's method but left out the sort step. On the lesson's graph, with the edges in a bad order, it prints a total of 12. What symptom should a test look for?
  5. 5. Match each step or rule to the method it belongs to.

    Choose the matching item for each row.

5 question(s) left on this page.