Data Structures & AlgorithmsVery hardICPC regional · graph connectivity

Problem: Which problem asks for the minimum number of edges to add to make a graph 2-edge-connected?

  1. A. Bridge-tree leaf pairing (ceil of leaves / 2 for the bridge tree)
  2. B. Shortest path
  3. C. Assignment problem
  4. D. Topological sort

Correct answer: A. Bridge-tree leaf pairing (ceil of leaves / 2 for the bridge tree)

Adding edges between leaves of the bridge tree is optimal, so the answer is about half the number of leaves.

More Coding Interview Problems questions

Exams that ask this topic