Skip to content

Commit 74dff56

Browse files
apb7norvig
authored andcommitted
Add explanation for Simple Problem Solving Agent (#724)
* Add SimpleProblemSolvingAgent * Fix typo in search.py
1 parent 504c34e commit 74dff56

File tree

3 files changed

+94
-43
lines changed

3 files changed

+94
-43
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Here is a table of algorithms, the figure, name of the algorithm in the book and
4242
| 3 | Problem | `Problem` | [`search.py`][search] | Done | |
4343
| 3 | Node | `Node` | [`search.py`][search] | Done | |
4444
| 3 | Queue | `Queue` | [`utils.py`][utils] | Done | |
45-
| 3.1 | Simple-Problem-Solving-Agent | `SimpleProblemSolvingAgent` | [`search.py`][search] | | |
45+
| 3.1 | Simple-Problem-Solving-Agent | `SimpleProblemSolvingAgent` | [`search.py`][search] | | Included |
4646
| 3.2 | Romania | `romania` | [`search.py`][search] | Done | Included |
4747
| 3.7 | Tree-Search | `tree_search` | [`search.py`][search] | Done | |
4848
| 3.7 | Graph-Search | `graph_search` | [`search.py`][search] | Done | |

search.ipynb

Lines changed: 92 additions & 41 deletions
Large diffs are not rendered by default.

search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class SimpleProblemSolvingAgentProgram:
145145
"""Abstract framework for a problem-solving agent. [Figure 3.1]"""
146146

147147
def __init__(self, initial_state=None):
148-
"""State is an sbstract representation of the state
148+
"""State is an abstract representation of the state
149149
of the world, and seq is the list of actions required
150150
to get to a particular state from the initial state(root)."""
151151
self.state = initial_state

0 commit comments

Comments
 (0)