01 · Define rewards and costs
02 · Compare the lowest gain
Each step before arrival costs 1Moving and waiting both count
X and Y total 15; Y has the higher minimum.
Illustrative example · rewards, costs and updates are constructed. All candidate routes are shown in the next view.