Discrete Mathematics
Set Theory
- Basic Notation: Set
- Operations:
- Union:
- Intersection:
- Difference:
- Complement:
- Set Properties:
- De Morgan’s Laws:
- De Morgan’s Laws:
Logic
- Logical Operators:
- AND ()
- OR ()
- NOT ()
- Implies ()
- Equivalent ()
- Truth Tables:
Number Theory
- Division Algorithm: where
- GCD:
- Prime Numbers: Numbers with exactly two factors
- Modular Arithmetic:
Linear Algebra
Vectors
- Vector Operations:
- Addition:
- Scalar Multiplication:
- Dot Product:
Matrices
- Matrix Operations:
- Addition:
- Multiplication:
- Special Matrices:
- Identity Matrix:
- Transpose:
- Inverse:
Calculus
Derivatives
- Basic Rules:
- Power Rule:
- Product Rule:
- Chain Rule:
Integrals
- Definite Integral:
- Fundamental Theorem:
Probability & Statistics
Probability
- Basic Probability:
- Conditional Probability:
- Bayes’ Theorem:
Statistics
- Mean:
- Variance:
- Standard Deviation:
Graph Theory
Basic Concepts
- Graph:
- Degree: Number of edges incident to a vertex
- Path: Sequence of vertices connected by edges
Important Theorems
- Handshaking Lemma:
- Euler’s Formula: For planar graphs:
Computational Complexity
Big-O Notation
- - Constant
- - Logarithmic
- - Linear
- - Linearithmic
- - Quadratic
- - Exponential
Space Complexity
- Stack Space: for recursive calls
- Heap Space: Dynamic memory allocation
Boolean Algebra
Laws
- Commutative:
- Associative:
- Distributive:
- Identity: ,
- Complement: ,
Numerical Methods
Root Finding
- Newton’s Method:
- Bisection Method: Binary search for roots
Interpolation
- Linear:
- Lagrange:
Note: This cheat sheet covers fundamental mathematical concepts essential for computer science. For deeper understanding, always refer to detailed resources and practice problems.