We are recommending best 10 data structure and algorithm books which help to learn the data structure and algorithm fundamentals. We selected books based on our experience and explained the factors involved with each book selection. We didn’t rate any book and each book has good topics coverage. We have a lot of data structure and algorithm material which is freely available on the internet. But, when the candidate starts reading from the internet, they may deviate from learning the data structure and algorithm and may not be able to cover all the topics. Books help to learn the data structure and algorithm in a focused way without much disturbance. If the student learning the data structure and algorithm in the curriculum, they can browse the following books to understand the concepts clearly.

1)Data Structures and Algorithms Made Easy by Narasimha Karumanchi

The Data Structures and Algorithms Made Easy explains the data structure and algorithm concepts with source code. The user can understand concepts and test with C/C++ compiler. If the user wants to learn using java programming language, they use “Data Structures and Algorithms Made Easy in Java”. This book explains the concepts in 21 chapters which cover Recursion and Backtracking, Linked Lists, Stacks, Queues, Trees, Priority Queue and Heaps, String Algorithms, Algorithms Design Techniques, and more. It also explains with multiple approaches for each problem. The user can understand the algorithm analysis for each problem.


Programming language: C/C++
Source code:

2) Data Structures and Algorithms in Java, 2nd Edition by Robert Lafore

The Data Structures and Algorithms in Java explain the concepts at the basic level. This book explains the concepts using java build in library functions and java futures. It also adds the suggested solutions to the programming projects for each chapter. The user can download the source code. This book was written as a textbook for a “Data Structures and Algorithms” course and all the expected topics are covered; arrays, queues, stacks, linked lists, trees, hash tables, heaps, sorting, recursion, and searching.


Programming language: Java
Source code:

3) The Algorithm Design Manual, 2nd Edition by Steven S Skiena

The Algorithm Design Manual helps to prepare the programming interview. Good algorithm designers understand several fundamental algorithm design techniques, including data structures, dynamic programming, depth first search, backtracking, and heuristics. This book explains basic concepts with Pseudocode. The Pseudocode can be transferred to any programming language without much struggle. The Steve Yegge — Get that Job at Google recommends Algorithm Design Manual book for google interview preparation. This book also adds the real world war stories where the data structure and algorithm concepts used.


Programming language: C/Pseudocode
Source code:

4) Introduction to Algorithms, 3rd Edition by Thomas H. Cormen , Charles E. Leiserson, Ronald L. Rivest, Clifford Stein

The Introduction to Algorithms book covers a broad range of algorithms in depth. It can be used by all the levels of the programmer from graduate student to working professional. This book explains the concept using Pseudocode. It can be transferred any programming language without much struggle. It is a comprehensive textbook covering the full spectrum of modern algorithms including graph theory, string matching, computational geometry, number theory and multithreaded algorithms. This book helps for preparing the programming interview. it may take the longer time to prepare.


Programming language: Pseudocode
Source code:

5) Algorithms, 4th Edition by Robert Sedgewick, Kevin Wayne

Algorithms are the leading textbook on algorithms today and is widely used in colleges and universities worldwide. This book surveys the most important computer algorithms currently in use and provides a full treatment of data structures and algorithms for sorting, searching, graph processing, and string processing. The Author maintains the online portal which contains full working source code. The student can easily understand the data structure and algorithm using java programming language.


Programming language: Java
Source code:

6) Elements of Programming Interviews in Java: The Insiders’ Guide, by Adnan Aziz, Tsung-Hsien Lee, Amit Prakash

The Elements of Programming Interviews helps for preparing the programming interview. The authors released the separate book for C++ and java. This book presented detailed explanations starting with brute force solution and then refining to an efficient solution. All problems are classified in terms of their difficulty level and include many variants to help you apply what you have learned more widely. All problems include hints for readers who get stuck. This simulates what you will face in the real interview. This book contains the information about the difficulty level for each problem.


Programming language: Java/C++
Source code:

7) Programming Pearls, 2nd Edition by Jon Bentley

Programming Pearls is a Jon Bentley’s collection of programming pearls is commonly included among the classics. It includes sorting algorithms, merge sort, bit vectors, binary searches, program correctness and testing, improving performance, engineering and problem-solving techniques, divide-and-conquer and scanning algorithms and more. This book provides tutorial and analysis each problem with performance analysis. It also provides the exercise problems using C programming language.


Programming language: C
Source code: NA

8) Algorithms in C, 3rd Edition by Robert Sedgewick

The Algorithms in C is an essential resource for computer science researchers, students, and working developers. It contains 2 books. The first book introduces fundamental concepts associated with algorithms and data structures. The second book focuses entirely on graphing algorithms. It also contains 2,000 exercises. This book also contains the tutorial, diagrams, and C code which can be compile, debug and run directly.


Programming language: C
Source code:

9) The Art of Computer Programming, 1st Edition by Donald E. Knuth

The Art of Computer Programming provide comprehensive overview of a wide variety of algorithms and the analysis. The first book begins with mathematical preliminaries, stacks, queues, lists, arrays, and trees–and presents implementations. Volume 2 of Donald Knuth’s classic series The Art of Computer Programming covers semi-numerical algorithms. Third volume is the most comprehensive survey of classical computer techniques for sorting and searching.

“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 thing”-Bill Gates


Programming language: Pseudocode
Source code:

10) Hacker’s Delight 2nd Edition by Henry S. Warren

The Hacker’s Delight contain the collection of programming hacks which includes timesaving techniques, algorithms, and tricks that help programmers build more elegant and efficient software and more. It contains collection of programming tricks at the bit level, including a super optimizer program for RISC computers.


Programming language: C
Source code:

Visit to understand more about Algorithms

Visit to understand more about Data Strcutre.

10 Best data structure and algorithm books

Leave a Reply

Please Login to comment
3 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
2 Comment authors
BenFoxOhonab Recent comment authors
newest oldest most voted
Notify of

If I’m just starting to learn Java, should I read these books, or should I start reading the subject literature?
I found a list of books, there are 18 of them. Maybe someone knows which one will be the best for a beginner?
I would be very grateful for the recommendations.


Thanks for your suggestion. I have made another list of best books of Algorithms and Data Structure.


[…] Nguồn tham khảo: Top 10 best data structures books […]