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?
Does this implementation enhancement really matter or make difference? I don't think so!
Note: we can use
long long
aspair<int, int>