πŸ“Š Design and Analysis of Algorithms
Q. The maximum number of times the decrease key operation performed in Dijkstra’s algorithm will be equal to
  • (A) total number of vertices
  • (B) total number of edges
  • (C) number of vertices – 1
  • (D) number of edges – 1
πŸ’¬ Discuss
βœ… Correct Answer: (B) total number of edges

Explanation: if the total number of edges in all adjacency list is e, then there will be a total of e number of iterations, hence there will be a total of at most e decrease key operations.


Explanation by: Mr. Dubey
if the total number of edges in all adjacency list is e, then there will be a total of e number of iterations, hence there will be a total of at most e decrease key operations.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
532
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate