CS FundamentalsVery hardIBM · Deloitte pattern

Run Dijkstra's algorithm on this undirected weighted graph (edges given as node-node:weight): A-B:4, A-C:1, C-B:2, B-D:5, C-D:8, D-E:3, C-E:10. Starting from A, what is the shortest-path distance to E?

  1. A. 10
  2. B. 13
  3. C. 11
  4. D. 12

Correct answer: C. 11

Dijkstra from A settles nodes in increasing distance order; the shortest-path distance it finds to E is 11.

More Computer Networks questions

Exams that ask this topic