Suggestions logoSuggestions

Quick Revision

Compressed notes for fast review.

Sets & Venn Diagrams

  • Symbols:

    • ABA \cup B : Union (AA or BB)
    • ABA \cap B : Intersection (AA and BB)
    • ABA - B : Difference (AA but not BB)
    • AcA^c : Complement
    • ABA \subseteq B : Subset
    • xAx \in A : Element of
    • UU : Universal Set
  • Formulas:

    • n(AB)=n(A)+n(B)n(AB)n(A \cup B) = n(A) + n(B) - n(A \cap B)
    • Only A=n(A)n(AB)A = n(A) - n(A \cap B)
    • Neither =Totaln(AB)= \text{Total} - n(A \cup B)
    • At least one =n(AB)= n(A \cup B)
    • Exactly one == Only A+A + Only BB
  • Three sets:

    • n(ABC)=n(A)+n(B)+n(C)n(AB)n(AC)n(BC)+n(ABC)n(A \cup B \cup C) = n(A) + n(B) + n(C) - n(A \cap B) - n(A \cap C) - n(B \cap C) + n(A \cap B \cap C)
    • Only A=n(A)[n(AB only)+n(AC only)+n(ABC)]A = n(A) - [n(A \cap B\ \text{only}) + n(A \cap C\ \text{only}) + n(A \cap B \cap C)]
    • Exactly two =(AB only)+(AC only)+(BC only)= (A \cap B\ \text{only}) + (A \cap C\ \text{only}) + (B \cap C\ \text{only})
  • Power set:

    • If n(A)=kn(A) = k, total subsets =2k= 2^k

Mathematical Induction

  • Steps:

      1. Base Case (check n=0n = 0 or n=1n = 1)
      1. Inductive Hypothesis: Assume true for n=kn = k
      1. Inductive Step: Prove true for n=k+1n = k + 1
    • If both hold \to formula true for all natural numbers
  • Useful formulas:

    • 1+2++n=n(n+1)21 + 2 + \cdots + n = \frac{n(n+1)}{2}
    • 12+22++n2=n(n+1)(2n+1)61^2 + 2^2 + \cdots + n^2 = \frac{n(n+1)(2n+1)}{6}
    • 13+23++n3=[n(n+1)2]21^3 + 2^3 + \cdots + n^3 = \left[\frac{n(n+1)}{2}\right]^2
    • 1+3+5++(2n1)=n21 + 3 + 5 + \cdots + (2n-1) = n^2
    • 0!=10! = 1
    • Fibonacci: F0=0F_0 = 0, F1=1F_1 = 1

Relations & Functions

  • Properties:
    • Reflexive: (a,a)(a,a)
    • Symmetric: (a,b)(b,a)(a,b) \to (b,a)
    • Transitive: (a,b),(b,c)(a,c)(a,b),(b,c) \to (a,c)

If all three \to Equivalence Relation

  • Function:
    • Every input has exactly one output
    • Injective: no repeated outputs
    • Surjective: covers full target set

Logic & Proofs

  • Operators:

    • ¬p\neg p : NOT
    • pqp \wedge q : AND (both true)
    • pqp \vee q : OR (at least one true)
    • pqp \to q : If pp then qq (implication)
    • pqp \leftrightarrow q : pp if and only if qq (biconditional)
    • pqp \oplus q : XOR (exactly one true) =(pq)¬(pq)= (p \vee q) \wedge \neg(p \wedge q)
  • Proposition:

    • Declarative statement with TRUE/FALSE value
    • Not propositions: questions, commands, exclamations, variables
  • Types:

    • Tautology: Always TRUE
    • Contradiction: Always FALSE
    • Contingency: Sometimes TRUE, sometimes FALSE
  • Equivalences:

    • pq¬pqp \to q \equiv \neg p \vee q
    • pq(pq)(qp)p \leftrightarrow q \equiv (p \to q) \wedge (q \to p)
    • ¬(pq)¬p¬q\neg(p \vee q) \equiv \neg p \wedge \neg q (De Morgan's)
    • ¬(pq)¬p¬q\neg(p \wedge q) \equiv \neg p \vee \neg q (De Morgan's)
    • p¬pp \vee \neg p \equiv Tautology
    • p¬pp \wedge \neg p \equiv Contradiction
  • Expression Trees:

    • Show operator hierarchy/precedence
    • Root = main operator
    • Leaves = variables
  • Combinational Circuits:

    • AND gate: \wedge
    • OR gate: \vee
    • NOT gate: ¬\neg
    • Translate logical expressions to circuits

Counting (P & C)

  • Order matters:

    • nPr=n!(nr)!nPr = \frac{n!}{(n-r)!}
  • Order doesn't matter:

    • nCr=n!r!(nr)!nCr = \frac{n!}{r!(n-r)!}
  • Repetition allowed:

    • nrn^r
  • Circular permutations:

    • (n1)!(n-1)!

Graph Theory

  • Sum of degrees:

    • deg(v)=2E\sum \deg(v) = 2E
  • Trees:

    • Edges =n1= n - 1
  • Complete graph:

    • Edges in Kn=n(n1)2K_n = \frac{n(n-1)}{2}
  • Odd-degree rule:

    • Odd-degree vertices always even in number
  • TSP (Travelling Salesman Problem):

    • Find minimum cost Hamiltonian cycle
    • Visit each vertex exactly once
    • Return to starting vertex
    • Use greedy approach or full enumeration

Pigeonhole Principle

  • Basic: If n+1n+1 objects in nn boxes \to at least one box has 2+2+ objects
  • Generalized: To guarantee k+1k+1 objects in one of nn boxes:
    • Minimum =k×n+1= k \times n + 1
    • Example: 5 balls of same color from 3 colors 4×3+1=13\to 4 \times 3 + 1 = 13 draws

IUS Preps - Your Academic Success Partner

On this page