News for hackers. Stuff that matters.
Re:Ask YC: Data structure or Algorithm selection for a problem? by aristus on Wednesday December 19, 2007 @11:24PM (#91395)
Mooooo..... :)

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.

Re:Ask YC: Data structure or Algorithm selection for a problem? by boucher on Thursday December 20, 2007 @03:19AM (#91436)
Well, no, not always, always.

Use the data structure that makes the design more efficient. Clarity might be nice, but an O(n) solution is not acceptable when a reasonable O(log n) or O(1) solution exists.