Skip to content
Official PYQ · 2017

GATE CS 2017 Set 2 Q23 — Graphs: Connectivity, Matching, Colouring

Explain with AI
GG is an undirected graph with nn vertices and 2525 edges such that each vertex of GG has degree at least 33. Then the maximum possible value of nn is _________ .
View worked solution

Answer: 16

According to the Handshaking Lemma, the sum of the degrees of all vertices in an undirected graph is equal to twice the number of edges:

∑v∈Vdeg(v)=2∣E∣\sum_{v \in V} \text{deg}(v) = 2|E|

Given:

  • Number of edges, ∣E∣=25|E| = 25
  • The degree of each vertex is at least 33, i.e., deg(v)≥3\text{deg}(v) \ge 3 for all v∈Vv \in V

Substituting the given values into the Handshaking Lemma:

∑v∈Vdeg(v)=2×25=50\sum_{v \in V} \text{deg}(v) = 2 \times 25 = 50

Since each of the nn vertices has a degree of at least 33:

∑v∈Vdeg(v)≥3n\sum_{v \in V} \text{deg}(v) \ge 3n

Combining these two relations:

3n≤503n \le 50 n≤503≈16.67n \le \frac{50}{3} \approx 16.67

Since the number of vertices nn must be an integer, the maximum possible value of nn is ⌊16.67⌋=16\lfloor 16.67 \rfloor = 16.

Feasibility Check:
For n=16n = 16, the sum of degrees is 5050. We can achieve this with 1414 vertices of degree 33 and 22 vertices of degree 44 (14×3+2×4=5014 \times 3 + 2 \times 4 = 50). Such a graph is easily realizable (for example, by starting with a 3-regular graph on 16 vertices which has 24 edges, and adding 1 edge between two non-adjacent vertices).

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

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