GATE 2019
65 questions
MCQ 41 · NAT 241-mark 30 · 2-mark 35
Questions 56–60 of 65
Let T be a full binary tree with 8 leaves. (A full binary tree has every level full.) Suppose two leaves a and b of T are chosen uniformly and independently at random. The expected value of the distance between a and b in T (i.e., the number of edges in the unique path between a and b) is (rounded off to 2 decimal places) ___________ .
Answer: 4.25
The tree has 8 leaves and height 3. Fix leaf a. Leaf b can be any of the 8 leaves, even a itself:
- a itself: distance 0 (1 leaf)
- its sibling: distance 2 (1 leaf)
- same height 2 subtree: distance 4 (2 leaves)
- other half: distance 6 (4 leaves)
Answer: 4.25
- a itself: distance 0 (1 leaf)
- its sibling: distance 2 (1 leaf)
- same height 2 subtree: distance 4 (2 leaves)
- other half: distance 6 (4 leaves)
Answer: 4.25
Suppose Y is distributed uniformly in the open interval (1,6). The probability that the polynomial has only real roots is (rounded off to 1 decimal place) _________.
Answer: 0.8
For the roots to be real, the discriminant must be :
Within the interval (1, 6), this gives . So the probability
Answer: 0.8
Within the interval (1, 6), this gives . So the probability
Answer: 0.8
Let be the set of all bijections from {1,...,5} to {1,...,5}, where denotes the identity function, i.e. . Let denote composition on functions. For a string , let . Consider the language . The minimum number of states in any DFA accepting L is _________ .
Answer: 120
The DFA only has to remember the composition of the symbols read so far. This is one of the permutations of {1, , 5}. The start state is id, and it is also the only final state.
All 120 states can be told apart. Take any state . If the DFA reads from there, it goes to id. From no other state does that symbol lead to id. So the minimum number of states is 120.
Answer: 120
All 120 states can be told apart. Take any state . If the DFA reads from there, it goes to id. From no other state does that symbol lead to id. So the minimum number of states is 120.
Answer: 120
Consider that 15 machines need to be connected in a LAN using 8-port Ethernet switches. Assume that these switches do not have any separate up link ports. The minimum number of switches needed is ___________.
Answer: 3
Links between switches take up ports. Each link uses one port on each of its two ends.
- 2 switches: 16 ports 2 ports for the link = 14 ports. Since 14 15, this does not work (False).
- 3 switches in a chain: 24 ports 4 ports for 2 links = 20 ports. Since 20 15, this works (True).
Answer: 3
- 2 switches: 16 ports 2 ports for the link = 14 ports. Since 14 15, this does not work (False).
- 3 switches in a chain: 24 ports 4 ports for 2 links = 20 ports. Since 20 15, this works (True).
Answer: 3
What is the minimum number of 2-input NOR gates required to implement 4-variable function expressed in sum-of-minterms from as ? Assume that all the inputs and their complements are available. Answer ________ .
Answer: 3
K-map: minterms 0, 2, 8, 10 give , and 5, 7, 13, 15 give BD. So (XNOR of B and D).
Product-of-sums form: . Using NOR gates:
- ,
-
This needs 3 gates (complements are available).
Answer: 3
Product-of-sums form: . Using NOR gates:
- ,
-
This needs 3 gates (complements are available).
Answer: 3