Shivam164's blog

By Shivam164, history, 4 years ago, In English

As while running Dijkstra's algorithm using a priority queue, we are keeping extra unnecessary nodes in the priority queue which we would not need in the future, but we can remove such nodes while inserting a new node(of the same value) using set.

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it