It's mathematics which is really needed,
but a different kind of mathematics, discrete maths, algebra etc.
It's mostly mathematical logic in form of a generalised algorithm.
But a basic knowledge of physics may be benificial,
If you want to know how memory actually works and all that or simply if you want a more in-depth technical knowhow.