WHERE TO START
Pick your goal, get a reading order
Most people should not start with CLRS. Choose what you're reading for and we'll suggest three books in order.
- STEP 1BeginnerGrokking AlgorithmsAditya Y. Bhargava · 2024Pictures first, so the ideas stick before the maths.
- STEP 2Beginner-IntermediateAlgorithmsRobert Sedgewick et al. · 2011Free lectures and code to practise alongside.
- STEP 3Intermediate-AdvancedIntroduction to AlgorithmsCormen et al. · 2022The reference you'll grow into.
THE SHELVES
17 of 17 booksAll five shelves
Foundational textbooksThe gold-standard university texts: rigorous design, analysis and proofs.
Introduction to AlgorithmsCormen
Intermediate-Advanced2022Introduction to Algorithms (CLRS)Cormen, Leiserson, Rivest, Stein · 4th ed., MIT PressThe definitive textbook, used in over 1,000 universities. Sorting, graphs, dynamic programming and NP-completeness, with proofs and pseudocode. The 4th edition adds bipartite matching and online algorithms.
The Algorithm Design ManualSteven S. Skiena
Intermediate2020The Algorithm Design ManualSteven S. Skiena · 3rd ed., SpringerA textbook plus a catalogue of 75 algorithmic problems, with real-world “war stories”. The companion site has C, C++ and Java implementations.
AlgorithmsRobert Sedgewick
Beginner-Intermediate2011
Free online
AlgorithmsRobert Sedgewick, Kevin Wayne · 4th ed., Addison-WesleyClear, example-driven explanations with complete Java code. The free companion site has visualisations, auto-graded exercises and Princeton's lectures.Algorithm DesignJon Kleinberg
Intermediate2005Algorithm DesignJon Kleinberg, Éva Tardos · PearsonBuilt around design techniques (greedy, divide and conquer, DP, network flow) and how to approach new problems. Widely used in graduate courses.
Beginner-friendlyAccessible first books, with visual aids and plain language.
Grokking AlgorithmsAditya Y. Bhargava
Beginner2024Grokking AlgorithmsAditya Y. Bhargava · 2nd ed., ManningHundreds of hand-drawn diagrams covering binary search, BFS/DFS, DP and greedy algorithms, with Python examples. One of the most recommended first algorithm books.
A Common-Sense Guide to Data Structures and AlgorithmsJay Wengrow
Beginner2020A Common-Sense Guide to Data Structures and AlgorithmsJay Wengrow · 2nd ed., Pragmatic BookshelfJargon-free and practical: when and why to use each data structure, with real-world performance analysis.
Algorithms UnlockedThomas H. Cormen
Beginner2013Algorithms UnlockedThomas H. Cormen · MIT PressBy CLRS's lead author, for a general audience with no programming needed: searching, sorting, graphs, cryptography and compression in plain English.
Interview preparationProblem-solving patterns and coding under pressure for tech interviews.
Cracking the Coding InterviewGayle Laakmann McDowell
Intermediate2015Cracking the Coding InterviewGayle Laakmann McDowell · 6th ed.The industry standard: 189 questions with detailed solutions, plus insider advice on hiring at large tech companies.
Elements of Programming InterviewsAziz
Intermediate-Advanced2018Elements of Programming InterviewsAziz, Lee, Prakash · Java, C++ and Python editions300+ problems by topic, each with several approaches and complexity analysis. Harder than CTCI; includes a study plan by time available.
Programming Interviews ExposedMongan
Beginner-Intermediate2018Programming Interviews ExposedMongan, Kindler, Giguere · 4th ed., WileyA gentler step-by-step introduction to interview problems: linked lists, trees, arrays, sorting and concurrency.
Competitive programmingSpeed and pattern recognition for ICPC, Codeforces and similar contests.
Competitive Programming 4Steven Halim
Intermediate-Advanced2020Competitive Programming 4Steven Halim, Felix Halim, Suhendry Effendy · 2-volume setThe most comprehensive contest resource: data structures, graphs, maths, geometry and strings, with 3,500+ exercises linked to online judges.
Guide to Competitive ProgrammingAntti Laaksonen
Intermediate2020
Free online
Guide to Competitive ProgrammingAntti Laaksonen · 2nd ed., SpringerConcise and practical, based on the CSES problem set, whose site offers 300 auto-tested problems. Free PDF from the author.Programming ChallengesSteven S. Skiena
Intermediate2003Programming ChallengesSteven S. Skiena, Miguel A. Revilla · Springer110 ICPC and UVa problems by algorithm type, with hints and solution approaches. A companion to The Algorithm Design Manual.
Advanced and specialisedDeep dives for researchers, graduate students and experienced practitioners.
The Art of Computer ProgrammingDonald E. Knuth
Expert1968-2023The Art of Computer ProgrammingDonald E. Knuth · Vols 1-4B, Addison-WesleyThe legendary multi-volume masterwork, with extraordinary mathematical rigour in Knuth's MIX/MMIX assembly. Volume 5 is still being written.
Randomized AlgorithmsRajeev Motwani
Advanced1995Randomized AlgorithmsRajeev Motwani, Prabhakar Raghavan · Cambridge University PressProbabilistic methods in algorithm design: randomised quicksort, hashing, random walks, Markov chains, Monte Carlo and Las Vegas algorithms.
Approximation AlgorithmsVijay V. Vazirani
Advanced2001Approximation AlgorithmsVijay V. Vazirani · SpringerSystematic techniques for NP-hard optimisation: greedy, LP relaxation, primal-dual, semidefinite programming and hardness of approximation.
Network FlowsAhuja
Advanced1993Network FlowsAhuja, Magnanti, Orlin · PearsonThe definitive reference on shortest paths, max flow, min-cost flow and matchings, with 150+ applications.
AT A GLANCE
Every book, on one level scale
BOOKBEGINNERINTERMEDIATEEXPERT
Grokking AlgorithmsBeginner-friendly
A Common-Sense Guide to Data Structures and AlgorithmsBeginner-friendly
Algorithms UnlockedBeginner-friendly
AlgorithmsFoundational textbooks
Programming Interviews ExposedInterview preparation
The Algorithm Design ManualFoundational textbooks
Algorithm DesignFoundational textbooks
Cracking the Coding InterviewInterview preparation
Guide to Competitive ProgrammingCompetitive programming
Programming ChallengesCompetitive programming
Introduction to AlgorithmsFoundational textbooks
Elements of Programming InterviewsInterview preparation
Competitive Programming 4Competitive programming
Randomized AlgorithmsAdvanced and specialised
Approximation AlgorithmsAdvanced and specialised
Network FlowsAdvanced and specialised
The Art of Computer ProgrammingAdvanced and specialised