GATE 2003
107 questions
MCQ 1071-mark 107
Questions 11–15 of 107
Therefore, min-degree of G cannot be
Answer: (D)
Say every vertex has the minimum degree. Then, by the handshaking lemma, the least number of edges the graph can have is
But the question gives the most edges such a graph can have as
So we put the least number of edges from the handshaking lemma into the given inequality, and we get:
This is clearly not possible, since it is inconsistent.
So the answer is option (D)
Answer: (A)
Here . The first edge can be picked in ways. The second edge can be picked in ways. The third edge can be picked in way. So the total number of ways . But a perfect matching is a set, so the order of the edges does not matter. All orderings of the edges give the same matching. So the number of perfect matchings .
Another way: think of identical buckets that are to be filled with vertices, with vertices going into each bucket. The first vertex can pair with any of the other vertices and go into a bucket, so there are ways. Now only vertices and buckets are left. Take one vertex. It can pick its partner in ways and go into the second bucket, so ways. Now one bucket and vertices are left. So there is only way to fill the last bucket. Total ways:
Answer: (A)
Among the following sequences
(I) a b e g h f
(II) a b f e h g
(III) a b f h g e
(IV) a f g h b e
Which are depth first traversals of the above graph?
Answer: (D)
DFS moves from the current vertex to an unvisited neighbour. It goes back (backtracks) only when the current vertex has no unvisited neighbour left.
I : , , , , are all edges to new vertices. Valid.
II : and are not joined by an edge. Also still has unvisited neighbours and , so DFS cannot leave by backtracking. Not valid.
III : , , , , are all edges to new vertices. Valid.
IV : , , , , are all edges to new vertices. Valid.
So I, III and IV are DFS traversals. Options (A) and (C) include II, and (B) leaves out III.
Answer: (D)
Answer: (C)
Lower bound: the number of components can drop to . This happens when is an isolated vertex that formed a component by itself. It cannot drop further, since removing one vertex can remove at most one whole component. If is not isolated, the count stays the same or goes up.
Upper bound: only vertices remain, so there can be at most components. This can be reached. Take a component where one vertex is joined to all the other vertices, as in a star. Let all the vertices outside this component be isolated. Now remove that one vertex. All the other vertices become isolated, which gives components.
So the number of components lies between and , and both ends can occur. Option (B) is too narrow, since a star's centre gives more than components. Options (A) and (D) have a wrong lower end, since can occur.
Answer: (C)
If all permutation are equally likely, what is the expected number of inversions in a randomly chosen permutation of 1.....n?
Answer: (B)
Take integers. They give possible pairs.
The integers are distinct and the order is random. So any pair is equally likely to be inverted or not inverted. This means the probability of inversion
There are pairs, and each pair is inverted with probability . So the expected number of inversions is:
Correct Option: B.