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.
Q. The maximum number of times the decrease key operation performed in Dijkstra’s algorithm will be equal to
β
Correct Answer: (B)
total number of edges
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