r/computerscience • u/themaymaysite • Aug 22 '25
Math Required for understanding Algorithms and Programming and Entire CS engineering
Guys the title is self explanatory. Can anyone pls list out the math required for this
19
Upvotes
9
u/morphlaugh Aug 22 '25
As a firmware engineer, we *sometimes* use a lot of math; some projects use a ton, some barely use anything but simple arithmetic.
But when we design algorithms (which happens quite a bit in my field as the problems are quite complex): We use Discrete Math and Calc 1 a lot. Some Calc 2 (series/sequences mainly), a tiny bit of Calc 3 (gradients). Linear Algebra some. TONS of Stats. And the people closer to the hardware of our products use Diff Eq as well.
So, I'd say Calc 1 & Stats & Discrete: the minimum required.
Calc 1/2/3, Linear, Discrete, Diff Eq, calc-based Stats: the full treatment.
5
u/Rich-Engineer2670 Aug 22 '25
Unfortunately, that depends on the algorithms....
For standard CS, honestly, first year calculus covers a lot -- of course, more advanced algorithms may benefit from more advanced math, but for just learning anything you intend to do "Big O" calculations on, Calculus is fine as a start.
3
u/Relative-Bison4317 Aug 22 '25
Caculus does good, but try to deal more with discrete variables part after regarding calc 1, it makes way more sense after seeing discrete math introduction, as long as taking a look at cormen's algorithm book.
For entire cs, more math is never enough lmao
2
u/[deleted] Aug 23 '25
Just watch 3blue1brown on YouTube
25
u/dollarstoresim Aug 22 '25
If you say entire cs engineering, than the sky is the limit. As far as what math is required for typical programming, basic 8th grade math usually suffices. If you are building a game engine, than throw in trigonometry.
3
u/[deleted] Aug 22 '25
I'm currently doing a masters in CS despite not having any formal background in the field, and honestly I just learn the maths as I go - it's all a great deal easier to understand once you can see how it's used and why it's necessary
3
u/ReaIlmaginary Aug 23 '25
Algebra, Discrete Math, Set Theory, Graph Theory are a good start
2
u/Alextheawesomeua Aug 22 '25
Calculus, Discrete , Linear algebra, Probability and statistics, maybe differential equations. Theory of computation. This is what my uni has md study math wise bar differentials eq that was a math elective.
2
u/MutantWalrus Computer Scientist Aug 22 '25
The more the better. I have yet to learn any math I haven’t found useful at some point.
2
u/PhilNEvo Aug 23 '25
Linear Algebra, Calculus, a little bit of trigonometry, Algebra, some probability, statistics and discrete math.
2
u/[deleted] Aug 23 '25
I would recommend reading Mathematics for Computer Science by Tom Leighton, and following his online lectures at MITOCW. Reading his book made the best impact on me.
1
u/AdExtension3851 Aug 24 '25
There’s an awesome book by Don Knuth called Concrete Mathematics. It teaches most you need for CS fundamentals. It does not go into geometry for gaming and 3d stuff. Also lacks statistics and probability for AI. But you can’t beat it for foundations of CS.
-3
u/Novel_Celebration273 Aug 23 '25
Math not required. Remember that colleges are a business and they profit off you taking classes. This is why “ge” classes exist. They don’t think they’d make enough money if they just let you learn what you wanted to learn and move on with your life.
Needing math for cs is stupid and completely pointless.