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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask YC: Data structure or Algorithm selection for a problem?

4 点作者 yearsinrock超过 17 年前
data structure or algorithm which one is more important in solving a problem<p>and how selection of both is important in solving a problem

6 条评论

cperciva超过 17 年前
To quote Hofstadter: Mu.<p>Particular algorithms operate on particular data structures; a binary search on a sorted list makes sense, while a binary search on an unsorted list is meaningless. It doesn't make any sense to have one of "a good algorithm" or "a good data structure" without the other.
评论 #91437 未加载
boucher超过 17 年前
Good introductory text: Cormen/Leiserson/Rivest/Stein: Introduction to Algorithms (2nd edition)<p><a href="http://www.amazon.com/Introduction-Algorithms-Thomas-H-Cormen/dp/0262032937/ref=pd_bbs_2?ie=UTF8&#38;s=books&#38;qid=1198139015&#38;sr=1-2" rel="nofollow">http://www.amazon.com/Introduction-Algorithms-Thomas-H-Corme...</a><p>Good advanced text: Jon Kleinberg/Eva Tardos: Algorithm Design<p><a href="http://www.amazon.com/Algorithm-Design-Jon-Kleinberg/dp/0321295358/ref=pd_bbs_2?ie=UTF8&#38;s=books&#38;qid=1198138989&#38;sr=8-2" rel="nofollow">http://www.amazon.com/Algorithm-Design-Jon-Kleinberg/dp/0321...</a>
bayareaguy超过 17 年前
I suggest you read "Algorithms + Data Structures = Programs" by Niklaus Wirth. <a href="http://tinyurl.com/yw7tgo" rel="nofollow">http://tinyurl.com/yw7tgo</a>
aristus超过 17 年前
Mooooo..... :)<p>I usually visualize the data structure that exists, or that I want, and work "backwards" from there. But whichever direction you use, always always remember that the idea is to make the design simpler and more clear.
评论 #91436 未加载
z0ltanz0ltan超过 17 年前
At all the above maniacs ... I think what yearsinrock meant was "Data Structure and Algorithm" selection for a specific problem...
评论 #91427 未加载
flashgordon超过 17 年前
I didnt think that choice was orthogonal?