Grokking Algorithms

Grokking Algorithms An Illustrated Guide for Programmers and Other Curious People

Summary Grokking Algorithms is a fully illustrated, friendly guide that teaches you how to apply common algorithms to the practical problems you face every day as a programmer. You'll start with sorting and searching and, as you build up your skills in thinking algorithmically, you'll tackle more complex concerns such as data compression and artificial intelligence. Each carefully presented example includes helpful diagrams and fully annotated code samples in Python. Learning about algorithms doesn't have to be boring! Get a sneak peek at the fun, illustrated, and friendly examples you'll find in Grokking Algorithms on Manning Publications' YouTube channel. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology An algorithm is nothing more than a step-by-step procedure for solving a problem. The algorithms you'll use most often as a programmer have already been discovered, tested, and proven. If you want to understand them but refuse to slog through dense multipage proofs, this is the book for you. This fully illustrated and engaging guide makes it easy to learn how to use the most important algorithms effectively in your own programs. About the Book Grokking Algorithms is a friendly take on this core computer science topic. In it, you'll learn how to apply common algorithms to the practical programming problems you face every day. You'll start with tasks like sorting and searching. As you build up your skills, you'll tackle more complex problems like data compression and artificial intelligence. Each carefully presented example includes helpful diagrams and fully annotated code samples in Python. By the end of this book, you will have mastered widely applicable algorithms as well as how and when to use them. What's Inside Covers search, sort, and graph algorithms Over 400 pictures with detailed walkthroughs Performance trade-offs between algorithms Python-based code samples About the Reader This easy-to-read, picture-heavy introduction is suitable for self-taught programmers, engineers, or anyone who wants to brush up on algorithms. About the Author Aditya Bhargava is a Software Engineer with a dual background in Computer Science and Fine Arts. He blogs on programming at adit.io. Table of Contents Introduction to algorithms Selection sort Recursion Quicksort Hash tables Breadth-first search Dijkstra's algorithm Greedy algorithms Dynamic programming K-nearest neighbors
Sign up to use

Reviews

Photo of Christian Bager Bach Houmann
Christian Bager Bach Houmann@cbbh
4 stars
Jul 20, 2024

Great explanations. Good depth. Somewhat narrow in scope, but that’s perfect for this kind of book. If you’ve studied Computer Science, this is a fast read - even with doing the exercises & implementing the algorithms.

Photo of Omnya Ahmed
Omnya Ahmed@omnyaahmed
5 stars
Sep 1, 2022

Great introduction, highly recommended for beginners. Interesting approach to a very interesting subject.

Photo of Kunal Kundu
Kunal Kundu@kunal
4 stars
Mar 26, 2022

This book is great if you've never taken a data structures and algorithms (DSA) course before. It covers a significant amount of topics and gives a good overview before you go on to read something slightly more advanced or take a course on the same topic. Wouldn't recommend it if you're clear with DSA basics though.

Photo of Eihab Khan
Eihab Khan@eihab
5 stars
Aug 12, 2021

I think this book is the best book about Data Structures and Algorithms, wether you're an expert or a beginner, you'll enjoy reading this book. If you want to learn Data Structures & Algorithms without getting overwhelmed, READ THIS BOOK!

Photo of Victoria
Victoria@vicaleksa
5 stars
Feb 28, 2025
Photo of Roma Stolbov
Roma Stolbov@romastolbov
5 stars
Apr 30, 2023
Photo of Beka Demuradze
Beka Demuradze@hedgehog404
4 stars
Mar 17, 2024
Photo of Ika
Ika@ddramone
5 stars
Mar 9, 2024
Photo of Asim Gasimzade
Asim Gasimzade@asim
5 stars
Jan 2, 2024
Photo of Nahuel Scotti
Nahuel Scotti@singuerinc
1 star
Oct 23, 2023
Photo of elisa
elisa@vrzi
5 stars
Oct 2, 2023
Photo of Alex
Alex@sharkerator
5 stars
May 28, 2023
Photo of Erik Horton
Erik Horton@erikhorton
4 stars
Dec 20, 2022
Photo of Ahmed Elsayed
Ahmed Elsayed @a7medelsayedzz
5 stars
Sep 6, 2022
Photo of Menna mostafa
Menna mostafa@mennamostafa
5 stars
Aug 31, 2022
Photo of Mundy Otto Reimer
Mundy Otto Reimer@mundyreimer
4 stars
Aug 16, 2022
Photo of Recep Karabicak
Recep Karabicak@irecep
4 stars
Feb 17, 2022
Photo of Rob Erekson
Rob Erekson@roberekson
5 stars
Jan 1, 2022
Photo of Rohit Dhatrak
Rohit Dhatrak@rohitdhatrak
4 stars
Dec 18, 2021
Photo of Brezo
Brezo@brezo
5 stars
Sep 30, 2021
Photo of Soner Eker
Soner Eker@soner
5 stars
Aug 14, 2021