HomeCognitive ScienceProblem Space Search: Hill Climbing vs Simulated Annealing

Problem Space Search: Hill Climbing vs Simulated Annealing

Watch an agent search a randomly generated peak landscape with hill climbing, random-restart hill climbing, or simulated annealing, and see Newell & Simon's local-maximum trap in action.

Cognitive Science3DModerate60 FPS
problem-solving ↗ Open standalone

Newell and Simon modelled problem solving as search through a "problem space" — states connected by operators, moving from a start toward a goal. This simulator renders that idea literally: a real 3D landscape built from overlapping Gaussian peaks, with a searching agent that can run greedy hill climbing, random-restart hill climbing, or simulated annealing across it. Watch hill climbing get trapped the instant it reaches a local maximum, watch random restarts try again from a fresh state, and watch simulated annealing's cooling temperature let it tolerate temporarily worse moves — a direct computational parallel to the incubation and functional-fixedness effects the accompanying article covers — before settling onto the true global optimum.

⚙ Under the hood

Watch an agent search a randomly generated Gaussian-peak landscape with hill climbing, random-restart hill climbing, or simulated annealing, and see Newell & Simon's local-maximum trap play out live in 3D.

Three.jsCognitive ScienceSearch AlgorithmsProblem SolvingOptimizationNewell & Simon

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)