GATE 2024 (Session 2)
65 questions
MCQ 32 · MSQ 18 · NAT 151-mark 30 · 2-mark 35
Questions 51–55 of 65
Let be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in has even weight. Which of the following statements is/are TRUE for every such graph ?
One or more options are correct.
Answer: (D)
Why (D) is true. Take any cycle C and two edges e, f on it. Removing f from C leaves a path that contains e. Extend this path to a spanning tree T. Then T contains e and not f. Now is also a spanning tree, because removing e splits T into two parts and f joins them again.
. Both trees have even weight, so this difference is even, so e and f have the same parity. This holds for every pair of edges on the cycle, so in each cycle all edges are even or all are odd.
Why the others are false.
- (A) and (C): take a triangle with all weights 1. Every spanning tree has 2 edges, so weight 2 (even). But the edges are odd, so (A) fails, and the cycle has odd edges, so (C) fails.
- (B): take a path with 3 edges of weights 1, 1, 2. It is its own only spanning tree, with weight 4 (even). But the edges are neither all even nor all odd.
Answer: (D)
. Both trees have even weight, so this difference is even, so e and f have the same parity. This holds for every pair of edges on the cycle, so in each cycle all edges are even or all are odd.
Why the others are false.
- (A) and (C): take a triangle with all weights 1. Every spanning tree has 2 edges, so weight 2 (even). But the edges are odd, so (A) fails, and the cycle has odd edges, so (C) fails.
- (B): take a path with 3 edges of weights 1, 1, 2. It is its own only spanning tree, with weight 4 (even). But the edges are neither all even nor all odd.
Answer: (D)
Consider a context-free grammar with the following 3 rules.
Let . Let denote the number of times occur in , respectively. Which of the following statements is/are TRUE?
Let . Let denote the number of times occur in , respectively. Which of the following statements is/are TRUE?
One or more options are correct.
Answer: (B), (C)
Count the symbols each rule gives:
- Each S in the end turns into one c. The rule adds one b and one extra S. The rule adds no extra S. Start with one S: is TRUE (so is FALSE, for example w = c).
- Every b comes with an a, so is TRUE.
- does not hold for w = acbc () is FALSE.
Answer: and
- Each S in the end turns into one c. The rule adds one b and one extra S. The rule adds no extra S. Start with one S: is TRUE (so is FALSE, for example w = c).
- Every b comes with an a, so is TRUE.
- does not hold for w = acbc () is FALSE.
Answer: and
Consider a disk with the following specifications: rotation speed of 6000 RPM, average seek time of 5 milliseconds, 500 sectors/track, 512-byte sectors. A file has content stored in 3000 sectors located randomly on the disk. Assuming average rotational latency, the total time (in seconds, rounded off to 2 decimal places) to read the entire file from the disk is _______
Answer: 29.5 to 30.5
The disk turns at 6000 RPM, which is 100 rotations per second So one rotation takes 10 ms, and the average rotational latency is 5 ms.
Transfer time for one sector: ms.
The sectors are placed randomly, so every sector needs seek time, latency and transfer time:
ms
Total time: s
Answer: 30.06
Transfer time for one sector: ms.
The sectors are placed randomly, so every sector needs seek time, latency and transfer time:
ms
Total time: s
Answer: 30.06
Consider a TCP connection operating at a point of time with the congestion window of size 12 MSS (Maximum Segment Size), when a timeout occurs due to packet loss. Assuming that all the segments transmitted in the next two RTTs (Round Trip Time) are acknowledged correctly, the congestion window size (in MSS) during the third RTT will be _________
Answer: 4
When a timeout happens: MSS. The cwnd is reset to 1 MSS. Then slow start begins, and the window doubles in every RTT:
- RTT 1: cwnd = 1
- RTT 2: cwnd = 2
- RTT 3: cwnd = 4 (this is still less than ssthresh = 6)
Answer: 4
- RTT 1: cwnd = 1
- RTT 2: cwnd = 2
- RTT 3: cwnd = 4 (this is still less than ssthresh = 6)
Answer: 4
Consider an Ethernet segment with a transmission speed of bits/sec and a maximum segment length of 500 meters. If the speed of propagation of the signal in the medium is meters/sec, then the minimum frame size (in bits) required for collision detection is _________
Answer: 500
To detect a collision, the time to send the frame must be at least the time for the signal to go and come back:
Propagation time:
Minimum frame size: bits
Answer: 500
Propagation time:
Minimum frame size: bits
Answer: 500