Is Dijkstra's algorithm a greedy algorithm?

1 answer

Answer

1189377

2026-04-19 06:40

+ Follow

Yes, Dijkstra's algorithm is a greedy algorithm because it makes decisions based on the current best option without considering future consequences.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.