Algorithms, mathematics, and testing
In this section, we will learn how and why mathematical algorithms can help with the quality of applications and their testing.
Mathematics is all around us and as it happens with many things, once you start gaining interest in it, you will see it everywhere: in the shape of plants and fruits whose leaves grow following mathematical series to find the highest amount of sunlight, in music and harmony, in the stars, in atoms, and more.
As we mentioned in the introduction, it is perfectly possible to solve programming challenges without the explicit use of mathematics. Note the word explicit here; we implicitly use mathematics in algorithms to calculate the size of data structures, perform complex calculations, etc.
However, understanding the mathematical approach could help you improve algorithms and code complexity and reduce the use of resources and data structures. This could give you an advantage while reviewing someone else’s...