Computer Sciences > GATE 2026 SET-1 > Graph Algorithms
Let G(V, E) be a simple, undirected graph. A vertex cover of G is a subset V′ ⊆ V such that for every (u, v) ∈ E, u ∈ V′ or v ∈ V′. Let the size of the smallest vertex cover in G be k. Let S be any vertex cover of size k.

For a vertex v ∈ V, which of the following constraints will always ensure that v ∈ S?
A
The degree of v is at least k + 1
B
The vertex v is on a path of length k + 1
C
The vertex v is on a cycle of length k + 1
D
The vertex v is a part of a clique of size k

Correct : a

A vertex cover S of size k must cover every edge in the graph — for each edge at least one of its endpoints must be in S.
Option A — True: degree of v ≥ k+1 forces v ∈ S
If v has k+1 or more neighbours and v is not in S, then every single edge from v to each of its k+1 neighbours must be covered by the neighbour''s side. That means all k+1 neighbours must be in S. But S has only k vertices total — it cannot hold k+1 vertices just for v''s neighbours. This contradiction means v must be in S. Option A always guarantees v ∈ S.
Option B — False: being on a path of length k+1 does not force v ∈ S
A path of length k+1 has k+1 edges and k+2 vertices. Its minimum vertex cover picks every alternate vertex, needing only ⌊(k+1)/2⌋ + 1 vertices. The vertex v could be one of the endpoints or an unselected alternate vertex and still not be needed in the cover. B does not always force v ∈ S.
Option C — False: being on a cycle of length k+1 does not force v ∈ S
A cycle of length k+1 can be covered by picking ⌊(k+1)/2⌋ vertices and skipping others. Vertex v can be one of the skipped vertices. C does not always force v ∈ S.
Option D — False: being in a clique of size k does not force v ∈ S
A clique of size k needs only k−1 vertices in its cover — all vertices except one. Vertex v could be the one excluded from the cover. D does not always force v ∈ S.
Correct answer: A ✓

Similar Questions

Let G(V,E) be an undirected and unweighted graph with 100 vertices. Let d(u,v) denote the number of edges in a shortest path between vertices u and v in V. Let...
#1386 MCQ
Let G be an edge-weighted undirected graph with positive edge weights. Suppose a positive constant a is added to the weight of every edge. Which ONE of the foll...
#1445 MCQ
Consider the following algorithm someAlgo that takes an undirected graph G as input. The output of someAlgo (T) for the tree shown in the given figure is _____...
#1466 NAT

Related Topics

vertex cover minimum size k GATE 2026 GATE CS 2026 Set-1 Q50 vertex cover degree at least k+1 GATE degree constraint vertex always in cover GATE graph algorithms GATE 2026 minimum vertex cover forced vertex GATE

Unique Visitor Count

Total Unique Visitors

Loading......