Ask HN: Which areas of math are practical to programming/algorithms and why?
1–10 of 101 posts
Re: Ask HN: Which areas of math are practical to programming/algorithms and why?
#2Linear algebra is useful for computer graphics, but also for general "system thinking" concepts like inputs spaces, output spaces, transformations, and properties of transformations.
Basic differential calculus, meeeh, but multivariable calculus—specifically optimization—is really important in many programming contexts (e.g. machine learning).
Of course, the most important and most basic of all is the notion of a function f(x), its definition, inputs, outputs, properties, etc.
Re: Ask HN: Which areas of math are practical to programming/algorithms and why?
#3Discrete math first comes to mind first: lists, trees, graphs, etc. Used in basic algorithms 101, but you need some more serious probability theory for probabilistic algorithms. Linear algebra is useful for computer graphics, but also for general "system thinking" concepts like inputs spaces, output spaces, transformations, and properties of transformations. Basic differential calculus, meeeh, but multivariable calcu…
Re: Ask HN: Which areas of math are practical to programming/algorithms and why?
#4And on the more esoteric side of things, in Quantum Computing every logic gate is actually a Matrix Multiplication
Re: Ask HN: Which areas of math are practical to programming/algorithms and why?
#5Re: Ask HN: Which areas of math are practical to programming/algorithms and why?
#6Re: Ask HN: Which areas of math are practical to programming/algorithms and why?
#7We employ some very talented people working on these sorts of problems for rail: http://biarrirail.com
Re: Ask HN: Which areas of math are practical to programming/algorithms and why?
#8Re: Ask HN: Which areas of math are practical to programming/algorithms and why?
#9Set theory is, probably, the most fundamental. Everything could be defined as a set or as a function.
Lambda calculus, obviously.
Some combinators. Basics of linear algebra.
No category theory and other bullshit is needed. Sets will do.
It is actually very important skill to avoid wasting time in disconnected from reality obscure academic bullshit, be it philosophy, physics or math. Do not follow other people's hallucinations. Have your own.)
As a rule of thumb - you need just enough math to understand The Wizards Lectures and SICP.
Again, the substitution model, sets (for notion of types and basic collecttions) and high order functions (the "domain and range" mantra) is enough.
For algorithms the notion of being bound by some function and orders of growth.
Re: Ask HN: Which areas of math are practical to programming/algorithms and why?
#10If you are not familiar with the author, Alexander Stepanov is the guy who basically figured out generic programming, was instrumental in the design of C++ templates and the C++ STL. C++ gets a lot of flak but templates are very powerful (if you disregard the complexity). I think that they are actually one of the main reasons why C++ is still relevant. Also I'm starting to think that generic programming might actually be the most powerful paradigm out there (this is just a hunch). This book doesn't take the middle road, only the low level (C++) and extreme high level (abstract algebra) and totally cuts out the middle part (aka boiler plate).
Funnily enough, this C++-like language actually translates very nicely to the modern C++ successors like Swift and Rust (or it seems, I'm in the progress of exploring this).
Has anyone here tried to explore the contents of this book in either Swift or Rust?
But remember that this is not an easy book, I've met very smart people who told me they read only a part of this and are still wrapping their heads around that.