Finds the easiest path through hilly terrain
Search for a path through a rectangular grid of heights that minimizes the changes in elevation.
The points in the grid are linked to orthogonal neighbours. The links are costed using the formula
sqrt( 1 + ( height(a) - (height(b) )^2 )
A space delimited text file.
The first line in the input file should be
format hills
Specifies elevation of an m row and n column grid
format hills o 1 2 3 o 2 5 2 o 3 2 1 s 1 1 e 3 3
Dijkstra
There was an error while loading. Please reload this page.