Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 029edb5

Browse files
committed
Corrected comment.
1 parent 424d0f2 commit 029edb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def best_first_graph_search(problem, f):
190190
"""Search the nodes with the lowest f scores first.
191191
You specify the function f(node) that you want to minimize; for example,
192192
if f is a heuristic estimate to the goal, then we have greedy best
193-
first search; if f is node.depth then we have depth-first search.
193+
first search; if f is node.depth then we have breadth-first search.
194194
There is a subtlety: the line "f = memoize(f, 'f')" means that the f
195195
values will be cached on the nodes as they are computed. So after doing
196196
a best first search you can examine the f values of the path returned."""

0 commit comments

Comments
 (0)