M

Mr. Dubey • 100.69K Points
Coach

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
Share

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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics