TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Books that explains algorithms with code instead of math?

4 点作者 swix超过 13 年前
Yes as the title says. I am looking for books about algorithms that explain the algorithms with code instead of math. The reason being, I understand code better than sometimes foreign to me math symbols and formulas.<p>So what type of algorithms am I looking for? Graphics and machine learning mostly, but also the usual suspects, sorting, data structures, etc.<p>Big plus if the book is explaining things on a very understandable level, so that any average developer can grasp the concepts without too much hassle.<p>So, what are the best books that fall in this category?

5 条评论

BenDaglish超过 13 年前
If you know perl, I highly recommend Mastering Algorithms With Perl - all code and barely any symbols :)
toddc超过 13 年前
Data Structures and Algorithms in Java by Adam Drozdek has a lot of actual code that works. I think the code is online, but the book is worth buying because things are explained well (<a href="http://www.amazon.com/Data-Structures-Algorithms-Java-Drozdek/dp/9814239232/" rel="nofollow">http://www.amazon.com/Data-Structures-Algorithms-Java-Drozde...</a> ) to be fair, there's quite a bit of math supporting Drozdek's book. Stay away from Sedwick, in my experience his examples are incomplete/don't compile and are abstract. Now, while, CLRSS is the gold standard (Joshua Bloch cites it in his Java Collections code) be aware it's math heavy and lacking on implementation details. Rumor was that there was a CD of CLRSS examples somewhere...
swordswinger12超过 13 年前
I'm not sure how to parse your request. "explain the algorithms with code instead of math" is what's tripping me up, what exactly are you looking for? Algorithms are often described as pseudocode, so you want a book that explains pseudocode with code? At some point you have to move to another level of abstraction when talking about an algorithm, which is why mathematical language is used. That said, you could try CLRS. That seems to be the gold standard in algorithms books.
rmk超过 13 年前
This approach is wrong, if you want to learn algorithms. Also, you will not find an algorithms book that combines graphics, machine learning, and the usual suspects. Also, forget about learning this stuff 'without too much hassle'. There is no 'royal road' to algorithms. Practice, practice, and practice.
ekm2超过 13 年前
I would start out with Sedgwick's Algorithms in C since it has lots of code examples before moving on to CLRS