Skip to content
Official PYQ · 2026

GATE CS 2026 Set 1 Q37 — Graphs: Connectivity, Matching, Colouring

Explain with AI

Let G(V,E)G(V, E) be a simple, undirected graph. A vertex cover of GG is a subset V′⊆VV^{\prime} \subseteq V such that for every (u,v)∈E,u∈V′(u, v) \in E, u \in V^{\prime} or v∈V′v \in V^{\prime}. Let the size of the smallest vertex cover in GG be kk. Let SS be any vertex cover of size kk.

For a vertex v∈Vv \in V, which of the following constraints will always ensure that v∈Sv \in S ?

Choose one option
View worked solution

Answer: A

To find which constraint always ensures that v∈Sv \in S, let us analyze each option:

  • Option A: Suppose v∉Sv \notin S. To cover all the edges incident on vv, every neighbor of vv must be included in the vertex cover SS. Since the degree of vv is at least k+1k+1, we must have at least k+1k+1 neighbors of vv in SS. This implies ∣S∣≥k+1|S| \ge k+1, which contradicts the given fact that the size of SS is kk. Thus, vv must belong to SS.
  • Option B: Consider a path v0−v1−v2v_0 - v_1 - v_2 of length 2. The minimum vertex cover size is k=1k = 1, and S={v1}S = \{v_1\}. The vertex v0v_0 lies on this path of length k+1=2k+1 = 2, but v0∉Sv_0 \notin S.
  • Option C: Consider a cycle C3C_3 (triangle v0−v1−v2−v0v_0 - v_1 - v_2 - v_0). The minimum vertex cover size is k=2k = 2. We can choose S={v1,v2}S = \{v_1, v_2\}. The vertex v0v_0 is on a cycle of length k+1=3k+1 = 3, but v0∉Sv_0 \notin S.
  • Option D: Consider G=K2G = K_2 (an edge u−vu - v), which is a clique of size 22. Here, the minimum vertex cover size is k=1k = 1. We can choose S={u}S = \{u\}. The vertex vv is part of a clique of size 22 (which is k+1k+1 here, but even if we consider a clique of size k=1k=1, it is trivial), and v∉Sv \notin S.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Graphs: Connectivity, Matching, Colouring questions