Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab3fe5f

Browse files
Migrating wiki contents from Google Code
0 parents  commit ab3fe5f

File tree

2 files changed

+151
-0
lines changed

2 files changed

+151
-0
lines changed

ProjectHome.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
Python implementation of algorithms from Russell and Norvig's _[Artificial Intelligence: A Modern Approach](http://aima.cs.berkeley.edu)_.
2+
3+
The [Subversion checkout](http://code.google.com/p/aima-python/source/checkout) is actively developed as of October 2011; you'll probably prefer it to the .zip download for now.
4+
5+
# Index of Code #
6+
7+
| **Fig** | **Page** | **Name (in book)** | **Code** |
8+
|:--------|:---------|:-------------------|:---------|
9+
| 2 | 32 | Environment | [Environment](http://aima-python.googlecode.com/svn/trunk/agents.py) |
10+
| 2.1 | 33 | Agent | [Agent](http://aima-python.googlecode.com/svn/trunk/agents.py) |
11+
| 2.3 | 34 | Table-Driven-Vacuum-Agent | [TableDrivenVacuumAgent](http://aima-python.googlecode.com/svn/trunk/agents.py) |
12+
| 2.7 | 45 | Table-Driven-Agent | [TableDrivenAgent](http://aima-python.googlecode.com/svn/trunk/agents.py) |
13+
| 2.8 | 46 | Reflex-Vacuum-Agent | [ReflexVacuumAgent](http://aima-python.googlecode.com/svn/trunk/agents.py) |
14+
| 2.10 | 47 | Simple-Reflex-Agent | [SimpleReflexAgent](http://aima-python.googlecode.com/svn/trunk/agents.py) |
15+
| 2.12 | 49 | Reflex-Agent-With-State | [ReflexAgentWithState](http://aima-python.googlecode.com/svn/trunk/agents.py) |
16+
| 3.1 | 61 | Simple-Problem-Solving-Agent | [SimpleProblemSolvingAgent](http://aima-python.googlecode.com/svn/trunk/search.py) |
17+
| 3 | 62 | Problem | [Problem](http://aima-python.googlecode.com/svn/trunk/search.py) |
18+
| 3.2 | 63 | Romania | [romania](http://aima-python.googlecode.com/svn/trunk/search.py) |
19+
| 3 | 69 | Node | [Node](http://aima-python.googlecode.com/svn/trunk/search.py) |
20+
| 3.7 | 70 | Tree-Search | [tree\_search](http://aima-python.googlecode.com/svn/trunk/search.py) |
21+
| 3 | 71 | Queue | [Queue](http://aima-python.googlecode.com/svn/trunk/utils.py) |
22+
| 3.9 | 72 | Tree-Search | [tree\_search](http://aima-python.googlecode.com/svn/trunk/search.py) |
23+
| 3.13 | 77 | Depth-Limited-Search | [depth\_limited\_search](http://aima-python.googlecode.com/svn/trunk/search.py) |
24+
| 3.14 | 79 | Iterative-Deepening-Search | [iterative\_deepening\_search](http://aima-python.googlecode.com/svn/trunk/search.py) |
25+
| 3.19 | 83 | Graph-Search | [graph\_search](http://aima-python.googlecode.com/svn/trunk/search.py) |
26+
| 4 | 95 | Best-First-Search | [best\_first\_graph\_search](http://aima-python.googlecode.com/svn/trunk/search.py) |
27+
| 4 | 97 | A`*`-Search | [astar\_search](http://aima-python.googlecode.com/svn/trunk/search.py) |
28+
| 4.5 | 102 | Recursive-Best-First-Search | [recursive\_best\_first\_search](http://aima-python.googlecode.com/svn/trunk/search.py) |
29+
| 4.11 | 112 | Hill-Climbing | [hill\_climbing](http://aima-python.googlecode.com/svn/trunk/search.py) |
30+
| 4.14 | 116 | Simulated-Annealing | [simulated\_annealing](http://aima-python.googlecode.com/svn/trunk/search.py) |
31+
| 4.17 | 119 | Genetic-Algorithm | [genetic\_algorithm](http://aima-python.googlecode.com/svn/trunk/search.py) |
32+
| 4.20 | 126 | Online-DFS-Agent | |
33+
| 4.23 | 128 | LRTA`*`-Agent | |
34+
| 5 | 137 | CSP | [CSP](http://aima-python.googlecode.com/svn/trunk/csp.py) |
35+
| 5.3 | 142 | Backtracking-Search | [backtracking\_search](http://aima-python.googlecode.com/svn/trunk/csp.py) |
36+
| 5.7 | 146 | AC-3 | [AC3](http://aima-python.googlecode.com/svn/trunk/csp.py) |
37+
| 5.8 | 151 | Min-Conflicts | [min\_conflicts](http://aima-python.googlecode.com/svn/trunk/csp.py) |
38+
| 6.3 | 166 | Minimax-Decision | [minimax\_decision](http://aima-python.googlecode.com/svn/trunk/games.py) |
39+
| 6.7 | 170 | Alpha-Beta-Search | [alphabeta\_search](http://aima-python.googlecode.com/svn/trunk/games.py) |
40+
| 7 | 195 | KB | [KB](http://aima-python.googlecode.com/svn/trunk/logic.py) |
41+
| 7.1 | 196 | KB-Agent | [KB\_Agent](http://aima-python.googlecode.com/svn/trunk/logic.py) |
42+
| 7.7 | 205 | Propositional Logic Sentence | [Expr](http://aima-python.googlecode.com/svn/trunk/logic.py) |
43+
| 7.10 | 209 | TT-Entails | [tt\_entials](http://aima-python.googlecode.com/svn/trunk/logic.py) |
44+
| 7 | 215 | Convert to CNF | [to\_cnf](http://aima-python.googlecode.com/svn/trunk/logic.py) |
45+
| 7.12 | 216 | PL-Resolution | [pl\_resolution](http://aima-python.googlecode.com/svn/trunk/logic.py) |
46+
| 7.14 | 219 | PL-FC-Entails? | [pl\_fc\_resolution](http://aima-python.googlecode.com/svn/trunk/logic.py) |
47+
| 7.16 | 222 | DPLL-Satisfiable? | [dpll\_satisfiable](http://aima-python.googlecode.com/svn/trunk/logic.py) |
48+
| 7.17 | 223 | WalkSAT | [WalkSAT](http://aima-python.googlecode.com/svn/trunk/logic.py) |
49+
| 7.19 | 226 | PL-Wumpus-Agent | [PLWumpusAgent](http://aima-python.googlecode.com/svn/trunk/logic.py) |
50+
| 9 | 273 | Subst | [subst](http://aima-python.googlecode.com/svn/trunk/logic.py) |
51+
| 9.1 | 278 | Unify | [unify](http://aima-python.googlecode.com/svn/trunk/logic.py) |
52+
| 9.3 | 282 | FOL-FC-Ask | [fol\_fc\_ask](http://aima-python.googlecode.com/svn/trunk/logic.py) |
53+
| 9.6 | 288 | FOL-BC-Ask | [fol\_bc\_ask](http://aima-python.googlecode.com/svn/trunk/logic.py) |
54+
| 9.14 | 307 | Otter | |
55+
| 11.2 | 380 | Airport-problem | |
56+
| 11.3 | 381 | Spare-Tire-Problem | |
57+
| 11.4 | 383 | Three-Block-Tower | |
58+
| 11 | 390 | Partial-Order-Planner | |
59+
| 11.11 | 396 | Cake-Problem | |
60+
| 11.13 | 399 | Graphplan | |
61+
| 11.15 | 403 | SATPlan | |
62+
| 12.1 | 418 | Job-Shop-Problem | |
63+
| 12.3 | 421 | Job-Shop-Problem-With-Resources | |
64+
| 12.6 | 424 | House-Building-Problem | |
65+
| 12.10 | 435 | And-Or-Graph-Search | |
66+
| 12.22 | 449 | Continuous-POP-Agent | |
67+
| 12.23 | 450 | Doubles-tennis | |
68+
| 13.1 | 466 | DT-Agent | [DTAgent](http://aima-python.googlecode.com/svn/trunk/probability.py) |
69+
| 13 | 469 | Discrete Probability Distribution | [DiscreteProbDist](http://aima-python.googlecode.com/svn/trunk/probability.py) |
70+
| 13.4 | 477 | Enumerate-Joint-Ask | |
71+
| 14.10 | 509 | Elimination-Ask | |
72+
| 14.12 | 512 | Prior-Sample | |
73+
| 14.13 | 513 | Rejection-Sampling | |
74+
| 14.14 | 515 | Likelihood-Weighting | |
75+
| 14.15 | 517 | MCMC-Ask | |
76+
| 15.4 | 546 | Forward-Backward | |
77+
| 15.6 | 552 | Fixed-Lag-Smoothing | |
78+
| 15.15 | 566 | Particle-Filtering | |
79+
| 16.8 | 603 | Information-Gathering-Agent | |
80+
| 17.4 | 621 | Value-Iteration | [value\_iteration](http://aima-python.googlecode.com/svn/trunk/mdp.py) |
81+
| 17.7 | 624 | Policy-Iteration | [policy\_iteration](http://aima-python.googlecode.com/svn/trunk/mdp.py) |
82+
| 18.5 | 658 | Decision-Tree-Learning | [DecisionTreeLearner](http://aima-python.googlecode.com/svn/trunk/learning.py) |
83+
| 18.10 | 667 | AdaBoost | |
84+
| 18.14 | 672 | Decision-List-Learning | |
85+
| 19.2 | 681 | Current-Best-Learning | |
86+
| 19.3 | 683 | Version-Space-Learning | |
87+
| 19.8 | 696 | Minimal-Consistent-Det | |
88+
| 19.12 | 702 | FOIL | |
89+
| 20.21 | 742 | Perceptron-Learning | |
90+
| 20.25 | 746 | Back-Prop-Learning | |
91+
| 21.2 | 768 | Passive-ADP-Agent | |
92+
| 21.4 | 769 | Passive-TD-Agent | |
93+
| 21.8 | 776 | Q-Learning-Agent | |
94+
| 22.2 | 796 | Naive-Communicating-Agent | |
95+
| 22.7 | 801 | Chart-Parse | [Chart](http://aima-python.googlecode.com/svn/trunk/nlp.py) |
96+
| 23.1 | 837 | Viterbi-Segmentation | [viterbi\_segment](http://aima-python.googlecode.com/svn/trunk/text.py) |
97+
| 24.21 | 892 | Align | |

ReadMe.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Introduction #
2+
3+
This file gives an overview of the Python code for the algorithms in
4+
the textbook _Artificial Intelligence: A Modern
5+
Approach_, also known as _[AIMA](http://aima.cs.berkeley.edu)_. The code is offered free for your use under the MIT License.
6+
As you may know, the textbook presents algorithms in
7+
pseudo-code format; as a supplement we provide this code.
8+
The intent is to implement all the algorithms in the book,
9+
but we are not done yet.
10+
11+
# Prerequisites #
12+
13+
The code is meant for Python 2.5 through 2.7.
14+
15+
# How to Browse the Code #
16+
17+
You can get some use out of the code here just by browsing, starting
18+
at the
19+
[root of the source tree](http://code.google.com/p/aima-python/source/browse/#svn%2Ftrunk) or by clicking on the links in the
20+
[index on the project home page](http://code.google.com/p/aima-python).
21+
The source code is in the **.py files; the**.txt files give examples of
22+
how to use the code.
23+
24+
# How to Install the Code #
25+
26+
If you like what you see, install the code using either one of these methods:
27+
28+
1. From a command shell on your computer, execute the `svn checkout` command given on the [source tab](http://code.google.com/p/aima-python/source) of the project. This assumes you have previously installed the version control system [Subversion](http://subversion.tigris.org/) (svn).
29+
1. Download and unzip the zip file listed as a "Featured download"on the right hand side of the [project home page](http://code.google.com/p/aima-python/). This is currently (Oct 2011) long out of date; we mean to make a new .zip when the svn checkout settles down.
30+
31+
You'll also need to install the data files from the [aima-data](http://code.google.com/p/aima-data) project. These are text files that are used by the tests in the aima-python project, and may be useful for yout own work.
32+
33+
You can put the code anywhere you want on your computer, but it should be in one
34+
directory (you might call it _aima_ but you are free to use whatever name you want) with _aima-python_ as a subdirectory that contains all the files from this project, and _data_ as a parallel subdirectory that contains all the files from the aima-data project.
35+
36+
# How to Test the Code #
37+
38+
First, you need to install Python (version 2.5 through 2.7; parts of the code may work in other versions, but don't expect it to). Python comes preinstalled on most versions of Linux and Mac OS. Versions are also available for Windows, Solaris, and other operating systems. If your system does not have Python installed, you can [download](http://python.org/download/) and install it for free.
39+
40+
In the _aima-python_ directory, execute the command
41+
42+
> `python doctests.py -v *.py`
43+
44+
The "-v" is optional; it means "verbose". Various output is printed, but if all goes well there should be no instances of the word "`Failure`", nor of a long line of "**".
45+
If you do use the "-v" option, the last line printed should be "Test passed."**
46+
47+
# How to Run the Code #
48+
49+
You're on your own -- experiment! Create a new python file, import the modules you need,
50+
and call the functions you want.
51+
52+
# Acknowledgements #
53+
54+
Many thanks for the bug reports, corrected code, and other support from Phil Ruggera, Peng Shao, Amit Patil, Ted Nienstedt, Jim Martin, Ben Catanzariti, and others.

0 commit comments

Comments
 (0)