Skip to content

Commit a648c39

Browse files
committed
fix document errors
1 parent 8c436c5 commit a648c39

4 files changed

+5
-5
lines changed

md/And-Or-Graph-Search.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ __function__ AND\-SEARCH(_states_, _problem_, _path_) __returns__ _a conditional
2222

2323
---
2424

25-
__Figure__ ?? An algorithm for searching AND\-OR graphs generated by nondeterministic environments. It returns a conditional plan that reaces a goal state in all circumstances. (The notations \[_x_ | _l_\] refers to the list formed by adding object _x_ to the front of list _l_).
25+
__Figure__ ?? An algorithm for searching AND\-OR graphs generated by nondeterministic environments. It returns a conditional plan that reaches a goal state in all circumstances. (The notations \[_x_ | _l_\] refers to the list formed by adding object _x_ to the front of list _l_).

md/Breadth-First-Search.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## AIMA3e
44
__function__ BREADTH-FIRST-SEARCH(_problem_) __returns__ a solution, or failure
5-
 _node_ ← a node with STATE = _problem_.INITIAL\-STATE
5+
 _node_ ← a node with STATE = _problem_.INITIAL\-STATE, PATH\-COST = 0
66
 __if__ _problem_.GOAL\-TEST(_node_.STATE) __then return__ SOLUTION(_node_)
77
 _frontier_ ← a FIFO queue with _node_ as the only element
88
 _explored_ ← an empty set

md/Depth-Limited-Search.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## AIMA3e
44
__function__ DEPTH-LIMITED-SEARCH(_problem_,_limit_) __returns__ a solution, or failure/cutoff
5-
 __return__ RECURSIVE\-DLS(MAKE\-NODE(_problem_.INTIAL\-STATE),_problem_,_limit_)
5+
 __return__ RECURSIVE\-DLS(MAKE\-NODE(_problem_.INITIAL\-STATE),_problem_,_limit_)
66

77
__function__ RECURSIVE\-DLS(_node_,_problem_,_limit_) __returns__ a solution, or failure/cutoff
8-
 if _problem_.GOAL-TEST(_node_.STATE) __then return__ SOLUTION(_node_)
8+
 __if__ _problem_.GOAL-TEST(_node_.STATE) __then return__ SOLUTION(_node_)
99
 __else if__ _limit_ = 0 __then return__ _cutoff_
1010
 __else__
1111
   _cutoff\_occurred?_ ← false

md/Genetic-Algorithm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ __function__ GENETIC-ALGORITHM(_population_,FITNESS\-FN) __returns__ an individu
4949
__function__ REPRODUCE(_x_, _y_) __returns__ an individual
5050
 __inputs__: _x_,_y_, parent individuals
5151

52-
 _n_ ← LENGTH(_x_); _c_ ← random number from 0 to _n_
52+
 _n_ ← LENGTH(_x_); _c_ ← random number from 1 to _n_
5353
 __return__ APPEND(SUBSTRING(_x_, 1, _c_),SUBSTRING(_y_, _c_+1, _n_))
5454

5555
---

0 commit comments

Comments
 (0)