Skip to content

Commit 7d06ab9

Browse files
Update FOL-BC-Ask.md
misspelling corrected.
1 parent bbea113 commit 7d06ab9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

md/FOL-BC-Ask.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
__function__ FOL-BC-ASK(_KB_, _query_) __returns__ a generator of substitutions
55
 __return__ FOL-BC-OR(_KB_, _query_, { })
66

7-
__generator__ FOL-BC-OR(_KB_, _goal_, _θ_) __yeilds__ a substitution
7+
__generator__ FOL-BC-OR(_KB_, _goal_, _θ_) __yields__ a substitution
88
 __for each__ rule (_lhs_ ⇒ _rhs_) __in__ FETCH-RULES-FOR-GOAL(_KB_, _goal_) __do__
99
   (_lhs_, _rhs_) ← STANDARDIZE-VARIABLES((_lhs_, _rhs_))
1010
   __for each__ _θ_' __in__ FOL-BC-AND(_KB_, _lhs_, UNIFY(_rhs_, _goal_, _θ_)) __do__
11-
     __yeild__ _θ_'
11+
     __yield__ _θ_'
1212

13-
__generator__ FOL-BC-AND(_KB_, _goals_, _θ_) __yeilds__ a substitution
13+
__generator__ FOL-BC-AND(_KB_, _goals_, _θ_) __yields__ a substitution
1414
 __if__ _θ_ = _failure_ __then return__
15-
 __else if__ LENGTH(_goals_) = 0 __then yeild__ _θ_
15+
 __else if__ LENGTH(_goals_) = 0 __then yield__ _θ_
1616
 __else do__
1717
   _first_, _rest_ ← FIRST(_goals_), REST(_goals_)
1818
   __for each__ _θ_' in FOL-BC-OR(_KB_, SUBST(_θ_, _first_), _θ_) __do__
1919
     __for each__ _θ_'' in FOL-BC-AND(_KB_, _rest_, _θ_') __do__
20-
       __yeild__ _θ_''
20+
       __yield__ _θ_''
2121

2222
---
23-
__Figure__ ?? A simple backward-chaining algorithm for first-order knowledge bases.
23+
__Figure__ ?? A simple backward-chaining algorithm for first-order knowledge bases.

0 commit comments

Comments
 (0)