3 comments

[ 2.6 ms ] story [ 18.5 ms ] thread
With the small graph in the post, finding the solution by searching backwards from "finished" graphs (ie. single-city) using dynamic programming should be simpler than beam search and guaranteed optimal.
See, that's why I have to post these things. Someone will inevitably reply with something more clever.
I love these sorts of applied maths sorts of post! Nice work, interesting reading.