Skip to content
Back to books
Recommended

Grokking Algorithms

An Illustrated Guide for Programmers and Other Curious People

Aditya Y. Bhargava

256 pages

  • Algorithms
  • Computer science
  • Python

About the book

Aditya Bhargava explains algorithms through drawings and worked examples. A search problem becomes a sequence you can follow, with Python code connecting each explanation to an implementation. The first edition builds up from familiar tasks to techniques for handling more involved problems.

What it covers

The opening chapters introduce binary search and Big O notation, then move through selection sort, recursion, and quicksort. Hash tables show how a data structure changes the way a program stores and finds information.

Later chapters cover breadth-first search, Dijkstra's algorithm, greedy algorithms, dynamic programming, and nearest-neighbor classification. The emphasis stays on understanding the steps, recognizing where a technique fits, and comparing its performance with other approaches.

Bhargava's illustrations do much of the teaching. His examples connect abstract ideas to recognizable problems, such as finding a bus route with fewer transfers. That gives readers something concrete to reason about before following the code.

Who it is for

This is an introductory book for people who already enjoy programming and want an approachable route into algorithms. Bhargava specifically includes bootcamp graduates and students who find conventional textbooks difficult. Developers revisiting the subject can also use its visual explanations to refresh the basics.

Read the publisher's description and the author's introduction.

My notes

I’ll add my notes here soon.