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.
When you buy books, we may earn a commission that helps keep our lights on (or join the rebellion as a member).

What type of algorithm book?

Loading...
Loading...

Book cover of How The Internet Really Works: An Illustrated Guide to Protocols, Privacy, Censorship, and Governance

Carol M. Glen Author Of Controlling Cyberspace: The Politics of Internet Governance and Regulation

From my list on understanding the internet and how it is governed.

Why am I passionate about this?

I’m a professor of political science at Valdosta State University in Georgia, USA. I have long had an interest in new technology and its implications for international relations and society. I have taught classes on international relations, global public policy, and international institutions. I have also published in these areas. Since the internet has been a disruptive force in both the national and international environments, I believe, as a political scientist, that it is vital to understand its effects on existing power relationships. I hope you find the books on my list enlightening.    

Carol's book list on understanding the internet and how it is governed

Carol M. Glen Why did Carol love this book?

I love this book because it describes how the internet works, as well as the fundamentals of its governance, in cartoon form.

Catnip the Cat helps readers understand complex topics in a non-technical way. What’s not to love about that? While this might sound frivolous, the authors have very solid credentials. I recommend this book because it is both highly informative and fun!

By Article 19,

Why should I read it?

1 author picked How The Internet Really Works as one of their favorite books, and they share why you should read it.

What is this book about?

A Cat's Guide to Internet Freedom is a comic book-like introduction to the technical side of the internet, narrated by a cute cat character. The book contains playful illustrations and concise explanations detailing transport protocols and basic internet infrastructure as well as larger technological concepts like security and privacy, algorithms, and Internet infrastructure governance. Readers will gain enough technical understanding to become knowledgeable about digital privacy concerns that affect every internet user.


Book cover of The Art of Computer Programming, Volume 4, Fascicle 1, The: Bitwise Tricks & Techniques; Binary Decision Diagrams

David B. Black Author Of Wartime Software

From my list on teaching and inspiring the best programmers.

Why am I passionate about this?

I started programming in high school and wrote software in many domains for 30 years, from the early ARPA-net to massive credit card software. I wrote a FORTRAN compiler with one assistant in a year. I got hassled to do proper project management. Nightmare. It was all about inflated expectations instead of moving fast and winning. Then in 25 years of venture capital investing, I learned from many young companies how the little startups built quickly and well things that giants like Google literally could not get done. This book and my others spell out what I learned from the little guys who beat the giants.

David's book list on teaching and inspiring the best programmers

David B. Black Why did David love this book?

This is the definitive book series on algorithms and the core of computer programming.

Unlike most such books, Knuth is a real programmer, deep into the details of the craft, to the point of creating his own assembler language and typesetting generation system. It’s partly the substance of the algorithms and their analysis, but even more is the way he models a way of thinking about and solving complexity that makes this a must-read series.

By Donald Knuth,

Why should I read it?

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

What is this book about?

Finally, after a wait of more than thirty-five years, the first part of Volume 4 is at last ready for publication. Check out the boxed set that brings together Volumes 1 - 4A in one elegant case, and offers the purchaser a $50 discount off the price of buying the four volumes individually.



The Art of Computer Programming, Volumes 1-4A Boxed Set, 3/e

ISBN: 0321751043









Art of Computer Programming, Volume 4, Fascicle 1, The: Bitwise Tricks & Techniques; Binary Decision Diagrams: Bitwise Tricks & Techniques; Binary Decision Diagrams



This multivolume work on the analysis of algorithms has long been recognized…


Book cover of Data Structures and Algorithms

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?

This is the book that started it all for me… and I think it holds up just fine today. I see value in confronting the old Pascal code every so often: it’s a reminder of how little we need in order to make our algorithms fast, and how much is happening behind the scenes by our modern programming languages. To this day this book has some of my favourite presentations of Dijkstra’s Algorithm and sorting.

By Alfred Aho, Jeffrey Ullman, John Hopcroft

Why should I read it?

1 author picked Data Structures and Algorithms as one of their favorite books, and they share why you should read it.

What is this book about?

The authors' treatment of data structures in Data Structures and Algorithms is unified by an informal notion of "abstract data types," allowing readers to compare different implementations of the same concept. Algorithm design techniques are also stressed and basic algorithm analysis is covered. Most of the programs are written in Pascal.


Book cover of The Art of Computer Programming: Volume 4B: Combinatorial Algorithms Part 2

Steven S. Skiena Author Of The Data Science Design Manual

From Steven's 3 favorite reads in 2023.

Why am I passionate about this?

Author Algorist Data scientist Professor Baseball fan

Steven's 3 favorite reads in 2023

Steven S. Skiena Why did Steven love this book?

Knuth is perhaps the true founder of Computer Science, who set out in the late 1960s to produce a seven-volume series of books containing all the foundations of the discipline.

Three volumes appeared by 1973, after which he got distracted by many other things, and the promised volumes seemed destined never to emerge. But Knuth finished Volume 4A in 2011, after a lapse of 35 years. And then, in the Fall of 2022, at the age of 84, he published the 712-page Volume 4B: Combinatorial Algorithms Part II!

There is nothing in the world like a Knuth book. He has a unique way of looking at the world and an unrivaled sense of detail and humor. He goes deeper down rabbit holes than any man alive, and you come out smarter and with a sense of wonder that such books really exist.

Volume 4B is dedicated to combinatorial search algorithms,…

By Donald E. 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?

The Art of Computer Programming is Knuth's multivolume analysis of algorithms. With the addition of this new volume, it continues to be the definitive description of classical computer science.

Volume 4B, the sequel to Volume 4A, extends Knuth's exploration of combinatorial algorithms. These algorithms are of keen interest to software designers because ". . . a single good idea can save years or even centuries of computer time."

The book begins with coverage of Backtrack Programming, together with a set of data structures whose links perform "delightful dances" and are ideally suited to this domain. New techniques for important applications…


Book cover of Programming Collective Intelligence: Building Smart Web 2.0 Applications

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 was my favorite book when I started my career. It talks about how information is processed, in an intelligent way, in the internet age. It acts as a tutorial to teach developers how to code our own ML programs, from online dating services, to document analyzer, and search engine. The author did an excellent job of explaining abstract ML algorithms with clear examples. His coding style in Python reads clearly, which makes the book more beginner-friendly.

Don’t get disappointed when you know this book is more than a decade old. It was a visionary book back in the day and it is still relevant today.

By Toby Segaran,

Why should I read it?

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

What is this book about?

Want to tap the power behind search rankings, product recommendations, social bookmarking, and online matchmaking? This fascinating book demonstrates how you can build Web 2.0 applications to mine the enormous amount of data created by people on the Internet. With the sophisticated algorithms in this book, you can write smart programs to access interesting datasets from other web sites, collect data from users of your own applications, and analyze and understand the data once you've found it. Programming Collective Intelligence takes you into the world of machine learning and statistics, and explains how to draw conclusions about user experience, marketing,…


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 A Common-Sense Guide to Data Structures and Algorithms: Level Up Your Core Programming Skills

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?

For an overview book that focuses on intuition—a book that is intentionally designed to evade formality—to make my list, it has to be really, really good. This one is. I appreciate the inclusion of real code in multiple programming languages and the step-by-step traces of algorithms. I appreciate the care taken with the Big O material and the way that abstract data types are introduced. This is one of very few books whose recursion material I like—the ‘napkin’ approach to recursion is wonderfully done.  

By Jay Wengrow,

Why should I read it?

1 author picked A Common-Sense Guide to Data Structures and Algorithms as one of their favorite books, and they share why you should read it.

What is this book about?

If you thought that data structures and algorithms were all just theory, you're missing out on what they can do for your code. Learn to use Big O Notation to make your code run faster by orders of magnitude. Choose from data structures such as hash tables, trees, and graphs to increase your code's efficiency exponentially. With simple language and clear diagrams, this book makes this complex topic accessible, no matter your background. This new edition features practice exercises in every chapter, and new chapters on topics such as dynamic programming and heaps and tries. Get the hands-on info you…


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 The Three Dimensions of Freedom

Gary Bandy Author Of Financial Management and Accounting in the Public Sector

From my list on how governments collect and spend your taxes.

Why am I passionate about this?

I trained as a chartered public finance accountant because I have a mathematics degree and I wanted to work in public service. After 20 years of that I became a freelance consultant and got into teaching public financial management after volunteering for a project in South Sudan. I have taught here in the UK and in other countries, including Kazakhstan, South Sudan, Uganda, and Sri Lanka. The lack of a good textbook about managing public money that was not aimed at accountants led me to write one in 2010. The third edition of it will be published in 2023. (I am still waiting for my novel to find a publisher.)

Gary's book list on how governments collect and spend your taxes

Gary Bandy Why did Gary love this book?

Billy Bragg has long been my favourite musician. I have all his albums including his 1986 offering, Talking With the Taxman About Poetry.

I included this book because it is about the importance of accountability. This is an important concept for managing public money. The wish for our governments to operate in an honest and fair way requires there being a way to judge their performance. This means that the politicians, civil servants, and everyone else who is involved in government must be willing to be accountable for what they do, and also for what they omit to do. When I teach public financial management I say to my students that if they do not want to be accountable for their actions they should not work in public service.

By Billy Bragg,

Why should I read it?

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

What is this book about?

At a time when opinion trumps facts and truth is treated as nothing more than another perspective, free speech has become a battleground. While authoritarians and algorithms threaten democracy, we argue over who has the right to speak.

To protect ourselves from encroaching tyranny, we must look beyond this one-dimensional notion of what it means to be free and, by reconnecting liberty to equality and accountability, restore the individual agency engendered by the three dimensions of freedom.


Book cover of Social Media and the Public Interest: Media Regulation in the Disinformation Age

James Meese Author Of Digital Platforms and the Press

From my list on news and the impact of technology.

Why am I passionate about this?

I’ve been fascinated by the news media and technology for as long as I can remember. I successfully campaigned for a VCR as a five-year-old, and watched multiple news programs with my grandfather growing up. Alongside these interests, I managed to read as many books as I possibly could. I’ve managed to somehow parlay that into a job as a researcher, where I study the news media sector and technological transformation. I read everything on this list while I was writing my latest book, and hope you enjoy them as much as I did! 

James' book list on news and the impact of technology

James Meese Why did James love this book?

Philip Napoli is a leading media policy expert and was one of the first people to identify some of the problems that emerge when news gets distributed online through social media algorithms.

I love this book because it provides a great narrative of how we got to this point, but also some fantastic suggestions for how policymakers can respond. It’s quite readable for an academic book, and worth checking out. 

By Philip M. Napoli,

Why should I read it?

1 author picked Social Media and the Public Interest as one of their favorite books, and they share why you should read it.

What is this book about?

Facebook, a platform created by undergraduates in a Harvard dorm room, has transformed the ways millions of people consume news, understand the world, and participate in the political process. Despite taking on many of journalism's traditional roles, Facebook and other platforms, such as Twitter and Google, have presented themselves as tech companies-and therefore not subject to the same regulations and ethical codes as conventional media organizations. Challenging such superficial distinctions, Philip M. Napoli offers a timely and persuasive case for understanding and governing social media as news media, with a fundamental obligation to serve the public interest.

Social Media and…


Book cover of How The Internet Really Works: An Illustrated Guide to Protocols, Privacy, Censorship, and Governance
Book cover of The Art of Computer Programming, Volume 4, Fascicle 1, The: Bitwise Tricks & Techniques; Binary Decision Diagrams
Book cover of Data Structures and Algorithms

Share your top 3 reads of 2024!

And get a beautiful page showing off your 3 favorite reads.

1,589

readers submitted
so far, will you?