100 books like Algorithms to Live By

By Brian Christian, Tom Griffiths,

Here are 100 books that Algorithms to Live By fans have personally recommended if you like Algorithms to Live By. Shepherd is a community of 12,000+ authors and super readers sharing their favorite books with the world.

When you buy books, we may earn a commission that helps keep our lights on (or join the rebellion as a member).

Book cover of Alan Turing: The Enigma

C.A. Farlow Author Of A Quantum Singularity: Book Three in The Nexus Series

From my list on mixing science, fiction, and adventure.

Why am I passionate about this?

I grew up in farm country of central Indiana. But spent my summers on an island in northern Ontario with my grandparents. My grandfather was a self-taught naturalist and shared his love and fascination of the world around us with me. I went on to become a geologist and traveled the globe exploring for natural resources. My love of nature and science is the foundation for the science fiction I write. Whether a proven theory, a fantastical hypothesis, or true science fiction, it’s all based on science fact. It allows everyone to learn about a world built in science fiction which one day may exist in science fact.

C.A.'s book list on mixing science, fiction, and adventure

C.A. Farlow Why did C.A. love this book?

This is a book that is at once a biography, a testament to human genius in the face of imminent danger, and a story of human injustice. Alan Turing had an idea about a ‘universal machine’. A machine, when built at Bletchley Park, allowed the Allies in World War II to crack the German Enigma ciphers. This universal machine laid the foundations for modern computing and all the amazing advances we enjoy today. But at a price for Turing, he fought inner demons about his homosexuality and eventually paid the ultimate price.

I marveled at his genius, cheered his cryptographic successes with each cipher cracked, shouted against the tragedy of his arrest, cried at his untimely death. A death at his own hand at the age of 41. The world lost a genius due to a society’s labelling of homosexuality as a crime.

We still live in this world of…

By Andrew Hodges,

Why should I read it?

6 authors picked Alan Turing as one of their favorite books, and they share why you should read it.

What is this book about?

A NEW YORK TIMES BESTSELLER The official book behind the Academy Award-winning film The Imitation Game, starring Benedict Cumberbatch and Keira Knightley It is only a slight exaggeration to say that the British mathematician Alan Turing (1912-1954) saved the Allies from the Nazis, invented the computer and artificial intelligence, and anticipated gay liberation by decades--all before his suicide at age forty-one. This New York Times-bestselling biography of the founder of computer science, with a new preface by the author that addresses Turing's royal pardon in 2013, is the definitive account of an extraordinary mind and life. Capturing both the inner…


Book cover of How Not to Be Wrong: The Power of Mathematical Thinking

Martin Erwig Author Of Once Upon an Algorithm: How Stories Explain Computing

From my list on computer science without coding.

Why am I passionate about this?

I’m a professor of computer science at Oregon State University. My research focus is on programming languages, but I also work on computer science education and outreach. I grew up in Germany and moved to the United States in 2000. Since computer science is a fairly new and not widely understood discipline, I am interested in explaining its core ideas to the general public. I believe that in order to attract a more diverse set of people to the field we should emphasize that coding is only a small part of computer science.

Martin's book list on computer science without coding

Martin Erwig Why did Martin love this book?

This book is not about computing, but it is relevant in an indirect way. I love this book, since it is written in such an engaging style and illustrates with many examples that math is not a dry subject to be practiced only by mathematicians but helps everyone to solve real-world problems. The book shows how important it is to be precise in describing problems and that applying a little mathematical rigor goes a long way in solving them. Ellenberg describes mathematics as the “extension of common sense by other means.” In a similar way, I view computer science as the extension of problem-solving methods (aka “algorithms”) by other means. 

By Jordan Ellenberg,

Why should I read it?

3 authors picked How Not to Be Wrong as one of their favorite books, and they share why you should read it.

What is this book about?

"Witty, compelling, and just plain fun to read . . ." -Evelyn Lamb, Scientific American

The Freakonomics of math-a math-world superstar unveils the hidden beauty and logic of the world and puts its power in our hands

The math we learn in school can seem like a dull set of rules, laid down by the ancients and not to be questioned. In How Not to Be Wrong, Jordan Ellenberg shows us how terribly limiting this view is: Math isn't confined to abstract incidents that never occur in real life, but rather touches everything we do-the whole world is shot through…


Book cover of Weapons of Math Destruction: How Big Data Increases Inequality and Threatens Democracy

Manil Suri Author Of The Big Bang of Numbers: How to Build the Universe Using Only Math

From my list on to make you fall in love with mathematics.

Why am I passionate about this?

I’m a mathematics professor who ended up writing the internationally bestselling novel The Death of Vishnu (along with two follow-ups) and became better known as an author. For the past decade and a half, I’ve been using my storytelling skills to make mathematics more accessible (and enjoyable!) to a broad audience. Being a novelist has helped me look at mathematics in a new light, and realize the subject is not so much about the calculations feared by so many, but rather, about ideas. We can all enjoy such ideas, and thereby learn to understand, appreciate, and even love math. 

Manil's book list on to make you fall in love with mathematics

Manil Suri Why did Manil love this book?

A primary reason to love math is because of its usefulness. This book shows two sides of math’s applicability, since it is so ubiquitously used in various algorithms.

On the one hand, such usage can be good, because statistical inferences can make our life easier and enrich it. On the other, when these are not properly designed or monitored, it can lead to catastrophic consequences. Mathematics is a powerful force, as powerful as wind or fire, and needs to be harnessed just as carefully.

Cathy O’Neil’s message in this book spoke deeply to me, reminding me that I need to be always vigilant about the subject I love not being deployed carelessly.  

By Cathy O’Neil,

Why should I read it?

11 authors picked Weapons of Math Destruction as one of their favorite books, and they share why you should read it.

What is this book about?

'A manual for the 21st-century citizen... accessible, refreshingly critical, relevant and urgent' - Financial Times

'Fascinating and deeply disturbing' - Yuval Noah Harari, Guardian Books of the Year

In this New York Times bestseller, Cathy O'Neil, one of the first champions of algorithmic accountability, sounds an alarm on the mathematical models that pervade modern life -- and threaten to rip apart our social fabric.

We live in the age of the algorithm. Increasingly, the decisions that affect our lives - where we go to school, whether we get a loan, how much we pay for insurance - are being made…


Book cover of The Thrilling Adventures of Lovelace and Babbage: The (Mostly) True Story of the First Computer

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?

A graphic novel about Ada Lovelace, Charles Babbage, and their quixotic Victorian escapades designing computers and algorithms nearly a century before their time? As fascinating as that may already sound, it’s only the beginning. This is the only graphic novel I’ve read that has footnotes to the footnotes—immensely amusing footnotes. While reading this book, I feel constantly in the presence of insane genius. (But please read this book on physical paper. It is a work of art.)

By Sydney Padua,

Why should I read it?

3 authors picked The Thrilling Adventures of Lovelace and Babbage as one of their favorite books, and they share why you should read it.

What is this book about?

Winner of the British Book Design and Production Award for Graphic Novels
Winner of the Neumann Prize in the History of Mathematics

In The Thrilling Adventures of Lovelace and Babbage Sydney Padua transforms one of the most compelling scientific collaborations into a hilarious set of adventures

Meet two of Victorian London's greatest geniuses... Ada Lovelace, daughter of Lord Byron: mathematician, gambler, and proto-programmer, whose writings contained the first ever appearance of general computing theory, a hundred years before an actual computer was built. And Charles Babbage, eccentric inventor of the Difference Engine, an enormous clockwork calculating machine that would have…


Book cover of The Information: A History, a Theory, a Flood

Michael L. Littman Author Of Code to Joy: Why Everyone Should Learn a Little Programming

From my list on computing and why it’s important and interesting.

Why am I passionate about this?

Saying just the right words in just the right way can cause a box of electronics to behave however you want it to behave… that’s an idea that has captivated me ever since I first played around with a computer at Radio Shack back in 1979. I’m always on the lookout for compelling ways to convey the topic to people who are open-minded, but maybe turned off by things that are overly technical. I teach computer science and study artificial intelligence as a way of expanding what we can get computers to do on our behalf.

Michael's book list on computing and why it’s important and interesting

Michael L. Littman Why did Michael love this book?

This remarkably thorough and well researched book gives a sense of the sweep of history of the ideas that underpin the digital revolution. These are topics that I know really well, but the book added texture and nuance and I found myself reading it with eyes wide open and jaw slightly slack.

Gleick is a great story teller and he has dug into the topics and their implications so well that I felt like I had a front-row seat to the invention of Morse Code, "memes", and the theory of information itself. Quite an accomplishment!

By James Gleick,

Why should I read it?

4 authors picked The Information as one of their favorite books, and they share why you should read it.

What is this book about?

Winner of the Royal Society Winton Prize for Science Books 2012, the world's leading prize for popular science writing.

We live in the information age. But every era of history has had its own information revolution: the invention of writing, the composition of dictionaries, the creation of the charts that made navigation possible, the discovery of the electronic signal, the cracking of the genetic code.

In 'The Information' James Gleick tells the story of how human beings use, transmit and keep what they know. From African talking drums to Wikipedia, from Morse code to the 'bit', it is a fascinating…


Book cover of How to Solve It: A New Aspect of Mathematical Method

Steven S. Skiena Author Of The Algorithm Design Manual

From my list on mathematical and algorithmic thinking.

Why am I passionate about this?

I am Professor of Computer Science at Stony Brook University, and have spent the past thirty years thinking/teaching/writing about algorithms. Algorithms are the really cool thing about computer science, for they form the ideas behind any interesting computer program. And algorithms turn out to be the ideas behind many interesting aspects of life that have nothing to do with computers. I have written six books on algorithms, programming, gambling, and history –including the ranking of the historical significance of all the people in Wikipedia.

Steven's book list on mathematical and algorithmic thinking

Steven S. Skiena Why did Steven love this book?

Polya was a great mathematician who knew what counted (after all, he made major contributions to combinatorics, the mathematics of counting). He thought hard about what he was doing when working on problems in mathematics, developing a mental process that lead to creative breakthroughs and solutions. Polya’s problem-solving method is broadly applicable to domains other than mathematics, and this book features many nice puzzles to improve your thinking.

Algorithm design is challenging because it often requires flashes of sudden insight which seem to come out of the blue. But there is a way of thinking about problems that make such flashes more likely to happen. I try to teach this thought process in my books, but Polya got there first.


By George Polya,

Why should I read it?

2 authors picked How to Solve It as one of their favorite books, and they share why you should read it.

What is this book about?

A perennial bestseller by eminent mathematician G. Polya, How to Solve It will show anyone in any field how to think straight. In lucid and appealing prose, Polya reveals how the mathematical method of demonstrating a proof or finding an unknown can be of help in attacking any problem that can be "reasoned" out--from building a bridge to winning a game of anagrams. Generations of readers have relished Polya's deft--indeed, brilliant--instructions on stripping away irrelevancies and going straight to the heart of the problem.


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 Probably Approximately Correct: Nature's Algorithms for Learning and Prospering in a Complex World

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?

In a world full of buzzwords about the latest AI algorithms, Leslie Valiant is one of the few authors who can shrug off the hype and deliver something truly profound. Valiant is a Turing Award winner whose work has changed the face of computational learning theory. His ideas show how algorithms can arise naturally, as part of evolution. (He calls them ecorithms.) These ideas are stunningly original. I admire Valiant’s no-nonsense prose style immensely—it’s such a pleasure to read something where the ideas and explanations are simultaneously so clear and so deep that they provide their own star power.

By Leslie Valiant,

Why should I read it?

1 author picked Probably Approximately Correct as one of their favorite books, and they share why you should read it.

What is this book about?

From a leading computer scientist, a unifying theory that will revolutionize our understanding of how life evolves and learns.How does life prosper in a complex and erratic world? While we know that nature follows patterns,such as the law of gravity,our everyday lives are beyond what known science can predict. We nevertheless muddle through even in the absence of theories of how to act. But how do we do it?In Probably Approximately Correct , computer scientist Leslie Valiant presents a masterful synthesis of learning and evolution to show how both individually and collectively we not only survive, but prosper in a…


Book cover of The Art of Computer Programming: Volume 3: Sorting and Searching

Steven S. Skiena Author Of The Algorithm Design Manual

From my list on mathematical and algorithmic thinking.

Why am I passionate about this?

I am Professor of Computer Science at Stony Brook University, and have spent the past thirty years thinking/teaching/writing about algorithms. Algorithms are the really cool thing about computer science, for they form the ideas behind any interesting computer program. And algorithms turn out to be the ideas behind many interesting aspects of life that have nothing to do with computers. I have written six books on algorithms, programming, gambling, and history –including the ranking of the historical significance of all the people in Wikipedia.

Steven's book list on mathematical and algorithmic thinking

Steven S. Skiena Why did Steven love this book?

Knuth’s unique mix of playfulness and rigor came to define computer science as an intellectual discipline: computer science didn’t really have anything to do with computers, but everything to do with a particular way of seeing the world.  Just browse and wonder at the beauty and precision achieved in these books.   

Volume 3 (Sorting and Searching) is my personal favorite, and I encourage you to start there. During the pandemic, I finally got around to reading Volume 4A (Combinatorial Algorithms), which was published thirty plus years after Volume 3. It was the same feeling I had watching the movie The Phantom Menace years after growing up with the original Star Wars trilogy. I had forgotten just how unique and distinctive Knuth’s Art of Computer Programming is.

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?

The bible of all fundamental algorithms and the work that taught many of today's software developers most of what they know about computer programming.



-Byte, September 1995



I can't begin to tell you how many pleasurable hours of study and recreation they have afforded me! I have pored over them in cars, restaurants, at work, at home... and even at a Little League game when my son wasn't in the line-up.



-Charles Long



If you think you're a really good programmer... read [Knuth's] Art of Computer Programming... You should definitely send me a resume if you can read the whole…


Book cover of Adventures of a Mathematician

Thomas A. Garrity Author Of All the Math You Missed: (But Need to Know for Graduate School)

From my list on for mathematical inspiration.

Why am I passionate about this?

I love mathematics and truly believe that “Functions Describe the World.” I'm deeply satisfied that I've spent my professional life discovering new mathematics and explaining known mathematics to others. I was an undergraduate at the University of Texas, Austin, got my PhD from Brown University, then spent three years as a G.C. Evans Instructor at Rice University, before moving to Williams, where I've been ever since. Besides writing All the Math You Missed (But Need to Know for Graduate School), I've also written Algebraic Geometry: A Problem Solving Approach (with a number of co-authors) and Electricity and Magnetism for Mathematicians: A Guided Path from Maxwell’s Equations to Yang-Mills, and a number of research articles.  

Thomas' book list on for mathematical inspiration

Thomas A. Garrity Why did Thomas love this book?

Ulam was a Polish mathematical prodigy, publishing significant mathematics by the time he was 20. He was part of the rich Polish math community centered around Stefan Banach. Unlike most, he was heading to the United States in 1939 (with his younger brother) when Germany invaded Poland. All the rest of his family were murdered by the Nazis. He on the other hand ended up in Los Alamos, providing critical help on the Manhattan Project. Later in life, he wrote this book, his autobiography. Based on his history, one could well think that it would be a book full of tragic grief. Instead, it is a pean to the joys of doing mathematics and of living a life full of mathematics, without downplaying the horrors of the mid-twentieth century. 

By S. M. Ulam,

Why should I read it?

2 authors picked Adventures of a Mathematician as one of their favorite books, and they share why you should read it.

What is this book about?

This autobiography of mathematician Stanislaw Ulam, one of the great scientific minds of the twentieth century, tells a story rich with amazingly prophetic speculations and peppered with lively anecdotes. As a member of the Los Alamos National Laboratory from 1944 on, Ulam helped to precipitate some of the most dramatic changes of the postwar world. He was among the first to use and advocate computers for scientific research, originated ideas for the nuclear propulsion of space vehicles, and made fundamental contributions to many of today's most challenging mathematical projects. With his wide-ranging interests, Ulam never emphasized the importance of his…


Book cover of Alan Turing: The Enigma
Book cover of How Not to Be Wrong: The Power of Mathematical Thinking
Book cover of Weapons of Math Destruction: How Big Data Increases Inequality and Threatens Democracy

Share your top 3 reads of 2024!

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

1,187

readers submitted
so far, will you?

5 book lists we think you will like!

Interested in human behavior, math, and mathematical models?

Human Behavior 34 books
Math 276 books