Grokking AI Algorithms, Second Edition

you own this product
How AI solves complex problems
  • March 2026
  • ISBN 9781633434813
  • 592 pages
  • printed in black & white
print book available Mar 17, 2026
ePub + liveBook available Mar 17, 2026

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside
Understand the algorithms that underpin AI, from classic to cutting-edge.

Artificial intelligence algorithms are the backbone of search and optimization, deep learning, reinforcement learning, and, of course, generative AI. Grokking AI Algorithms, Second Edition introduces the most important AI algorithms using relatable illustrations, interesting examples, and thought-provoking exercises. Written in simple language and with lots of visual references and hands-on code examples, it helps you build a natural intuition into how intelligent systems learn, plan, and adapt. This second edition has been thoroughly revised, with new chapters on large language models, image generation, and more.

In Grokking AI Algorithms, Second Edition you will discover:

  • How to pick the right algorithm for each AI problem
  • Learn the fundamentals of search (the foundation of modern AI)
  • Building intelligent agents to solve puzzles
  • Finding solutions using the theory of evolution and genetic algorithms
  • Make predictions with neural networks
  • Understand how AI gets better with reinforcement learning
  • Building a LLM pipeline and image diffusion model from scratch

You know you can solve a problem with AI—but how? Which algorithm do you pick and how do you properly implement it? Grokking AI Algorithms, Second Edition makes it simple and easy to understand the most core and common AI approaches. You’ll learn how to understand problem types, map real-world tasks to those problems, and how to design and implement the right algorithm—all following clear visual examples, pseudocode, and learning-oriented examples.

about the technology

AI algorithms are the backbone of search and optimization problems, deep learning, reinforcement learning, and, of course, generative AI. But knowing which algorithm to use—and why—is often harder than writing the code itself. Grokking AI Algorithms, Second Edition illuminates the algorithms behind modern generative AI with clear explanations, step-by-step code examples, and beautifully simple illustrations.

about the book

Everything you’ll learn in this powerfully simple book is reinforced through engaging, end-to-end projects—from solving mazes with search algorithms to navigating a car through a crowded parking lot with reinforcement learning. Plus, this second edition has been thoroughly revised with fresh chapters exploring the core algorithms of LLMs and image generation models.

what's inside

  • Search algorithms and swarm optimization
  • Deep learning and neural networks
  • Training AI with reinforcement learning
  • Building a LLM pipeline for text generation

about the reader

Requires beginning to intermediate programming skills and high school level mathematics. No AI experience required.

about the author

Rishal Hurbans is an experienced technologist and serial entrepreneur specializing in AI engineering and human performance.

Clear writing and fun examples make the ideas stick in a way that feels effortless.

Luis Serrano, Author of Grokking Machine Learning

Builds the intuition needed to reason about the systems that will increasingly shape our world.

Nathan Lands, Lore

Learn a robust conceptual framework to innovate with AI systems.

Ganapathi Pulipaka, DeepSingularity LLC

Get grounded, actionable understanding—exactly what the industry needs.

Kenneth Byrne, RealisLabs

A pedagogically strong introduction to core AI topics—valuable for both students and practitioners entering the field.

Rodolfo Allendes, University of Osaka
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Grokking AI Algorithms, Second Edition ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Grokking AI Algorithms, Second Edition ebook for free