I'm a computer engineering student, and I'm trying to get a firm grasp of math before starting to program. I know that math is strictly related to programming, but I don't know what is the field of math most related to programming, for example, automata theory, compatibility theory, discrete math, type theory, category theory, lambda calculus etc can you guys tell me which math field is the most related to programming and computer science?
Thank you!
Discrete mathematics (set theory, logic, combinatorics, graph theory, etc.) is probably the branch most closely associated with computer science, although calculus (esp. optimization), numerical analysis, linear algebra, number theory, statistics, and information theory are also very important in theoretical CS. As far as programming goes, I would prioritize studying algorithms and try to get a solid grasp of the basics of discrete mathematics.
Here's a good starting point for you, the bible of math for CS.