Add second year

This commit is contained in:
2023-12-07 01:19:12 +00:00
parent 3291e5c79e
commit 3d12031ab8
1168 changed files with 431409 additions and 0 deletions

View File

@ -0,0 +1,33 @@
- #[[MA284 - Discrete Mathematics]]
- **Previous Topic:** [[Combinatorial Proofs]]
- **Next Topic:** [[Advanced PIE, Derangements, & Counting Functions]]
- **Relevant Slides:** ![MA284-Week05.pdf](../assets/MA284-Week05_1664971430860_0.pdf)
-
- Example: How many ways can you give 7 apples to 4 lecturers?
- How many ways can you arrange 3 bars out of 7 stars and 3 bars (10)?
- $$* | * | * | * * *$$
- $$\binom{10}{3} = 120$$
- # Multisets vs Sets
- What is a **multiset**? #card
card-last-interval:: 3.57
card-repeats:: 1
card-ease-factor:: 2.6
card-next-schedule:: 2022-10-09T22:43:58.697Z
card-last-reviewed:: 2022-10-06T09:43:58.698Z
card-last-score:: 5
- A **multiset** is a set of objects, where each object can appear more than once.
- As with an ordinary set, order doesn't matter.
- **Set:** Neither order nor repetition of elements matters.
- e.g., $\{a,b,c\} = \{c,a,b\} = \{c,c,a,b,a,b,c\}$
- **Multiset:** Order does not matter, but we count the **multiplicity** (number of times it occurs) of each element.
- e.g., $\{a,b,c\} \neq \{c,c,a,b,a,b,c\}$, provided they are **multisets**.
-
- **Example:** How many **multisets** of size 4 can you form using numbers $\{1,2,3,4,5\}$?
- Let's answer this using stars & bars.
- e.g.:
- $\{1,2,3,4\} = * | ** | |*|$
- $\{5,3,3,1\} = *||**||*$
- Each multiset can be represented using 8 boxes & 4 stars.
- $$5^4 = 625$$
-
-