GATE Computer ScienceVery hardGATE CS
For the Petersen graph (10 vertices, 15 edges, 3-regular, independence number 4), let VC be the size of a minimum vertex cover and MM the size of a maximum matching. What is VC − MM?
- A. 0
- B. 1
- C. 2
- D. 3
Correct answer: B. 1
The complement of a maximum independent set is a minimum vertex cover, so VC = 10 − 4 = 6. The Petersen graph has a perfect matching, so MM = 5. König's equality VC = MM holds only for bipartite graphs, and the Petersen graph contains 5-cycles, so VC − MM = 1.
More Algorithms questions
- Binary insertion sort sorts 10 distinct elements. It inserts the k-th element into the sorted prefix of k − 1 elements by binary search…
- A sorted array holds 1000 distinct elements and binary search (one three-way comparison per probe) is applied. What is the worst-case…
- What is the asymptotic solution of T(n) = 3T(n/2) + n² with T(1) = 1?
- Selection sort (find the minimum of the unsorted part and exchange it with the first unsorted position, skipping the exchange when the…
- How many inversions (pairs i < j with A[i] > A[j]) does the array [8, 4, 2, 1, 7, 3, 6, 5] have?
- A max-heap is built from [3, 9, 2, 1, 4, 5, 8, 7] by the bottom-up method (Max-Heapify from the last internal node down to the root…