Hill climbing & simulated annealing

Step 11 of 13 in Classical AI · Build · Easy

Local search improves one candidate step by step. Hill climbing gets stuck on local peaks; simulated annealing sometimes accepts worse moves early to escape them.

Build it

  1. 8-queens

    Solve 8-queens with hill climbing (with restarts) and with simulated annealing; compare success rates over 100 runs.

    Done when: Table of success rate and average steps.

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map