Skip to content

Instantly share code, notes, and snippets.

@kartikkukreja
Last active August 29, 2015 14:22
Show Gist options
  • Save kartikkukreja/641bc7739f94e01ca23e to your computer and use it in GitHub Desktop.
Save kartikkukreja/641bc7739f94e01ca23e to your computer and use it in GitHub Desktop.
Search Problem Abstract
class SearchProblem:
def __init__(self):
# initialize
def getStartState(self):
# return start state
def isGoalState(self, state):
# return True if state is a goal state else False
def getSuccessors(self, state):
# return list of successors (next states reachable) from the given state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment