Skip to content

Commit e5b3f58

Browse files
authored
Merge pull request aimacode#87 from nbro/patch-1
Indentation in the 4th ed. of the depth-limited search fixed
2 parents 72206d6 + 96c396c commit e5b3f58

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

md/Depth-Limited-Search.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ __function__ DEPTH-LIMITED-SEARCH(_problem_, _l_) __returns__ a solution, or fai
99
   _parent_ ← pop(_frontier_)
1010
   __if__ depth(_parent_) > l __then__
1111
     _solution_ ← cutoff
12-
     __else__
13-
       __for__ _child_ __in__ successors(_parent_) __do__
14-
         __if__ _child_ is a goal __then__
15-
           __return__ _child_
16-
         add _child_ to __frontier__
12+
   __else__
13+
     __for__ _child_ __in__ successors(_parent_) __do__
14+
       __if__ _child_ is a goal __then__
15+
         __return__ _child_
16+
       add _child_ to __frontier__
1717
 __return__ _solution_
1818

1919
---

0 commit comments

Comments
 (0)