Skip to content

Instantly share code, notes, and snippets.

@Iron-Ham
Last active September 30, 2015 00:57
Show Gist options
  • Save Iron-Ham/99f107dfdbe7e7a7bcfa to your computer and use it in GitHub Desktop.
Save Iron-Ham/99f107dfdbe7e7a7bcfa to your computer and use it in GitHub Desktop.
HillClimbPseudo.txt
func HILL_CLIMBING(problem):
current <- MAKE_NODE(problem.INITIAL_STATE)
loop do:
neighbor <- highest valued successor of current
if neighbor.VALUE <= current.VALUE then return current.STATE
current <- neighbor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment