Open In App

GATE | GATE CS 1997 | Question 42

Like Article
Like
Save Article
Save
Share
Report issue
Report

Let G be the graph with 100 vertices numbered 1 to 100. Two vertices i and j are adjacent if |i−j|=8 or |i−j|=12. The number of connected components in G is

(A)

8

(B)

4

(C)

12

(D)

25


Answer: (B)

Explanation:

When vertices are arranged with difference of 12 the number of components is reduced to 4 as first column will be connected with fifth column, second column will be connected with sixth column, third column will be connected with seventh column and fourth column will be connected with eighth column. No other form of connection exists so total 4 connected components are there. 
So, option (B) is correct. 


Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 02 May, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads