Guest User

Untitled

a guest
Jan 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. def breadthFirstSearch(problem):
  2.   """
  3.  Search the shallowest nodes in the search tree first.
  4.  [2nd Edition: p 73, 3rd Edition: p 82]
  5.  """
  6.   "*** YOUR CODE HERE ***"
  7.   node = problem.getStartState()
  8.   if (problem.isGoalState(node)):
  9.     return node
  10.   frontier = Queue()
Add Comment
Please, Sign In to add comment