CS FundamentalsVery hardGATE CS (PYQ pattern)
A weighted undirected graph on nodes 0..5 has edges (u,v,w): (0,1,1), (1,2,2), (0,2,2), (2,3,3), (1,3,3), (3,4,1), (2,4,4), (4,5,2), (3,5,2). How many different minimum spanning trees does it have?
- A. 9
- B. 8
- C. 16
- D. 7
Correct answer: B. 8
The minimum total weight is 9. Ties between equal-weight edges that close a cycle (e.g. 1-2 vs 0-2, 2-3 vs 1-3, 4-5 vs 3-5) give independent choices; enumerating all 5-edge subsets that form a tree gives 8 minimum-weight trees.
More Computer Networks questions
- Routers form a 4 x 4 grid with coordinates (row, column), 0 to 3, and links between horizontal and vertical neighbours of equal cost. Two…
- A leaky bucket holds at most 5 packets and leaks (sends) 1 packet at the end of every tick. In ticks 1 to 8, packets arrive as 3, 4, 0, 5…
- A WFQ scheduler (bit-by-bit round robin approximation) serves three flows backlogged at time 0 with weights A = 2, B = 1, C = 1. Packet…
- Four flows share links: a uses L1; b uses L1 and L2; c uses L2 and L3; d uses L3. Link capacities (Mbps): L1 = 12, L2 = 6, L3 = 10. What…
- A router has four routes to the same prefix (local-pref, AS-path length, origin type, MED, learned via, IGP cost to next hop): R1 (100, 3…
- A TCP sender starts with cwnd = 1 MSS and ssthresh = 16 MSS. Each round trip: if cwnd < ssthresh the window doubles (but never beyond…