Back to Data Structures & Algorithms

Mathematics for DSA

Covering essential mathematical concepts that form the backbone of many advanced algorithms.

2 weeks

Topics in this Chapter

1

GCD and LCM

Implementing and understanding the Euclidean algorithm for GCD and its relation to LCM.

2

Prime Numbers

Exploring primality tests and efficient prime generation using sieves like the Sieve of Eratosthenes.

3

Modular Arithmetic

Understanding operations (addition, multiplication, inverse) in a modular system.

4

Fast Exponentiation

Learning the binary exponentiation (exponentiation by squaring) method for efficient power calculation.

5

Combinatorics

Understanding permutations, combinations, and solving counting problems.

6

Probability

Applying basic probability theory to analyze randomized algorithms and solve related problems.

GeekDost - Roadmaps & Snippets for Developers