GATE 2003
107 questions
MCQ 1071-mark 107
Questions 26–30 of 107
A program consists of two modules executed sequentially. Let f1(t) and f2(t) respectively denote the probability density functions of time taken to execute the two modules. The probability density function of the overall time taken to execute the program is given by
Answer: (C)
Let and be the times of the two modules, with densities and . The modules run one after the other and are independent, so the total time is .
Suppose the total is and the first module takes . Then the second module must take . Add up this over all possible . This is the convolution of the two densities:
The limits are 0 and because times cannot be negative: for , and when , that is .
Option (A) is wrong because the sum of two densities has total area 2, not 1. Option (B) multiplies and at the same point , so the total time never enters the split.
Answer: (C)
Suppose the total is and the first module takes . Then the second module must take . Add up this over all possible . This is the convolution of the two densities:
The limits are 0 and because times cannot be negative: for , and when , that is .
Option (A) is wrong because the sum of two densities has total area 2, not 1. Option (B) multiplies and at the same point , so the total time never enters the split.
Answer: (C)
A graph G = (V, E) satisfies |E| 3|V|-6. The min-degree of G is defined as .
Therefore, min-degree of G cannot be
Therefore, min-degree of G cannot be
Answer: (D)
Say every vertex has the minimum degree. So the least number of edges the graph can have comes from the handshaking lemma:
But the question gives the most edges such a graph can have:
Now put the least number of edges from the handshaking lemma into the given inequality. We get:
This is clearly not possible, so the inequality fails.
So the answer is option (D)
Let = {a, b, c, d, e} be an alphabet. We define an encoding scheme as follows : g(a) = 3, g(b) = 5, g(c) = 7, g(d) = 9, g(e) = 11.
Let denote the i-th prime number (=2).
For a non-empty string , where each , define .
For a non-empty sequence of strings from ,
define
Which of the following numbers is the encoding, h, of a non-empty sequence of strings?
Let denote the i-th prime number (=2).
For a non-empty string , where each , define .
For a non-empty sequence of strings from ,
define
Which of the following numbers is the encoding, h, of a non-empty sequence of strings?
Answer: (B)
Here is a product of primes , and each is odd and at least 3. So is a multiple of . Also uses the primes in order, one for each string, with exponent .
(A) The exponent 7 is not a multiple of 8, so it cannot be .
(C) The exponent 9 is also not a multiple of 8.
(D) It uses the primes 2, 5, 7 and skips 3, and the exponent 10 is not a multiple of 8.
(B) Take three strings, each equal to . Then , so .
Answer: (B)
(A) The exponent 7 is not a multiple of 8, so it cannot be .
(C) The exponent 9 is also not a multiple of 8.
(D) It uses the primes 2, 5, 7 and skips 3, and the exponent 10 is not a multiple of 8.
(B) Take three strings, each equal to . Then , so .
Answer: (B)
Let f : AB be an injective (one-to-one) function.
Define as:
g(C) = {f (x)| x C}, for all subsets C of A.
Define as :
h(D) = {x | x A, f (x) D}, for all subsets D of B.
Which of the following statements is always true?
Define as:
g(C) = {f (x)| x C}, for all subsets C of A.
Define as :
h(D) = {x | x A, f (x) D}, for all subsets D of B.
Which of the following statements is always true?
Answer: (A)
Here is the image of , and is the set of elements of that sends into . The options compare with .
Let . Then for some , and means . So . Hence always, and in fact .
Example: . Then and .
(B) fails here, as . It would need onto.
(C) Empty intersection fails, since .
(D) means it shares nothing with , so a non-empty intersection is never true.
Answer: (A)
Let . Then for some , and means . So . Hence always, and in fact .
Example: . Then and .
(B) fails here, as . It would need onto.
(C) Empty intersection fails, since .
(D) means it shares nothing with , so a non-empty intersection is never true.
Answer: (A)
How many perfect matching are there in a complete graph of 6 vertices?
Answer: (A)
A perfect matching is a set of edges in which every vertex is used exactly once. With vertices it has edges, so must be even. Here , so every matching has 3 edges.
Method 1. The first edge can be picked in ways, the second in ways and the third in way. That gives . A matching is a set, so the order of the edges does not matter, and all orderings of the same 3 edges give one matching. So the number of perfect matchings .
Method 2. Take a vertex. It can pair with any of the other 5 vertices, so there are 5 ways. Now 4 vertices are left. Take one of them. It can pair with any of the other 3, so there are 3 ways. The last 2 vertices must pair with each other, so there is 1 way. Total .
Answer: (A)
Method 1. The first edge can be picked in ways, the second in ways and the third in way. That gives . A matching is a set, so the order of the edges does not matter, and all orderings of the same 3 edges give one matching. So the number of perfect matchings .
Method 2. Take a vertex. It can pair with any of the other 5 vertices, so there are 5 ways. Now 4 vertices are left. Take one of them. It can pair with any of the other 3, so there are 3 ways. The last 2 vertices must pair with each other, so there is 1 way. Total .
Answer: (A)