Steepest-ascent: examine all neighbors, take the best improving one. Stops at any local optimum.
10.0 0.995
idle
Iteration
0
Current cost
-
Best ever
-
Temperature
-
SA accept/reject
0/0

Current state

Cost over iterations

✨ Featured comparison
Featured comparison

Run greedy hill climbing and simulated annealing from the same landscape. The useful question is not which is smarter, but which escape options each one has.

Use the same starting state, then compare the route, final score, and local-trap behavior.

🧭 Visual explanation

Live state to watch
No state captured yet. Run or adjust the applet first.
Misread to avoid

📚 Lesson tour (5 steps)
Step 1/5: -

-

📝 Worksheet (3 questions)

Q1. TSP, steepest-ascent HC. Run to convergence several times from different restarts. Does it always find the SAME (global-optimum) solution?

Q2. Same TSP. Switch to random-restart HC. After several minutes, "best ever" cost is:

Q3. Simulated annealing. As temperature T cools toward zero, the algorithm behavior becomes:

🧪 Student response packet

Run a local-search strategy, watch its cost trajectory, then explain why it got stuck or escaped.

State snapshot appears here.
♿ Text and keyboard support

Text and keyboard support

Keyboard path

  • Use Tab and Shift+Tab to move through controls.
  • Use Enter or Space on buttons, and arrow keys on sliders or select controls.
  • The visual region is focusable and described by the state summary below.

Text state summary

Reduced motion and non-visual support

Reduced-motion settings are honored where possible. The current state is also available as text, so the main result does not depend only on color, animation, or spatial position.

Accessibility note: this layer gives a text equivalent for the applet state. It does not replace a full human screen-reader audit.