The most recommended books on algorithms

Who picked these books? Meet our 37 experts.

37 authors created a book list connected to algorithms, and here are their favorite algorithm books.
Shepherd is reader supported. When you buy books, we may earn an affiliate commission.

What type of algorithm book?

Loading...
Loading...

Book cover of The Art of Computer Programming

Federico Kereki Author Of Mastering JavaScript Functional Programming: Write clean, robust, and maintainable web and server code using functional JavaScript and TypeScript

From my list on the theory and practice of computer programming.

Why am I passionate about this?

I have been working with computers for decades now – having started with programmable handheld calculators and working my way up and down through mainframes, mini- and micro-computers. I always thought there is an art to writing software, and that good software can be read and admired. Maintainability, readability, and testability are some core needs for software, and after going through many programming paradigms, I feel that functional programming (FP) is the way to go – and several modern web frameworks agree. JavaScript (and now, TypeScript) are essential to web development, and I wanted to show how FP could be successfully used with those languages, and thus my book.

Federico's book list on the theory and practice of computer programming

Federico Kereki Why did Federico love this book?

This multi-volume book is, for me, a masterpiece that goes far beyond just coding or algorithms or data structures, and serves as a profound exploration of algorithmic thinking and computer science's theoretical foundations, going deeply into the performance of algorithms and the behavior of data structures.

Knuth's meticulous approach, coupled with his clear and engaging prose (with occasional touches of humor) clearly explains complex concepts, and shows a deep understanding of the artistry inherent in solving computational problems.

Bill Gates said that anybody who went through all its volumes would get a job at his company, and I surely agree! I would recommend this book both for novice or seasoned programmers, because you will always find invaluable insights in it.

By Donald Knuth,

Why should I read it?

1 author picked The Art of Computer Programming as one of their favorite books, and they share why you should read it.

What is this book about?

Check out the boxed set that brings together Volumes 1 - 4B in one elegant case.

The Art of Computer Programming, Volumes 1-4B Boxed Set

ISBN: 9780137935109

Art of Computer Programming, Volume 1, Fascicle 1, The: MMIX -- A RISC Computer for the New Millennium

This multivolume work on the analysis of algorithms has long been recognized as the definitive description of classical computer science. The three complete volumes published to date already comprise a unique and invaluable resource in programming theory and practice. Countless readers have spoken about the profound personal influence of Knuth's writings. Scientists have marveled at…


Book cover of Online TV

Mareike Jenner Author Of Netflix and the Re-invention of Television

From my list on contemporary television.

Why am I passionate about this?

I like understanding television as culturally situated. Television is constructed along a number of sites: cultural, institutional, ideological, historical, or via the different ways audiences understand it. Interrogating television and what it does as a medium was historically relevant because it was a mass medium. But how can we evaluate the medium in times of highly fragmented audiences? Because of this, exploring Netflix as a new form of ‘television’ has become so important to me. The authors all try to get to terms with how television has changed over its short existence. This helps us understand the medium better, as well as our current moment.

Mareike's book list on contemporary television

Mareike Jenner Why did Mareike love this book?

This book came out a few months after the first edition of my book, and I remember being really frustrated because it added so many important ideas.

I still find its interrogation of interfaces and how they interact, open as different tabs, intriguing. Johnson focusses on how online TV functions within an internet ecosystem. This leads to interesting ideas about what TV distributed via the internet means.

By Catherine Johnson,

Why should I read it?

1 author picked Online TV as one of their favorite books, and they share why you should read it.

What is this book about?

With growth in access to high-speed broadband and 4G, and increased ownership of smartphones, tablets and internet-connected television sets, the internet has simultaneously begun to compete with and transform television. Online TV argues that these changes create the conditions for an emergent internet era that challenges the language and concepts that we have to talk about television as a medium.

In a wide-ranging analysis, Catherine Johnson sets out a series of conceptual frameworks designed to provide a clearer language with which to analyse the changes to television in the internet era and to bring into focus the power dynamics of…


Book cover of The Golden Ticket: P, NP, and the Search for the Impossible

John MacCormick Author Of Nine Algorithms That Changed the Future: The Ingenious Ideas That Drive Today's Computers

From my list on algorithms for people who don’t know algorithms.

Why am I passionate about this?

Once upon a time, I was a computer science researcher, working in the research labs of companies like Microsoft and Hewlett-Packard. Later I started teaching computer science to college students and writing books about algorithms. I love computers and I love algorithms. Most of all, I love explaining algorithms to other people. In fact, one of my most important missions in life is to advance the public understanding of computer science and algorithms. So if you read any of the books on my list, you’ll bring me one step closer to achieving my mission. Go ahead, read one now!

John's book list on algorithms for people who don’t know algorithms

John MacCormick Why did John love this book?

The most important unanswered question in computer science has a huge public relations problem. Back in the 1970s, this question became known as “P=NP?”—and who could write an exciting book about that? Luckily for us, Lance Fortnow can. As one of the world’s foremost experts on P-vs-NP, he takes us on a wild and truly accessible ride through the most important question about computing. I’ve seen many attempts at making “P=NP?” accessible/understandable/intriguing for non-experts. But Fortnow nails it like nobody else, reformulating P-vs-NP as a search for one of the golden tickets in Charlie and the Chocolate Factory. (Which is another one of my favorite books, even though it’s not going to make it onto this list about algorithms.)

By Lance Fortnow,

Why should I read it?

1 author picked The Golden Ticket as one of their favorite books, and they share why you should read it.

What is this book about?

The P-NP problem is the most important open problem in computer science, if not all of mathematics. Simply stated, it asks whether every problem whose solution can be quickly checked by computer can also be quickly solved by computer. The Golden Ticket provides a nontechnical introduction to P-NP, its rich history, and its algorithmic implications for everything we do with computers and beyond. Lance Fortnow traces the history and development of P-NP, giving examples from a variety of disciplines, including economics, physics, and biology. He explores problems that capture the full difficulty of the P-NP dilemma, from discovering the shortest…


Book cover of Algorithms Illuminated (Part 1): The Basics

Daniel Zingaro Author Of Algorithmic Thinking: A Problem-Based Introduction

From my list on for actually learning how to design algorithms.

Why am I passionate about this?

I love pulling back the curtain on how computers work. I want to go from thinking "that's magic" to "that's unbelievably clever but now I understand how it works." Each time I am able to do this feels like a hard-won but therefore meaningful step toward understanding. I want others to experience this empowering shift. I have a PhD in computer science education, and  I want to know what helps people learn. More importantly, I want to know how we can use such discoveries to write more effective books. The books I appreciate most are those that demonstrate not only mastery of the subject matter but also mastery of teaching.

Daniel's book list on for actually learning how to design algorithms

Daniel Zingaro Why did Daniel love this book?

How do we know whether an algorithm is correct? While intuition is helpful, for tricky algorithms nothing beats the formal proof. But I don’t want a proof for proof’s sake: I want it to deepen my understanding of the algorithm. The proofs in this book series are the best I’ve seen: they are self-contained, described step by step, and serve to sharpen your understanding of what the algorithm is really doing. Couple that fact with the self-check questions, exercises with solutions, and associated video lectures, and what we have here is a wonderful resource for the motivated algorithms learner.

By Tim Roughgarden,

Why should I read it?

1 author picked Algorithms Illuminated (Part 1) as one of their favorite books, and they share why you should read it.

What is this book about?

Algorithms are the heart and soul of computer science. Their applications range from network routing and computational genomics to public-key cryptography and database system implementation. Studying algorithms can make you a better programmer, a clearer thinker, and a master of technical interviews. Algorithms Illuminated is an accessible introduction to the subject---a transcript of what an expert algorithms tutor would say over a series of one-on-one lessons. The exposition is rigorous but emphasizes the big picture and conceptual understanding over low-level implementation and mathematical details.
Part 1 of the book series covers asymptotic analysis and big-O notation, divide-and-conquer algorithms and the…


Book cover of The Science of Programming

Federico Kereki Author Of Mastering JavaScript Functional Programming: Write clean, robust, and maintainable web and server code using functional JavaScript and TypeScript

From my list on the theory and practice of computer programming.

Why am I passionate about this?

I have been working with computers for decades now – having started with programmable handheld calculators and working my way up and down through mainframes, mini- and micro-computers. I always thought there is an art to writing software, and that good software can be read and admired. Maintainability, readability, and testability are some core needs for software, and after going through many programming paradigms, I feel that functional programming (FP) is the way to go – and several modern web frameworks agree. JavaScript (and now, TypeScript) are essential to web development, and I wanted to show how FP could be successfully used with those languages, and thus my book.

Federico's book list on the theory and practice of computer programming

Federico Kereki Why did Federico love this book?

This book is essential in that it follows a systematic and scientific approach to software development, advocating for clarity in expressing algorithms, providing a rigorous framework for designing and reasoning about programs, and, fundamentally, always focusing on formal methods and mathematical techniques to ensure correctness and efficiency in programming code.

Most importantly, the book doesn’t just show you how to prove programs correct, but also teaches how to arrive from a definition to an efficient and correct solution, so I would recommend this to every developer.


By David Gries,

Why should I read it?

1 author picked The Science of Programming as one of their favorite books, and they share why you should read it.

What is this book about?

Describes basic programming principles and their step-by-
step applications.Numerous examples are included.


Book cover of Algorithmic Puzzles

Pramod Ganapathi Author Of Mathematical and Algorithmic Puzzles

From my list on mathematical and algorithmic puzzles.

Why am I passionate about this?

I am a Research Assistant Professor of Computer Science at Stony Brook University learning/teaching/researching mathematics/algorithms/puzzles. In these fields, I have published a book, published 15+ papers in conferences/journals, been granted a US patent, won two Outstanding Paper Awards, taught 10+ courses in 25+ offerings, and have supervised 90+ master's/bachelor students. I am a puzzle addict involved in this field for 25 years and puzzles are my religion/God. Puzzles are the main form of supreme energy in this universe that can consistently give me infinite peace.

Pramod's book list on mathematical and algorithmic puzzles

Pramod Ganapathi Why did Pramod love this book?

Anany Levitin introduced me to algorithmics – my second love (my first love is mathematics), through his legendary algorithmics textbook. He was one of my superheroes in my young adult life and he got me addicted to algorithms. His book is my favorite because it is beautifully organized based on design techniques, well-written, and uses nice puzzles to teach algorithms.

Levitin went much deeper and wrote this book on algorithmic puzzles. This book is the first mainstream book in the puzzle literature that taught beautiful algorithmic puzzles via various algorithm technique techniques. Levitin claimed several mathematical puzzles as algorithmic focusing on aspects of the solutions that are automatable.

Elegant puzzles (with extensive references) in this book that I have enjoyed include missionaries and cannibals, bridge crossing, circle of lights, MU puzzle, turning on a light bulb, chameleons, poisoned wine, game of life, twelve coins, fifteen puzzle, hats with numbers, and…

By Anany Levitin, Maria Levitin,

Why should I read it?

1 author picked Algorithmic Puzzles as one of their favorite books, and they share why you should read it.

What is this book about?

Algorithmic puzzles are puzzles involving well-defined procedures for solving problems. This book will provide an enjoyable and accessible introduction to algorithmic puzzles that will develop the reader's algorithmic thinking.

The first part of this book is a tutorial on algorithm design strategies and analysis techniques. Algorithm design strategies - exhaustive search, backtracking, divide-and-conquer and a few others - are general approaches to designing step-by-step instructions for solving problems. Analysis techniques are methods for investigating such procedures to answer questions about the ultimate result of the procedure or how many steps are executed before the procedure stops. The discussion is an…


Book cover of Is the Algorithm Plotting Against Us?: A Layperson's Guide to the Concepts, Math, and Pitfalls of AI

Michael Anthony Lewis Author Of Social Workers Count: Numbers and Social Issues

From my list on quant geeks.

Why am I passionate about this?

I've had a long-time interest in two things: mathematics and social issues. This is why I got degrees in social work (Masters) and sociology (PhD) and eventually focused on the quantitative aspects of these two areas. Social Workers Count gave me the chance to marry these two interests by showing the role mathematics can play in illuminating a number of pressing social issues.

Michael's book list on quant geeks

Michael Anthony Lewis Why did Michael love this book?

As I write these lines, artificial intelligence (AI) is getting a lot of attention.

This is largely due to ChatGpt recently bursting onto the scene. But even before ChatGpt began making its mark, AI was often in the news. Some have expressed worry that it will take our jobs, others that it will reinforce systemic oppression by making racially or otherwise discriminatory decisions, and some have even voiced concerns that one day a superintelligent AI might pose an existential threat to humanity.

In the midst of all this, what might get lost is what AI is, what it's capable of doing, and what its limitations are. Wenger's book is intended to address all of these questions. It manages to do so in a way which goes into some of the mathematics of AI systems and yet remain accessible to a lay audience.

After laying out the technical aspects of AI,…

By Kenneth Wenger,

Why should I read it?

1 author picked Is the Algorithm Plotting Against Us? as one of their favorite books, and they share why you should read it.

What is this book about?

Artificial intelligence is everywhere―it’s in our houses and phones and cars. AI makes decisions about what we should buy, watch, and read, and it won’t be long before AI’s in our hospitals, combing through our records. Maybe soon it will even be deciding who’s innocent, and who goes to jail . . . But most of us don’t understand how AI works. We hardly know what it is. In "Is the Algorithm Plotting Against Us?", AI expert Kenneth Wenger deftly explains the complexity at AI’s heart, demonstrating its potential and exposing its shortfalls. Wenger empowers readers to answer the question―What…


Book cover of Machine Learning For Absolute Beginners: A Plain English Introduction

Yuxi (Hayden) Liu Author Of Python Machine Learning By Example: Build intelligent systems using Python, TensorFlow 2, PyTorch, and scikit-learn

From my list on machine learning for beginners.

Why am I passionate about this?

I have been a machine learning engineer applying my ML expertise in computational advertising, and search domain. I am an author of 8 machine learning books. My first book was ranked the #1 bestseller in its category on Amazon in 2017 and 2018 and was translated into many languages. I am also a ML education enthusiast and used to teach ML courses in Toronto, Canada.  

Yuxi's book list on machine learning for beginners

Yuxi (Hayden) Liu Why did Yuxi love this book?

This could be the first stop of your brand new machine learning journey. I personally like how the technical concept is translated into plain English – each chapter starts with a high-level overview of a ML algorithm or methodology, concise and clear, followed by lots of visual examples and real world scenarios. I can guarantee you won’t get lost halfway. The book focuses on getting you introduced to ML with minimal math. But if you want to grasp some more of math, the next book I recommend is waiting for you. 

By Oliver Theobald,

Why should I read it?

1 author picked Machine Learning For Absolute Beginners as one of their favorite books, and they share why you should read it.

What is this book about?

NOTICE: To buy the newest edition of this book (2021), please search "Machine Learning Absolute Beginners Third Edition" on Amazon. The product page you are currently viewing is for the 2nd Edition (2017) of this book.

Featured by Tableau as the first of "7 Books About Machine Learning for Beginners."

Ready to spin up a virtual GPU instance and smash through petabytes of data? Want to add 'Machine Learning' to your LinkedIn profile?

Well, hold on there...

Before you embark on your epic journey, there are some high-level theory and statistical principles to weave through first.
But rather than spend…


Book cover of Smalltalk Best Practice Patterns

Philipp Fehre Author Of JavaScript Domain-Driven Design

From my list on learning from programming classics.

Why am I passionate about this?

Computers have fascinated me since my childhood, having fond memories of my dad's ZX81, but even so I played around I was never truly captured by the programming until I recognized it as a way of writing rather than raw engineering. Through my studies of media sciences I found my fascination with how language can shape perception, and through my work in developer advocacy, I found how communities are shaped as well. Now I am fascinated with how different programming languages can shape thinking, having had the opportunity to solve problems at large companies in nonmainstream languages.

Philipp's book list on learning from programming classics

Philipp Fehre Why did Philipp love this book?

Smalltalk is not as common or popular as it once was, but the influence its design had on programming is hard to overstate.

Reading this book has changed how I think about object orientation, and how I design systems, learning the patterns of Smalltalk makes it clear what object oriented design is really intended to achieve.

By Kent Beck,

Why should I read it?

2 authors picked Smalltalk Best Practice Patterns as one of their favorite books, and they share why you should read it.

What is this book about?

This classic book is the definitive real-world style guide for better Smalltalk programming. This author presents a set of patterns that organize all the informal experience successful Smalltalk programmers have learned the hard way. When programmers understand these patterns, they can write much more effective code. The concept of Smalltalk patterns is introduced, and the book explains why they work. Next, the book introduces proven patterns for working with methods, messages, state, collections, classes and formatting. Finally, the book walks through a development example utilizing patterns. For programmers, project managers, teachers and students -- both new and experienced. This book…


Book cover of Mathematical Puzzles

Pramod Ganapathi Author Of Mathematical and Algorithmic Puzzles

From my list on mathematical and algorithmic puzzles.

Why am I passionate about this?

I am a Research Assistant Professor of Computer Science at Stony Brook University learning/teaching/researching mathematics/algorithms/puzzles. In these fields, I have published a book, published 15+ papers in conferences/journals, been granted a US patent, won two Outstanding Paper Awards, taught 10+ courses in 25+ offerings, and have supervised 90+ master's/bachelor students. I am a puzzle addict involved in this field for 25 years and puzzles are my religion/God. Puzzles are the main form of supreme energy in this universe that can consistently give me infinite peace.

Pramod's book list on mathematical and algorithmic puzzles

Pramod Ganapathi Why did Pramod love this book?

Peter Winkler is famous for his collections of counterintuitive puzzles. Thousands of people, including me, have spent many sleepless nights trying to understand the mysteries in these puzzles, for which, I am forever grateful.

Haunting puzzles in the book include hats and infinity, all right or all wrong, comparing numbers version 1/2, wild guess, laser gun, precarious picture, names in boxes, sleeping beauty, and dot-town exodus.

Most puzzle books exclude counterintuitive puzzles for unknown reasons. So, many people incorrectly assume that counterintuitive puzzles are majorly found in paradoxes. Peter Winkler in this book shows that counterintuition can come from either puzzles or solutions or both, and they need not come from paradoxes alone.

Finally, reading Winkler's statements is an absolute delight due to its enjoyable and entertaining nature.

By Peter Winkler,

Why should I read it?

1 author picked Mathematical Puzzles as one of their favorite books, and they share why you should read it.

What is this book about?

Research in mathematics is much more than solving puzzles, but most people will agree that solving puzzles is not just fun: it helps focus the mind and increases one's armory of techniques for doing mathematics. Mathematical Puzzles makes this connection explicit by isolating important mathematical methods, then using them to solve puzzles and prove a theorem.

Features

A collection of the world's best mathematical puzzles

Each chapter features a technique for solving mathematical puzzles, examples, and finally a genuine theorem of mathematics that features that technique in its proof

Puzzles that are entertaining, mystifying, paradoxical, and satisfying; they are not…