7 - Counting Principles - 6.1

ucla | MATH 61 | 2022-10-07T11:05


Table of Contents

Recall

Notes

Supplemental Definitions

Examples

  • e.g. multiplication principle
    • what’s the number of strings of length 4 from ABCDE with no repetition
    • n1=5,n2=4,n3=3,n4=2
    • k=14nk=5432 strings
    • no need to expand
    • e.g. how many of those strings start w/ B
      • n1=1,n2=4,n3=3,n4=2
      • k=14nk=1432 strings
  • e.g. multiplication principle proof
    • prove $X=n\impliesP(X)=2^n$
    • consider the number of ways to build SP(X)
    • for each xX we decide
      • add x to S or
      • not add x to S
      • i.e. 2 choices for each element x
    • therefore there are n steps
    • 21222n=2n
    • by the Multiplication Principle
  • e.g. multiplication principle
    • suppose you must choose 2 movies from distinct genres: 3 romance, 4 comedy, 5 children’s
    • how many ways to choose 2 movies
    • X1=romance+comedy
    • X2=romance+children
    • X3=comedy+children
    • Multiplication Principle
      • $X_1=3\cdot4$
      • $X_2=3\cdot5$
      • $X_3=4\cdot5$
    • by the addition principle, because X1,X2,X3 are disjoint:
      • 34+35+45
  • e.g. inclusion-exclusion principle
    • you have a committee of members A,B,C,D,E,F
    • from this committee choose a unique president, secretary, and treasurer
    • what is the total # of ways to choose
      • n1=6,n2=5,n3=4
      • 654 ways by the multiplication principle
    • what if A or B must be president
      • n1=2,n2=5,n3=4
      • 254 ways by the multiplication principle
    • what if A or D or both to be officers
      • X=A on board
      • Y=D on board
      • $X\cup Y$ is desired count
      • by the inclusion-exclusion principle $\impliesX+Y-X\cap Y$

Big Ideas

  • multiplication principle
    • if an event can be broken down into t independent steps
    • where there are n ways to do step 1, n2 ways to do step 2, …
    • then, there are n1n2nt possible events
  • addition principle
    • suppose X1,,Xt are sets where $X_i=n_i$
    • if each set Xi,Xj are disjoint when ij
    • the number of elements that can be chosen from X1 or X2 or … or Xt is:
    • k=1tnk=n1++nt
  • inclusion-exclusion principle

    • if X,Y are finite sets
    • $X\cup Y=X+Y-X\cap Y$

Lecture

📌

**SUMMARY
**