Dijkstra implementation without pairs

Revision en1, by whatthemomooofun1729, 2022-11-25 06:40:26

I recently read that you could improve the performance of the Dijkstra algorithm by getting rid of pairs and doing comparison operator overloading (https://cp-algorithms.com/graph/dijkstra_sparse.html#getting-rid-of-pairs)

Does anyone have this implementation?

Tags dijkstra, algorithms

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English whatthemomooofun1729 2022-11-25 06:40:26 300 Initial revision (published)