Q25.webp
F

Q25.webp

  • Media owner Fu84
  • Ngày thêm
Question: 25
(Choose 1 answer)
How can the shortest-path tree be reconstructed after executing Dijkstra's algorithm?
A. By maintaining a 'parent' pointer for each vertex, indicating the predecessor vertex on the shortest path
from the source vertex.
B. By tracing back from the destination vertex to the source vertex using a depth-first search.
C. By iterating through the vertices in the order they were added to the "cloud".
D. The shortest-path tree is implicitly constructed during the algorithm's execution and doesn't require a
separate reconstruction step.

Thông tin

Category
CSD203
Thêm bởi
Fu84
Ngày thêm
Lượt xem
523
Lượt bình luận
3
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom