You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 517a05a
Browse filesBrowse the repository at this point in the historyBrowse files
search: implement the local-search variants that lack pseudocode (#1151)
#1151 tracks book algorithms with no written pseudocode. Added the local-search
ones it names (AIMA Section 4.1), as simple, faithful implementations of the prose
(each docstring notes there is no book pseudocode + the source section):
- stochastic_hill_climbing (random uphill move)
- first_choice_hill_climbing (random successors until one improves)
- random_restart_hill_climbing (best of N random starts)
- local_beam_search (keep the k best successors each step)
Tests on a unimodal grid (single peak) where every variant reaches it.
0 commit comments