jthilmany.com
← Back to the lab

Lab / 001

Find your own way.

A good trail doesn’t climb every slope head-on. Build one across a made-up mountain range or real elevation tiles, then compare how three search algorithms choose their way through the ground.

Generated terrain

Simulated elevations · generated at a local scale

01 / Terrain

Ground with a little character.

Generated terrain combines broad hills, ridged noise, domain warping, and erosion into a fictional height field; its elevations and 60 m cell scale are simulated. Real-place mode samples AWS Terrain Tiles in Terrarium format, so the colors and scale describe actual elevation data for the selected region.

Hypsometric color, hillshade, and index contours make the relief easier to read. Real tiles are cited below the map and in downloaded PNGs; they are terrain imagery, not hiking directions.

02 / Find a way

Three ways through the hills.

A* expands likely routes first, using a distance-and-climb estimate to guide its search. Dijkstra spreads outward by accumulated trail cost without a guess about the destination, while Greedy best-first follows the closest-looking direction and can trade optimality for fewer explored cells.

The grid connects each cell to its eight neighbors. A grade above your limit is blocked; otherwise horizontal distance, ascent, and steepness contribute to the cost. Compare runs each strategy on the same endpoints so you can inspect their routes, explored areas, and measurements side by side.

Quick navigation

Where to?

↑↓ to explore · Enter to open