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,70 @@
- #[[MA284 - Discrete Mathematics]]
- **Previous Topic:** [[Counting]]
- **Next Topic:** <tba>
- **Relevant Slides:** ![Week02.pdf](../assets/Week02_1663097329077_0.pdf)
-
- (Aside) **Notation for Complement:** $A^C$ for some set $A$.
- ## Counting with Sets
- ### Additive Principle for Sets
- #### Additive Principle in terms of "events"
- If Event $A$ can occur $m$ ways, and Event $B$ can occur $n$ (disjoint / independent) ways, then event "$A$ *or* $B$" can occur in $m+n$ ways.
- But, an "event" can just be expressed as ^^selecting an element of a set.^^
- Saying "Event $A$ can occur $m$ ways" is ^^the same^^ as saying "$|A|=m$".
- Saying "Event $B$ can occur $n$ ways is the same as saying "$|B|=n$".
- If events $A$ and $B$ are **disjoint** / independent, that means that $|A \cap B| = 0$, or, equivalently , $A \cap B = \emptyset$.
-
- What is the **Additive Principle for Sets**? #card
card-last-interval:: 4
card-repeats:: 1
card-ease-factor:: 2.36
card-next-schedule:: 2022-09-18T19:24:25.898Z
card-last-reviewed:: 2022-09-14T19:24:25.898Z
card-last-score:: 3
- Given two sets $A$ and $B$ with $|A \cap B| = 0$, then:
- $$|A \cup B| = |A| + |B|$$
- ### Multiplicative Principle for Sets
- What is the **Cartesian Product** of two sets? #card
card-last-interval:: 10.24
card-repeats:: 3
card-ease-factor:: 2.56
card-next-schedule:: 2022-09-29T22:50:05.793Z
card-last-reviewed:: 2022-09-19T17:50:05.793Z
card-last-score:: 5
- The **Cartesian Product** of two sets, $A$ and $B$ is:
- $$A \times B = \{(x,y) : x \in A \text{ and } y \in B \}$$
- This is the set of pairs where the first term in each pair comes from $A$, **and** the second term in each pair comes from $B$.
- #### Multiplicative Principle in terms of "events"
- If event $A$ can occur $m$ ways, and each possibility allows for $B$ to occur in $n$ (disjoint) ways, then event "$A$ **and** $B$" can occur in $m \times n$ ways.
- What is the **Multiplicative Principle for Sets**? #card
card-last-interval:: 4
card-repeats:: 2
card-ease-factor:: 2.7
card-next-schedule:: 2022-09-23T18:34:12.562Z
card-last-reviewed:: 2022-09-19T18:34:12.563Z
card-last-score:: 5
- Given two sets, $A$ and $B$:
- $$|A \times B| = |A| \cdot |B|$$
- This extends to 3 or more sets in the obvious way.
- ## The Principle of Inclusion & Exclusion (PIE)
- What is the **Principle of Inclusion & Exclusion**? #card
card-last-interval:: 4
card-repeats:: 2
card-ease-factor:: 2.7
card-next-schedule:: 2022-09-30T12:18:17.188Z
card-last-reviewed:: 2022-09-26T12:18:17.188Z
card-last-score:: 5
- For any two finite sets $A$ and $B$:
- $$|A \cup B| = |A| + |B| - |A \cap B|$$
- This also extends to larger numbers of sets, for example:
- For any 3 finite sets $A$, $B$, and $C$:
- $$|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C |$$
- ## Subsets & Power Sets
- What is a **power set**? #card
card-last-interval:: 4
card-repeats:: 2
card-ease-factor:: 2.46
card-next-schedule:: 2022-09-23T17:49:45.527Z
card-last-reviewed:: 2022-09-19T17:49:45.527Z
card-last-score:: 5
- The **power set** of a set $A$, denoted by $P(A)$, is the ^^set of all subsets^^ of $A$, ^^including the empty set^^ ($\emptyset$).
-

View File

@ -0,0 +1,70 @@
- #[[MA284 - Discrete Mathematics]]
- **Previous Topic:** [[Counting]]
- **Next Topic:** <tba>
- **Relevant Slides:** ![Week02.pdf](../assets/Week02_1663097329077_0.pdf)
-
- (Aside) **Notation for Complement:** $A^C$ for some set $A$.
- ## Counting with Sets
- ### Additive Principle for Sets
- #### Additive Principle in terms of "events"
- If Event $A$ can occur $m$ ways, and Event $B$ can occur $n$ (disjoint / independent) ways, then event "$A$ *or* $B$" can occur in $m+n$ ways.
- But, an "event" can just be expressed as ^^selecting an element of a set.^^
- Saying "Event $A$ can occur $m$ ways" is ^^the same^^ as saying "$|A|=m$".
- Saying "Event $B$ can occur $n$ ways is the same as saying "$|B|=n$".
- If events $A$ and $B$ are **disjoint** / independent, that means that $|A \cap B| = 0$, or, equivalently , $A \cap B = \emptyset$.
-
- What is the **Additive Principle for Sets**? #card
card-last-interval:: 4
card-repeats:: 1
card-ease-factor:: 2.36
card-next-schedule:: 2022-09-18T19:24:25.898Z
card-last-reviewed:: 2022-09-14T19:24:25.898Z
card-last-score:: 3
- Given two sets $A$ and $B$ with $|A \cap B| = 0$, then:
- $$|A \cup B| = |A| + |B|$$
- ### Multiplicative Principle for Sets
- What is the **Cartesian Product** of two sets? #card
card-last-interval:: 10.24
card-repeats:: 3
card-ease-factor:: 2.56
card-next-schedule:: 2022-09-29T22:50:05.793Z
card-last-reviewed:: 2022-09-19T17:50:05.793Z
card-last-score:: 5
- The **Cartesian Product** of two sets, $A$ and $B$ is:
- $$A \times B = \{(x,y) : x \in A \text{ and } y \in B \}$$
- This is the set of pairs where the first term in each pair comes from $A$, **and** the second term in each pair comes from $B$.
- #### Multiplicative Principle in terms of "events"
- If event $A$ can occur $m$ ways, and each possibility allows for $B$ to occur in $n$ (disjoint) ways, then event "$A$ **and** $B$" can occur in $m \times n$ ways.
- What is the **Multiplicative Principle for Sets**? #card
card-last-interval:: 4
card-repeats:: 2
card-ease-factor:: 2.7
card-next-schedule:: 2022-09-23T18:34:12.562Z
card-last-reviewed:: 2022-09-19T18:34:12.563Z
card-last-score:: 5
- Given two sets, $A$ and $B$:
- $$|A \times B| = |A| \cdot |B|$$
- This extends to 3 or more sets in the obvious way.
- ## The Principle of Inclusion & Exclusion (PIE)
- What is the **Principle of Inclusion & Exclusion**? #card
card-last-interval:: 4
card-repeats:: 2
card-ease-factor:: 2.7
card-next-schedule:: 2022-09-30T12:18:17.188Z
card-last-reviewed:: 2022-09-26T12:18:17.188Z
card-last-score:: 5
- For any two finite sets $A$ and $B$:
- $$|A \cup B| = |A| + |B| - |A \cap B|$$
- This also extends to larger numbers of sets, for example:
- For any 3 finite sets $A$, $B$, and $C$:
- $$|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C |$$
- ## Subsets & Power Sets
- What is a **power set**? #card
card-last-interval:: 4
card-repeats:: 2
card-ease-factor:: 2.46
card-next-schedule:: 2022-09-23T17:49:45.527Z
card-last-reviewed:: 2022-09-19T17:49:45.527Z
card-last-score:: 5
- The **power set** of a set $A$, denoted by $P(A)$, is the ^^set of all subsets^^ of $A$, ^^including the empty set^^ ($\emptyset$).
-