in Others edited by
618 views
0 votes
0 votes

The maximum number of times the decrease key operation performed in Dijkstra’s algorithm will be equal to ______________.

  1. Total number of vertices 
  2. Total number of edges
  3. Number of vertices $ – 1$
  4. Number of edges $ – 1$
in Others edited by
618 views

1 Answer

1 vote
1 vote

B). Total number of edges ..

 

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....

by

Related questions