Skip to content

Commit 44cf8a9

Browse files
authored
Merge pull request #5 from aimacode/master
Update Fork
2 parents f4c63d0 + 9ccc092 commit 44cf8a9

13 files changed

Lines changed: 1658 additions & 63 deletions

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ Here is a table of algorithms, the figure, name of the algorithm in the book and
3030

3131
| **Figure** | **Name (in 3<sup>rd</sup> edition)** | **Name (in repository)** | **File** | **Tests** | **Notebook**
3232
|:-------|:----------------------------------|:------------------------------|:--------------------------------|:-----|:---------|
33-
| 2 | Random-Vacuum-Agent | `RandomVacuumAgent` | [`agents.py`][agents] | Done | |
34-
| 2 | Model-Based-Vacuum-Agent | `ModelBasedVacuumAgent` | [`agents.py`][agents] | Done | |
33+
| 2 | Random-Vacuum-Agent | `RandomVacuumAgent` | [`agents.py`][agents] | Done | Included |
34+
| 2 | Model-Based-Vacuum-Agent | `ModelBasedVacuumAgent` | [`agents.py`][agents] | Done | Included |
3535
| 2.1 | Environment | `Environment` | [`agents.py`][agents] | Done | Included |
3636
| 2.1 | Agent | `Agent` | [`agents.py`][agents] | Done | Included |
37-
| 2.3 | Table-Driven-Vacuum-Agent | `TableDrivenVacuumAgent` | [`agents.py`][agents] | | |
38-
| 2.7 | Table-Driven-Agent | `TableDrivenAgent` | [`agents.py`][agents] | | |
39-
| 2.8 | Reflex-Vacuum-Agent | `ReflexVacuumAgent` | [`agents.py`][agents] | Done | |
40-
| 2.10 | Simple-Reflex-Agent | `SimpleReflexAgent` | [`agents.py`][agents] | | |
41-
| 2.12 | Model-Based-Reflex-Agent | `ReflexAgentWithState` | [`agents.py`][agents] | | |
37+
| 2.3 | Table-Driven-Vacuum-Agent | `TableDrivenVacuumAgent` | [`agents.py`][agents] | | Included |
38+
| 2.7 | Table-Driven-Agent | `TableDrivenAgent` | [`agents.py`][agents] | | Included |
39+
| 2.8 | Reflex-Vacuum-Agent | `ReflexVacuumAgent` | [`agents.py`][agents] | Done | Included |
40+
| 2.10 | Simple-Reflex-Agent | `SimpleReflexAgent` | [`agents.py`][agents] | | Included |
41+
| 2.12 | Model-Based-Reflex-Agent | `ReflexAgentWithState` | [`agents.py`][agents] | | Included |
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 | |

csp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def AC3(csp, queue=None, removals=None):
168168
if not csp.curr_domains[Xi]:
169169
return False
170170
for Xk in csp.neighbors[Xi]:
171-
if Xk != Xi:
171+
if Xk != Xj:
172172
queue.append((Xk, Xi))
173173
return True
174174

0 commit comments

Comments
 (0)