Thread: What's a good generalized data structures book?

  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901

    What's a good generalized data structures book?

    I have one for java which is pretty general despite being based around java for my Data structures class, I could transfer it to C++ easily (as I do for some assignments), but is there a good generalized book for data structures that you'd recommend that doesn't focus on any specific language?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Knuth, The Art of Computer Programming. That should keep you entertained for a few decades.
    My best code is written with the delete key.

  3. #3
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Let's see how long my attention impaired self holds up to this torture.

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    pretty nice., thanks.

  6. #6
    Moderately Rabid Decrypt's Avatar
    Join Date
    Feb 2005
    Location
    Milwaukee, WI, USA
    Posts
    300
    Whatever you do, do NOT get C++ Data Structures by Roberge, Brandle, and Whittington.

    We're using it this semester, and I can't stand it. I think a lot of that has to do with the code they provide for the labs - it's buggy and some of it's non-standard.
    *scowls* Just a few more weeks....
    There is a difference between tedious and difficult.

  7. #7
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    Sedgewick's Algorithms in C++ is generally highly recommended. It helped me and I liked it quite a bit.

    http://www.amazon.com/Algorithms-C++.../dp/0201350882

  8. #8
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Sedgewick's Algorithms in C++ is generally highly recommended.
    Beware the code though. He's a smart guy, but when it comes to programming, he's not exactly the sharpest knife in the drawer...if you know what I mean.
    My best code is written with the delete key.

  9. #9
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    That doesn't sound good, when the material is indeed for programming

  10. #10
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    I have to admit I didn't use his code, I usually wrote my own based on the algorithms in there. I also don't remember that code one way or another, so I can't comment on it.

    You wanted a data structures book that doesn't focus on a specific language (wow, I recommended Algorithms in C++ ), so bad code shouldn't matter as much as the theory and explanation.

  11. #11
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    true, but I have a book that does the same, and if it provides algorithms I would think that if it focuses on C++ it would give those algorithms in C++ rather than a generalised language. Unless it gives both, then I wouldn't mind.

  12. #12
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >That doesn't sound good, when the material is indeed for programming
    I recommend his books because the explanations are excellent. If you have the patience, you can beat the code examples into something presentable that actually works, but keep in mind that they tend not to work when copied straight and they're filled with great examples of awful practices. That's not necessarily a bad thing. I learned quite a bit about red black trees by fixing his broken code.
    My best code is written with the delete key.

  13. #13
    Registered User
    Join Date
    Oct 2004
    Posts
    151
    "Concepts in Data Structures and Software Development"

    http://www.amazon.com/Concepts-Data-.../dp/0314774602
    System: Debian Sid and FreeBSD 7.0. Both with GCC 4.3.

    Useful resources:
    comp.lang.c FAQ | C++ FQA Lite

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Is this book <JAVA in a netshell> good for C++ programmers?
    By meili100 in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 10-28-2008, 02:28 AM
  2. What's a good data structures book for C?
    By philvaira in forum C Programming
    Replies: 4
    Last Post: 07-29-2008, 08:19 AM
  3. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  4. A good book on algorithms for C
    By pritesh in forum C Programming
    Replies: 5
    Last Post: 11-16-2001, 02:12 AM