Skip to content


Repository files navigation

Grokking Artificial Intelligence Algorithms

Get Grokking Artificial Intelligence Algorithms at Manning Publications

Rather Learn by exploring the code notebook in your browser? Click here:

Open the interactive code notebook


  • Python 3.7.0+
  • Pip 3


Make sure that you have Python 3.7.0+ installed. Download Python here. pip3 should be installed with Python 3.7.0+ on macOS and Windows. You may need to install pip3 seperately if you're using Linux. Use the sudo apt-get install python3-pip command if you're using Ubuntu or Debian Linux. Use the sudo yum install python3-pip command if you're using Fedora Linux.

Clone this repository.

Navigate to the directory that contains the repository using terminal/console/command line.

Run this command to install the dependency libraries required.

pip3 install -r requirements.txt

Navigate to the directory containing the example that you want to run, and run this command.

python3 <>


This is the official supporting code for the book, Grokking Artificial Intelligence Algorithms, published by Manning Publications, authored by Rishal Hurbans.

History of AI

The example implementations provided will make more sense if you've read the book, however, it might be somewhat useful to you otherwise.

The purpose of this repository is to act as a practical reference for examples of how the algorithms mentioned in the book can be implemented. This repository should not be consulted as the book is read page-by-page, but rather, when you're attempting to implement an algorithm or gain a more technical understanding from a programming perspective.