Which C++ book is best for learning algorithms and data structures?

  • Context: Courses 
  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Algorithms C++
Click For Summary

Discussion Overview

The discussion revolves around recommendations for C++ books focused on learning algorithms and data structures, particularly in the context of preparing for coding interviews and practical applications. Participants share their experiences and preferences regarding various resources.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant emphasizes the importance of practical exercises over merely reading textbooks, suggesting that working through a book is essential for learning.
  • Another participant recommends Scott Meyers' "Effective C++" series as a traditional resource, noting its recent publication and relevance in the C++ community.
  • A different participant lists several specific books for learning algorithms and data structures in C++, including titles by Mark Allen Weiss and Robert Sedgewick, indicating a variety of options available.
  • One participant expresses a preference for books that include exercises and projects, reinforcing the idea that active engagement is crucial for learning.
  • A participant shares a website that provides reviews of C++ books, which may assist others in making informed choices about their reading materials.

Areas of Agreement / Disagreement

Participants generally agree on the importance of engaging with the material through exercises, but there are multiple competing views on which specific books are best suited for learning algorithms and data structures in C++. The discussion remains unresolved regarding which book or approach is ultimately more beneficial.

Contextual Notes

Some participants mention specific libraries for graphics programming in C++, indicating a potential interest in practical applications beyond algorithms and data structures. However, the discussion does not delve into the specifics of these libraries or their relevance to the main topic.

shivajikobardan
Messages
637
Reaction score
54
1686155537799.png

1686155619753.png

As I said earlier, I've already grasped basics of C++. Since my ultimate goal is to work in coding industry, for interviews, I need to prepare for algorithms and data structures, grind leetcode. Between C++ and Java, I choosed C++ because that was taught in our university.

I won't read the first book line by line. I will start from exercises of loops and complete 20% of all exercises. It'll take at least 6 months of weekend studies for me to get there.

Another plan is to do graphics programming. The book by Tony Gaddis is so good for me. Only problem, it uses darkgdk which is very much outdated. So, if you've any recommendations for libraries in C++ like sfml, allegro, sdl, etc, Please recommend. Recommend those which is similar to darkgdk architecture. This book will also take me 6 months of full time weekend studies to finish.

Which one will be more beneficial to my learning?
 
Physics news on Phys.org
  • Like
Likes   Reactions: DEvens and malawi_glenn
One does not learn a subject by reading a textbook. One learns a subject by working through a textbook.
 
  • Like
Likes   Reactions: Astronuc
Vanadium 50 said:
One does not learn a subject by reading a textbook. One learns a subject by working through a textbook.
that's why I've picked a book which is actually built with exercises and projects.
 
Hey, here are some best C++ books to learn algorithms and data structure.
1. Data Structure and Algorithm Analysis in C++ by Mark Allen Weiss
2. Data Structure and algorithm in C++ by Adam Drozdek
3. Algorithms in C+. Part 1-4: Fundamentals, Data Structure, Sorting, Searching by Robert Sedgewick
4. Data Structure and Algorithms made easy by Narasimha Karumanchi
5. Algorithms and Data Structure in C++
Hope this will help.
 

Similar threads

Replies
86
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
3K
  • · Replies 54 ·
2
Replies
54
Views
24K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K