TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What is your favorite data structures book?

8 pointsby jbranchaudover 10 years ago
What is your favorite (preferably language-agnostic) data structures book?

7 comments

kjs3over 10 years ago
Old school would be Wirth; he&#x27;s done several data structures books. That&#x27;s where a lot of the fundamentals got laid down.<p>Hard core is Knuths&#x27; &quot;The Art of Computer Programming&quot;, but tackling it is somewhat akin to asking how to tell time and being shown, in exquisite (or excruciating) detail how to build a clock.<p>I think I learned the most&#x2F;fastest from Sedgewick (Intro to the Analysis or Algorithms, Algorithms in C (or C++ or Java)). His style worked for me; YMMV. The book Rivest, Cormen, et. al wrote (Intro to Algorithms) is also very good, as is the Aho algorithms book.
vram22over 10 years ago
For a different but useful approach, one book I liked is:<p>How to Solve it by Computer - by R. G. Dromey, a lecturer or professor at a university in Australia, IIRC:<p><a href="http://en.wikipedia.org/wiki/How_to_Solve_it_by_Computer" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;How_to_Solve_it_by_Computer</a><p>Acording to Wikipedia (and also mentioned in his book, IIRC), Dromey was inspired by the techniques of the book &quot;How to Solve it&quot; by George Polya, a famous mathematician, and applied some of his techniques to programming with data structures and algorithms.<p><a href="http://en.wikipedia.org/wiki/George_P%C3%B3lya" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;George_P%C3%B3lya</a><p>But he doesn&#x27;t just translate the Polya book from the domain of mathematics to software; he builds up the solution to each problem posed in his book, in an incremental way, sort of as he discovers or invents them, sharing the reasoning behind the decisions as he goes along. I found this to be one of the good features of the book.<p>I had the good fortune to read Polya&#x27;s book too, early on in college - I think it was rare even then. It had gems like &quot;solve the more general problem&quot; (if there is one), which will automatically solve the specific problem you are working on, as just another special case, and some times the solution to the more general problem may turn out to be simpler than the solution to the specific problem. But the book has much more than that, in terms of problem-solving advice.
评论 #8609677 未加载
rubiquityover 10 years ago
I like The Algorithm Design Manual[0] by Steve Skiena. He actually discovered that students fared better with real code (written in C) as opposed to pseudo-code.<p>0 - <a href="http://www.algorist.com/" rel="nofollow">http:&#x2F;&#x2F;www.algorist.com&#x2F;</a>
评论 #8600111 未加载
评论 #8602118 未加载
nedumaover 10 years ago
<a href="http://opendatastructures.org" rel="nofollow">http:&#x2F;&#x2F;opendatastructures.org</a> is worth a look.
sznurekover 10 years ago
I would recommend &quot;Purely Functional Data Structures&quot; by Chris Okasaki. It&#x27;s not only for functional programmers - there is also a bunch of structures useful in imperative languages.
general_failureover 10 years ago
Not a book but Wikipedia is awesome. Just start with a subject and branch away. No book covers the breadth of Wikipedia. Of course a book might be better for depth.
评论 #8601971 未加载
deeptruthover 10 years ago
My favorite would be &quot;Algorithm Design&quot; by Jon Kleinberg and Eva Tardos. In my opinion, it is extremely well written and easy to follow.