New
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
A practical, project-driven introduction to machine learning and deep learning with Python
Pages
390
Published
2020
A visual, intuitive introduction to core AI algorithms for developers and curious minds
Understand how AI algorithms actually work — from search and optimization to neural networks — so you can apply them with confidence.
Grokking Artificial Intelligence Algorithms breaks down the core techniques behind modern AI using clear diagrams, worked examples, and plain language. Rishal Hurbans walks you through search, optimization, evolutionary algorithms, swarm intelligence, and neural networks without burying you in theory. Each concept is grounded in practical scenarios that make the mechanics visible. If you want to genuinely understand AI rather than just use it as a black box, this is your starting point.
Most introductions to AI either drown you in mathematics or skip the fundamentals entirely in favour of library calls. Grokking Artificial Intelligence Algorithms takes a different path. Rishal Hurbans explains the ideas that power AI systems — how they search, learn, optimise, and adapt — using consistent visual representations and concrete examples that make abstract concepts stick.
The book covers a broad map of AI: uninformed and informed search, heuristics, evolutionary algorithms, genetic algorithms, swarm intelligence, neural networks, and reinforcement learning. You work through each family of algorithms at the conceptual level first, then see how the pieces fit together. By the time you finish, terms like "fitness function", "backpropagation", or "pheromone trail" are tools you understand, not jargon you look up.
The approach is deliberately visual. Nearly every algorithm is illustrated with step-by-step diagrams showing state changes, decision points, and data flow. This matters: AI algorithms often resist understanding when presented as equations alone. Seeing the algorithm move through a problem is what turns reading into comprehension.
Practical Python-style pseudocode and real-world problem framings appear throughout, bridging the gap between concept and implementation. You finish each chapter able to describe what a given algorithm does, why you would choose it, and what its trade-offs are against alternatives.
This book will not teach you to tune a production TensorFlow model. What it will do is give you the conceptual foundation that makes every tutorial, paper, or framework you touch afterward make sense. That foundation is worth building before anything else.
Establishes a working vocabulary for AI and frames the landscape of algorithm families covered in the book. You build mental models for how problems are represented before any algorithm is introduced.
Covers uninformed search strategies including breadth-first and depth-first search. You trace their execution on graph problems and compare how they explore the solution space.
Introduces heuristic search and the A* algorithm. You learn how heuristic functions guide search toward goals faster and see where they can mislead if poorly designed.
Explains the biological metaphors behind evolutionary computation and introduces the general evolutionary algorithm loop. You see how populations of candidate solutions are evaluated and selected.
Builds on evolutionary concepts to show how genetic algorithms encode solutions, apply crossover, and introduce mutation. You work through a concrete optimisation problem from encoding to result.
Covers ant colony optimisation and particle swarm optimisation. You trace how distributed, agent-based behaviour produces globally intelligent solutions to routing and optimisation problems.
Constructs a neural network from the neuron level up, explaining weighted inputs, activation functions, and the forward pass. You follow a training cycle and see how errors propagate backward through the network.
Introduces agents, environments, rewards, and policies. You trace a Q-learning example and understand how an agent builds knowledge through repeated interaction rather than labelled data.
Synthesises the book by comparing algorithm families across problem types, constraints, and cost profiles. You leave with a decision framework for choosing the right approach before writing a line of code.
No. The book deliberately minimises formal mathematics and prioritises visual and conceptual explanations. Basic algebra is sufficient; calculus is not required.
The book uses Python-style pseudocode throughout to illustrate algorithms. It is oriented toward conceptual understanding rather than being a hands-on coding tutorial, so full project code is not the primary deliverable.
You should be comfortable reading simple code and understand basic data structures such as lists and trees. Prior programming experience helps significantly, though deep expertise is not required.
It covers less breadth and depth than a university textbook, but it is far more readable and visual. It works well as a first pass before or alongside a more rigorous text.
No. The concepts and pseudocode are language-agnostic, so the material applies regardless of whether you work in Python, Java, or another language.
The foundational algorithms the book covers — search, evolutionary methods, neural networks, reinforcement learning — are stable and have not been superseded. The conceptual grounding remains as valid today as at publication.
New
A practical, project-driven introduction to machine learning and deep learning with Python
New
An Iterative Process for Production-Ready Machine Learning Applications
by Chip Huyen
New
A rigorous foundation in Bayesian reasoning, probabilistic models, and modern machine learning methods
New
The definitive textbook on intelligent systems, from foundational search and logic to modern machine learning and probabilistic reasoning
by Peter Norvig, Stuart Russell