Hi,
I am working on problem 19.10 in version 1.4.8 of the book. The question is about finding the shortest path but if there are multiple shortest paths of the same length, it should return the path with the least number of edges in it.
I came up with a heuristic which basically adds a weight x to every edge where x = minEdgeWeight/(total number of edges + 1). After this, I claim that running Dijkstra on this updated graph will return the correct answer.
I am not able to prove/disprove this claim formally. Any hints on how to proceed?
Cheers,
Pankaj