COMP 2711H: Lecture 8
Date: 2024-09-16 17:59:47
Reviewed: 2024-10-07 02:49:12
Topic / Chapter:
summary
❓Questions
Notes
Revisiting Problem
-
Problem 2
- how many ways can we put distinct people around identical circles, while ensuring 1 and 2 are next to each other
- simply: glue 2 people together
- thus , and times 2 as you can order between two people can swapped
- however: if there is a circle w/ two people only:
- ordering doesn't matter
- i.e. cases are counted twice
- however: if there is a circle w/ two people only:
- finally:
- then subtract it from the real, total, number to find how many ways aan we allocate people while separating the two
-
Weekly Problem 5
- ways of ordering boys
- are there are 74 slots we can insert girls
- and at most 1 girls can be inserted / slot
- i.e.
- however, as order of girls matter too, so
- 👨🏫 this leads to new method of solving the equation!
- if
- i.e. if we have constraint:
- then we only have only 6 slots (7-1) to insert 3 bars (4-1)
- part 4: we cannot have 3 consecutive girls
- 👨🏫 casework: better done on girls, as we have much less girls than boys
- girls: divided into conseq. groups of 1/2 (not 3)
- 👨🎓 ~= counting problem? how many ways to pay 9 dollar w/ 1 dollar and 2 dollar banknotes? orders matter
- 👨🏫
- no. of ways to write as sum of summands of 1 or 2
- 👨🎓 summand: operand of summation
- if last summand is :
- if last summand is :
- thus
- thus: total of ways on grouping & ordering girls are as of following
- for min. groups of girls; for max.
- back to boys, we have slots to put boys
- and let's denote the no. solution as
- 👨🎓 bars w/ balls
- for real, finally:
- as all boys are distinct as well
- computable by hand (unlike previous recursion)
- computing better:
- coins, with 2-coins and 1-coins
-
Weekly problem 7
- 10 R's and 6 U's, can be presented as
-
- aka
- or, the other way:
- aka
-
Weekly problem 8
- how many no. of ways from blue to red does NOT go through red point?
- total ways:
- total ways B->R:
- total ways R->G:
- finally:
-
Weekly problem 9
- how many no. of ways from blue to red does NOT go through yellow point?
- however: no path can go through both yellow points!
-
Weekly problem 10
- how many paths do we have that do not cross the dotted line?
- like Pascal's triangle, or Fibonacci numbers, you can simply add up paths from two points together!
-
Problem 8 from 102 problems
- Spider with 8 legs
- w/ 8 socks () and 8 shoes ()
- and how many permutations are there, that spider wears before corresponding ?
- first, there are ways
- however, there is a double counting per each leg, correct order & incorrect order
- thus,
- instead, it's like a sequence of size 16 s.t. each number 1-8 appears exactly twice
- count the first one as socks, second as shoes
- finally, 16 numbers with 8 groups of 2 indistinct numbers
- so
-
Divisors
- how many divisors does 640 have?
- 16 divisors! as all its divisor will look like
- where
- how many common divisors do 100 and 640 have?
- and all common divisor: in
- s.t
- i.e. min appearing size of either
- ways
- 👨🏫 also,
- and all divisor of : common divisor of both numbers