Text this: Numerical Solutions to the Variational Problems by Dijkstra's Path-Finding Algorithm.