Question 23
Consider the following graph.
Which of the following options correctly represents the shortest distances from node 0 to nodes (1, 2, 3, 4, 5) respectively?
3, 2, 5, 9, 8
4, 2, 6, 9, 8
3, 2, 5, 8, 7
3, 2, 5, 7, 8
Consider the following graph.
Which of the following options correctly represents the shortest distances from node 0 to nodes (1, 2, 3, 4, 5) respectively?
3, 2, 5, 9, 8
4, 2, 6, 9, 8
3, 2, 5, 8, 7
3, 2, 5, 7, 8
Correct answer
3, 2, 5, 8, 7
Question 23 of 24 in the IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) End Term paper sat on 10 May 2026, in the January 2026 term (Programming, Data Structures And Algorithms Using Python 10 May 26). It carries 5 marks.