Skip to content

Commit 33032b3

Browse files
authored
Update Tree-Search-and-Graph-Search.md
1 parent 4c9a330 commit 33032b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

md/Tree-Search-and-Graph-Search.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# GENERIC-SEARCH
1+
# GRAPH-SEARCH
22

33
## AIMA4e
44

55

6-
__function__ GENERIC-SEARCH(_problem_) __returns__ a solution, or failure
6+
__function__ GRAPH-SEARCH(_problem_) __returns__ a solution, or failure
77
 _frontier_ ← a queue initially containing one path, for the _problem_'s initial state
88
 _reached_ ← a table of {_state_: the best path that reached _state_}; initially empty
99
 _solution_ ← failure
1010
 __while__ _frontier_ is not empty __and__ _solution_ can possibly be improved __do__
1111
   _parent_ ← some node that we choose to remove from _frontier_
12-
   __for__ _child_ __in__ successors(_parent_) __do__
12+
   __for__ _child_ __in__ Expand(_parent_) __do__
1313
     _s_ ← _child_.state
1414
     __if__ _s_ is not in _reached_ __or__ _child_ is a cheaper path than _reached_[_s_] __then__
1515
       _reached_[_s_] ← _child_

0 commit comments

Comments
 (0)