4 ms·
Basic mathematical structures are the most useful for programming. Learn about sets, relations, logic, graphs, first class functions, infinite sequences and oth
by jules 17y ago
Basic mathematical structures are the most useful for programming. Learn about sets, relations, logic, graphs, first class functions, infinite sequences and other basics and you'll be able to solve algorithmic problems much more quickly.
Most programmers think in objects and arrays/lists. While this may result in the most efficient program it's not the most efficient use of your time. Many problems can be modeled much more concisely and easily with structures that are used in math.
Here's a challenge for HN: write an AI for Dawson's chess [1] that can determine whether a position is a winning position or a losing position.
[1] http://www.madras.fife.sch.uk/maths/games/dawsonschess.html http://www.madras.fife.sch.uk/maths/games/dawsonschess.html
- jules 17y agoNo takers? It's not a lot of work. With a little bit of thinking it's 1 line of Python code, or maybe 10 lines of C/C#/Java because they don't have concise support for math structures.
- ardit33 17y agono. I really have better things to do with my time, like building real products and make $$. I did these stuff of things back in college, ACM contests and all. Time to grow up and build real things.
- godDLL 17y agoWow, you're no fun. Flexing muscles makes them stronger, you know. And sitting in a chair grows your bottom disproportionately. Buddha preaches balance.
- deleted 17y ago[deleted]
- deleted 17y ago[deleted]
- deleted 17y ago[deleted]