COMP 2711H: Lecture 10
Date: 2024-09-23 17:44:16
Reviewed:
Topic / Chapter:
summary
❓Questions
Notes
Problems
- 
Paths excluding forbidden segments
- w/ PIE, instead of addition principle
 - idea: get all paths, subtract paths going through one forbidden, add paths - thrice, .. add -th and so one.
 - how many paths go through exactly 3 forbidden segments?
- from generalized PIE:
- all path going through forbidden - all path going through forbidden, so on.
 - or: 
- (for our case)
 
 
 
 - from generalized PIE:
 
 - 
No. of primes below 50
- 
- i.e. at least one factor: less than
 - primes less than : 
- only needed number for composite no. below 50
 
 
 - : mults. of 2 (and so on for )
 - 
- i.e. no. of composite numbers below
 - all no. of primes:
 
 - 👨🏫 maybe better
- but I, as a CS people, hate any algorithm w/ PIE (unless it's optimal)
 
 
 - 
 - 
Integer solutions w/ more bound
- 
- how many solutions satisfy exactly two of the upper bounds?
- : solutions violating
 - :
 - :
 
 - total no. of solutions:
- no such solution satisfying more than 1 red bounds
 
 - e.g. :
 
 
 - 
 - 
Generalized PIE
- universe w/  elements
- : sets
 - : no. of elements appearing in exactly of the sets ()
 
 - let element : appears in  sets
- must be counted only once on the left hand
 - appearing in sets
 
 - thus 
- what if appears in sets?
 - and
 - thus 
- therefore we must add on RHS
 
 
 - for  with 
- sub
 
 
 - universe w/  elements
 - 
r-permutations of : exactly fixed points?
- fixed point of : index s.t.
 - 
- set of all s.t.
 - set of all s.t.
 - set of all s.t.
 - set of all s.t.
 
 - 
 - chairs:  left
- and people left
 
 - ⭐ solution:
 - 
- exactly people in correct position
 - 
- 👨🏫 extended version!