Julia code for the book Artificial Intelligence: A Modern Approach.
The code runs on Julia 1.10 (LTS) and later, and the CI runs the tests on the LTS and on the latest release. The package aima reads the datasets of the aima-data submodule when it is loaded, so it is installed from a clone that includes the submodule (Pkg.add(url=...) does not work, since Pkg cannot check out a repository with a submodule):
git clone --recurse-submodules https://github.com/aimacode/aima-julia.git
julia -e 'using Pkg; Pkg.develop(path="aima-julia")'
julia -e 'using aima'
In an existing clone, git submodule update --init fetches the datasets. The tests read the datasets from test/aima-data, a link to the submodule; from the root of the clone, Pkg.test runs them all and julia --project test/runtests.jl search runs a single file:
ln -s ../aima-data test/aima-data
julia --project -e 'using Pkg; Pkg.test()'
The Jupyter (IJulia) notebooks kl.ipynb, nlp_apps.ipynb, planning.ipynb, probability.ipynb and text.ipynb explain and demonstrate the code; each starts with include("src/aima.jl") and runs from the root of the repository, also online on Binder.
The table has one row per algorithm, in the order of the book, and the same rows in all the aimacode repositories. The column Figure gives the figure of the 4th edition or, followed by "(3e)", the one of the 3rd edition when the pseudocode of the algorithm is only there; § gives the section of the 4th edition of an algorithm described in the text, and — marks an algorithm that is not in the book. The names link to the pseudocode in aima-pseudocode.
This table lists the exercises of aima-exercises whose answer a program can check, with the same tests in all the repositories; the chapters are those of the 3rd edition, as on that site.
See CONTRIBUTING.md.
In order of the lines they wrote in the current files: Donato Meoli, Mikhail Jin, Utkarsh Patil; see also all the contributors.
aima-python · aima-java · aima-csharp · aima-scala · aima-lisp · aima-javascript · aima-pseudocode · aima-exercises · aima-data · aima-glossary