GATE 2005
203 questions
MCQ 2031-mark 203
Questions 21–25 of 203
Let G be a simple graph with 20 vertices and 100 edges. The size of the minimum vertex cover of G is 8. then, the size of the maximum independent set of G is:
Answer: (A)
A vertex cover is a set of vertices such that every edge has at least one end in the set.
If is a vertex cover, then no edge has both ends outside . So the vertices outside are an independent set. In the other direction, if is an independent set, every edge has at most one end in , so at least one end outside . So the vertices outside are a vertex cover.
So is a vertex cover exactly when is an independent set. The smallest vertex cover gives the largest independent set:
Size of maximum independent set size of minimum vertex cover .
Answer: (A)
If is a vertex cover, then no edge has both ends outside . So the vertices outside are an independent set. In the other direction, if is an independent set, every edge has at most one end in , so at least one end outside . So the vertices outside are a vertex cover.
So is a vertex cover exactly when is an independent set. The smallest vertex cover gives the largest independent set:
Size of maximum independent set size of minimum vertex cover .
Answer: (A)
Which one of the following graphs is NOT planar?
Answer: (A)
(The two figures above redraw the graphs. G2, G3 and G4 are drawn with no crossings; G1 cannot be redrawn without crossings, so it stays as given.)
G1 is not planar. It has 6 vertices: a hexagon (6 edges) plus its three long diagonals, 9 edges in all. Number the hexagon vertices 0 to 5 in order. Each vertex is joined to and , and each of these has a different parity from . So the even vertices {0, 2, 4} are each joined to all of the odd vertices {1, 3, 5}, and there are no other edges. That is , which is not planar (Kuratowski's theorem). Another check: a planar graph with no triangles has at most edges, which is 8 for , but G1 has 9.
G2 is planar. It is two triangles (top, upper-left, upper-right and bottom, lower-left, lower-right) joined by three edges, a triangular prism. Draw one triangle inside the other and join matching corners with no crossing.
G3 is planar. It has 5 vertices and 8 edges. Only the top vertex is missing edges, to the two bottom vertices, so G3 is with two edges removed. It is a subgraph of minus one edge, which is planar (see G4), so G3 is planar.
G4 is planar. It has 5 vertices and 9 edges. Only the edge between the left and right vertices is missing, so it is minus one edge. Draw a triangle on the top, bottom-left and bottom-right vertices, put the left vertex inside it and the right vertex outside; each joins to all three triangle vertices with no crossing.
Only G1 is not planar.
Answer: (A)
Let G be a simple connected planar graph with 13 vertices and 19 edges. Then, the number of faces in the planar embedding of the graph is:
Answer: (B)
Use Euler's formula for a connected planar graph: , where is the number of vertices, the number of edges and the number of faces.
Answer: (B)
Answer: (B)
A line L in a circuit is said to have a stuck-at-0 fault if the line permanently has a logic value 0. Similarly a line L in a circuit is said to have a stuck-at-1 fault if the line permanently has a logic value 1. A circuit is said to have a multiple stuck-at fault if one or more lines have stuck at faults. The total number of distinct multiple stuck-at faults possible in a circuit with N lines is
Answer: (B)
Each of the N lines is in one of 3 states: fault-free, stuck-at-0, or stuck-at-1. So the total number of combinations of states is .
A multiple stuck-at fault needs one or more lines at fault. Exactly one combination has every line fault-free, so remove it:
.
Answer: (B)
A multiple stuck-at fault needs one or more lines at fault. Exactly one combination has every line fault-free, so remove it:
.
Answer: (B)
What is the minimum number of ordered pairs of non-negative numbers that should be chosen to ensure that there are two pairs (a,b) and (c,d) in the chosen set such that
a c mod 3 and b d mod 5
a c mod 3 and b d mod 5
Answer: (C)
Two pairs (a, b) and (c, d) match when and , that is, when they have the same residue pair .
has 3 possible values (0, 1, 2) and has 5 possible values (0 to 4), so there are residue classes.
15 pairs are not enough: choosing one pair from each class gives 15 pairs with no two in the same class. With 16 pairs, two must fall in the same class (pigeonhole principle), and those two satisfy both conditions.
So the minimum is 16.
Answer: (C)
has 3 possible values (0, 1, 2) and has 5 possible values (0 to 4), so there are residue classes.
15 pairs are not enough: choosing one pair from each class gives 15 pairs with no two in the same class. With 16 pairs, two must fall in the same class (pigeonhole principle), and those two satisfy both conditions.
So the minimum is 16.
Answer: (C)