CS FundamentalsHardGATE CS (PYQ pattern)
Dijkstra's algorithm runs from A on the undirected graph with link costs A-E 9, A-G 6, B-C 3, B-F 5, B-G 7, C-E 8, C-F 9, C-G 5, D-E 5, D-F 6, E-G 7. In what order are the nodes made permanent (A first), and which node is the 4th to become permanent?
- A. E
- B. B
- C. C
- D. D
Correct answer: C. C
Permanent order (node, distance): A 0, G 6, E 9, C 11, B 13, D 14, F 18. The 4th is C.
More Computer Networks questions
- Switches B1..B5 (bridge ID = number) are connected by point-to-point links: B1-B2 (cost 38), B1-B3 (cost 38), B1-B4 (cost 38), B1-B5 (cost…
- Switches B1..B5 (bridge ID = number) are connected by point-to-point links: B1-B2 (cost 38), B1-B3 (cost 38), B1-B4 (cost 38), B1-B5 (cost…
- An (11,7) Hamming code uses even parity with check bits at positions 1, 2, 4 and 8 (positions numbered 1 to 11 from the left). The…
- An (11,7) Hamming code uses even parity with check bits at positions 1, 2, 4 and 8. The received word (positions 1 to 11) is 10001100111…
- Which of these CRC generator polynomials, given as bit strings (leftmost bit is the highest power), is guaranteed to detect EVERY error…
- A 4 x 4 block of data bits is protected by even row and column parity. The received block (rows separated by /, each row followed by | and…