GATE 2001
60 questions
MCQ 601-mark 60
Questions 6–10 of 60
How many undirected graphs (not necessarily connected) can be constructed out of a given set V={} of n vertices ?
Answer: (D)
A simple graph on vertices can have at most edges. Any subset of these edges gives one graph. So the total number of undirected graphs is .
Correct Answer:
Correct Answer:
Consider the undirected unweighted graph G. Let a breadth-first traversal of G be done starting from a node r . Let d(r,u) and d(r,v) be the lengths of the shortest paths form r to u and v respectively in G. If u is visited before v during the breadth-first traversal, which of the following statements is correct ?
Answer: (B)
BFS keeps a queue and visits vertices level by level: first , then all vertices at distance 1, then all at distance 2, and so on. In an unweighted graph, the level of a vertex is its shortest-path distance from . So vertices are visited in non-decreasing order of .
If is visited before , there are two cases:
1. is on an earlier level, so .
2. and are on the same level and came first in the queue, so .
Together, .
(A) is wrong because equality can happen, for example two neighbours of . (C) is wrong because a vertex on a later level is never visited before one on an earlier level.
Answer: (B)
If is visited before , there are two cases:
1. is on an earlier level, so .
2. and are on the same level and came first in the queue, so .
Together, .
(A) is wrong because equality can happen, for example two neighbours of . (C) is wrong because a vertex on a later level is never visited before one on an earlier level.
Answer: (B)
How many 4-digit even numbers have all 4 digits distinct?
Answer: (B)
Case 1: the number ends with . Then the first digit has choices, the second has and the third has . This gives numbers.
Case 2: the number is even but ends in a digit other than . Then the last digit has choices. The first digit has choices (it cannot be or the last digit). The second digit has choices and the third has . This gives
Adding both cases, we get even numbers with distinct digits. This count does not allow a leading , which is what the question seems to want.
Correct Answer:
Seven (distinct) car accidents occurred in a week. What is the probability that they all occurred on the same day?
Answer: (B)
Each of the 7 distinct accidents can fall on any of the 7 days, so the total number of equally likely assignments is .
For all accidents to fall on the same day, first choose that day (7 ways). Then every accident is forced to be on it, so there are 7 favourable assignments.
Option (A), , is the chance that all accidents fall on one named day.
Answer: (B)
For all accidents to fall on the same day, first choose that day (7 ways). Then every accident is forced to be on it, so there are 7 favourable assignments.
Option (A), , is the chance that all accidents fall on one named day.
Answer: (B)
How many undirected graphs (not necessarily connected) can be constructed out of a given set V={} of n vertices ?
Answer: (D)
A simple graph on vertices can have at most edges. Any subset of these edges gives one graph. So the total number of undirected graphs is
Correct Answer:
Correct Answer: