Most articles on Dijkstra’s algorithm focus only on what data structure should be used to perform the “relaxation” of nodes.
I am going to use a mini-heap that works on O(m log(n)) I believe.
My real question is, what data structure should I use to store the neighboring nodes of each node? I am thinking about using an adjacency list because I can find all the neighboring nodes on u in O(deg(u)) , is this the fastest method?
How will this change the running time of the algorithm?
source share