Back to MATH1081返回MATH1081

MATH1081 - Final Review Notes (Local)MATH1081 Final 复习笔记(本地版)

Consistent with the site UI style. Content sourced from Notion review pages, structured and organized.与站点现有 UI 风格保持一致。内容来源于 Notion 复习页并做结构化整理。

📖 Notion Version📖 Notion 版本 (includes exam question screenshots)(含真题截图) 📄 Local Version📄 本地版本

1. 集合与区间并交

符号: $x\in A$ (属于)、$A\subseteq B$ (子集)、$A\cup B$ (并)、$A\cap B$ (交)、$\varnothing$ (空集)、$|A|$ (基数)。

连续整数的基数: $|\{a,a+1,\dots,b\}| = (b-a)+1$。

核心技巧:区分"集合的集合"与"元素的集合"

当集合 $A=\{S_1, S_2, \dots, S_{16}\}$ 时,$A$ 的元素是**集合** $S_n$ 本身,所以 $|A|=16$。而 $B=\bigcup S_n$ 是把所有 $S_n$ 的**元素**合并,计算的是元素的总数。

例题:一串相互重叠的整数区间 $S_n = \{x \in \mathbb{Z} \mid 1000-n \le x \le 1326+n\}$,其中 $n \in \{0, 1, \dots, 15\}$。

  • $A=\{S_0,\dots,S_{15}\}$,所以 $|A|=16$。
  • $B=\bigcup_{n=0}^{15} S_n$:最小下界是 $1000-15=985$,最大上界是 $1326+15=1341$。故 $|B| = (1341-985)+1=357$。(*注:数值已根据更合理的区间定义调整*)
  • $D=\bigcap_{n=0}^{15} S_n$:最大下界是 $1000-0=1000$,最小上界是 $1326+0=1326$。故 $|D| = (1326-1000)+1=327$。
  • $E$ 是"所有子集"中的空集,故 $E=\varnothing,\ |E|=0$。

2. 函数计数(从大小 m 到大小 n)

设定义域 $A$,$|A|=m$;陪域 $B$,$|B|=n$。

  • 所有函数 $f: A \to B$: $n^m$。
  • 单射 (Injective / one-to-one): 条件 m <= n,计数 $P(n,m)=\dfrac{n!}{(n-m)!}$。
  • 满射 (Surjective / onto): 条件 m >= n。若不满足,计数为 0。若满足,用容斥原理计数。
  • 双射 (Bijective): 条件 m = n,计数 m!。

例题:从 $A=\{1,2,3\}$ ($m=3$) 到 $B=\{a,b,c,d\}$ ($n=4$) 的函数。

  • 所有函数: $4^3=64$。每个 $A$ 中元素可映到 $B$ 中4个不同元素。
  • 单射: $m=3 \le n=4$,存在。$P(4,3) = \frac{4!}{1!} = 24$。
  • 满射: $m=3 < n=4$,不存在,计数为0。
  • 双射: $m\ne n$,不存在,计数为0。

3. 英文句式 → 逻辑式

核心等价: $A\to B \equiv \neg A\lor B$。这是所有逻辑翻译的基石。

否定 (Negation): $\neg(A\to B) \equiv A \land \neg B$ (箭头变AND,后面取反)。

分组与推导:

英文句式逻辑式推导
if P, then Q
P only if Q
Q if P
$P\to Q$标准蕴含
if Q, then P
P or not Q
$Q\to P$$Q\to P \equiv \neg Q \lor P$
if not Q, then P
P or Q
$P\lor Q$$\neg Q\to P \equiv \neg(\neg Q)\lor P \equiv Q\lor P$
P and not Q$P\land\neg Q$直接翻译,是 $P\to Q$ 的否定

4. 对称差命题分析

定义: $X = A \cap B$, $Y = A \cup C$, $Z = A \oplus B = (A\cup B)\setminus(A\cap B)$。

恒真命题证明:

  • 证明 $X\subseteq Y$: 对任意 $x\in X$,由定义 $x\in A\cap B$,故 $x\in A$。因为 $Y=A\cup C$,所以 $x\in Y$。证毕。
  • 证明 $X\cap Z=\varnothing$: $X$ 的元素必须同时在 $A$ 和 $B$ 中。$Z$ 的元素必须在 $A$ 或 $B$ 但不同时在。这两个条件互斥,所以交集为空。

常见陷阱与反例:

命题 $Y\subseteq X\cup Z$ 不总为真。反例:$A=\{1\},B=\{2\},C=\{3\}$。此时 $Y=\{1,3\}$,而 $X=\varnothing, Z=\{1,2\}$,故 $X\cup Z=\{1,2\}$。显然 $\{1,3\} \not\subseteq \{1,2\}$。

5. 解题策略

两大核心策略:

  • 举例验证法 (Proof by Example):
    • 何时用:快速排除错误选项,建立直觉。
    • 方法:取最小最简单的集合,如 $A=\{1\}, B=\{2\}, C=\{3\}$。
    • 注意:举例成功不等于恒真,可能只是特例。
  • 形式化证明/反例法 (Formal Proof/Counterexample):
    • 何时用:需要 100% 确定命题恒真或恒假时。
    • 方法:用集合定义和运算法则推导,或构造一个使其不成立的反例。
    • 技巧:如果形式化证明走不通,很可能命题是假的,应立刻转向构造反例。

6. Floor 函数与反例构造

定义: $\lfloor x \rfloor$ 是小于等于 $x$ 的最大整数。

核心性质:

  • $\lfloor x \rfloor \le x < \lfloor x \rfloor + 1$
  • $\lfloor x + n \rfloor = \lfloor x \rfloor + n$,其中 $n \in \mathbb{Z}$
  • $\lfloor x \rfloor + \lfloor y \rfloor \le \lfloor x + y \rfloor \le \lfloor x \rfloor + \lfloor y \rfloor + 1$
  • $\lfloor x \rfloor \cdot \lfloor y \rfloor \le \lfloor xy \rfloor$(但不一定相等)

例题:判定以下命题的真假:

  • $\lfloor \sqrt{x} \rfloor^2 \le x$ 恒真?
    • 设 $\lfloor \sqrt{x} \rfloor = k$,则 $k \le \sqrt{x} < k+1$
    • 两边平方:$k^2 \le x < (k+1)^2$,所以 $k^2 \le x$ 恒真。
  • $\lfloor x^2 \rfloor = \lfloor x \rfloor^2$ 恒真?
    • 反例:$x = 1.5$,$\lfloor x^2 \rfloor = \lfloor 2.25 \rfloor = 2$,$\lfloor x \rfloor^2 = 1^2 = 1$,$2 \ne 1$。
    • 所以命题为假。

7. 线性同余方程

标准形式: $ax \equiv b \pmod{m}$,求整数解 $x$。

解的存在性: 设 $d = \gcd(a, m)$。

  • 若 $d \mid b$,则方程有 $d$ 个模 $m$ 不同余的解。
  • 若 $d \nmid b$,则方程无解。

求解步骤:

  1. 计算 $d = \gcd(a, m)$,检验 $d \mid b$。
  2. 用扩展欧几里得算法求 $a'x' + m'y' = d$ 的一组解 $(x', y')$。
  3. 特解 $x_0 = x' \cdot \frac{b}{d}$。
  4. 通解:$x \equiv x_0 + k \cdot \frac{m}{d} \pmod{m}$,$k = 0, 1, \dots, d-1$。

例题:解 $6x \equiv 4 \pmod{10}$。

  • $d = \gcd(6, 10) = 2$,$2 \mid 4$,所以有 2 个解。
  • 化简:$3x \equiv 2 \pmod{5}$。
  • 用扩展欧几里得:$3 \cdot 2 + 5 \cdot (-1) = 1$,乘以 2 得 $3 \cdot 4 + 5 \cdot (-2) = 2$。
  • 特解 $x_0 = 4$。
  • 通解:$x \equiv 4, 9 \pmod{10}$。

8. 偏序集 (Posets)

定义: 偏序集 $(P, \preceq)$ 是一个集合 $P$ 配备一个满足以下性质的二元关系:

  • 自反性 (Reflexive): $a \preceq a$
  • 反对称性 (Antisymmetric): 若 $a \preceq b$ 且 $b \preceq a$,则 $a = b$
  • 传递性 (Transitive): 若 $a \preceq b$ 且 $b \preceq c$,则 $a \preceq c$

重要概念:

  • 极大元 (Maximal): 不存在 $b$ 使得 $a \prec b$
  • 极小元 (Minimal): 不存在 $b$ 使得 $b \prec a$
  • 全序子集 (Chain): 子集中任意两元素可比较
  • 反链 (Antichain): 子集中任意两元素不可比较

例题:给定 Hasse 图,找出极大元、极小元和最长全序子集。

  • 极大元: 图中"最顶部"的元素(没有元素在它之上)
  • 极小元: 图中"最底部"的元素(没有元素在它之下)
  • 最长全序子集: 从最低到最高的一条最长路径

9. Wordle 与排列组合

Wordle 规则简化版:

  • 5 个字母的单词,6 次猜测机会
  • 绿色 = 字母位置正确
  • 黄色 = 字母存在但位置错误
  • 灰色 = 字母不存在

排列组合计算:

  • 可重排列: $n^r$($r$ 个位置,每个位置 $n$ 种选择)
  • 不可重排列: $P(n,r) = \frac{n!}{(n-r)!}$
  • 有重复元素的排列: $\frac{n!}{n_1! n_2! \cdots n_k!}$

例题:如果已知答案是 S_ORE(第二个字母未知),有多少种可能?

  • 设 S_ORE 中 _ 可以是任意字母(26 种)
  • 如果题目给出额外限制(如已排除某些字母),则减去被排除的字母数
  • 例如已排除 A, E, I, O, U(5 个),则剩余 $26 - 5 = 21$ 种可能

10. 图论与桥 (Bridges)

桥的定义: 在连通图 $G$ 中,边 $e$ 是当且仅当删除 $e$ 后图不再连通。

等价条件: 以下条件等价:

  • $e$ 是桥
  • $e$ 不在任何简单回路中
  • $e$ 不在任何回路中
  • 删除 $e$ 后连通分量数增加

判定算法(DFS):

  • 对每条边 $(u, v)$,检查是否存在从 $u$ 到 $v$ 的不经过 $(u, v)$ 的路径
  • 使用 DFS 或 BFS 验证删除该边后两端是否仍连通

例题:给定图,找出所有的桥。

  • 方法 1(直观): 找出"关键边"——删除后图会分成两部分
  • 方法 2(回路): 找出所有回路,不在任何回路中的边就是桥
  • 例子: 在树中,每条边都是桥(因为树无回路)
  • 例子: 在完全图 $K_n$ ($n \ge 3$) 中,没有桥(每条边都在某个三角形中)

1. Sets & Interval Union/Intersection

Notation: $x\in A$ (belongs to), $A\subseteq B$ (subset), $A\cup B$ (union), $A\cap B$ (intersection), $\varnothing$ (empty set), $|A|$ (cardinality).

Cardinality of consecutive integers: $|\{a,a+1,\dots,b\}| = (b-a)+1$.

Key Technique: Distinguish "set of sets" from "set of elements"

When set $A=\{S_1, S_2, \dots, S_{16}\}$, the elements of $A$ are the **sets** $S_n$ themselves, so $|A|=16$. Meanwhile $B=\bigcup S_n$ merges all **elements** of each $S_n$, computing the total number of elements.

Example: A sequence of overlapping integer intervals $S_n = \{x \in \mathbb{Z} \mid 1000-n \le x \le 1326+n\}$, where $n \in \{0, 1, \dots, 15\}$.

  • $A=\{S_0,\dots,S_{15}\}$, so $|A|=16$.
  • $B=\bigcup_{n=0}^{15} S_n$: smallest lower bound is $1000-15=985$, largest upper bound is $1326+15=1341$. Thus $|B| = (1341-985)+1=357$. (*Note: values adjusted for a more reasonable interval definition*)
  • $D=\bigcap_{n=0}^{15} S_n$: largest lower bound is $1000-0=1000$, smallest upper bound is $1326+0=1326$. Thus $|D| = (1326-1000)+1=327$.
  • $E$ is the empty set among "all subsets", so $E=\varnothing,\ |E|=0$.

2. Function Counting (from size m to size n)

Let domain $A$, $|A|=m$; codomain $B$, $|B|=n$.

  • All functions $f: A \to B$: $n^m$.
  • Injective (one-to-one): Condition m <= n, count $P(n,m)=\dfrac{n!}{(n-m)!}$.
  • Surjective (onto): Condition m >= n. If not satisfied, count is 0. If satisfied, use inclusion-exclusion to count.
  • Bijective: Condition m = n, count m!.

Example: Functions from $A=\{1,2,3\}$ ($m=3$) to $B=\{a,b,c,d\}$ ($n=4$).

  • All functions: $4^3=64$. Each element of $A$ can map to 4 different elements of $B$.
  • Injective: $m=3 \le n=4$, exists. $P(4,3) = \frac{4!}{1!} = 24$.
  • Surjective: $m=3 < n=4$, does not exist, count is 0.
  • Bijective: $m\ne n$, does not exist, count is 0.

3. English Phrases → Logical Expressions

Core equivalence: $A\to B \equiv \neg A\lor B$. This is the cornerstone of all logical translations.

Negation: $\neg(A\to B) \equiv A \land \neg B$ (arrow becomes AND, negate the consequent).

Grouping & Derivation:

English PhraseLogical FormDerivation
if P, then Q
P only if Q
Q if P
$P\to Q$Standard implication
if Q, then P
P or not Q
$Q\to P$$Q\to P \equiv \neg Q \lor P$
if not Q, then P
P or Q
$P\lor Q$$\neg Q\to P \equiv \neg(\neg Q)\lor P \equiv Q\lor P$
P and not Q$P\land\neg Q$Direct translation; negation of $P\to Q$

4. Symmetric Difference Proposition Analysis

Definitions: $X = A \cap B$, $Y = A \cup C$, $Z = A \oplus B = (A\cup B)\setminus(A\cap B)$.

Proving always-true propositions:

  • Prove $X\subseteq Y$: For any $x\in X$, by definition $x\in A\cap B$, so $x\in A$. Since $Y=A\cup C$, we have $x\in Y$. QED.
  • Prove $X\cap Z=\varnothing$: Elements of $X$ must be in both $A$ and $B$. Elements of $Z$ must be in $A$ or $B$ but not both. These conditions are mutually exclusive, so the intersection is empty.

Common Pitfalls & Counterexamples:

The proposition $Y\subseteq X\cup Z$ is not always true. Counterexample: $A=\{1\},B=\{2\},C=\{3\}$. Then $Y=\{1,3\}$, while $X=\varnothing, Z=\{1,2\}$, so $X\cup Z=\{1,2\}$. Clearly $\{1,3\} \not\subseteq \{1,2\}$.

5. Problem-Solving Strategies

Two Core Strategies:

  • Verification by Example:
    • When to use: Quickly eliminate wrong options, build intuition.
    • Method: Pick the smallest, simplest sets, e.g. $A=\{1\}, B=\{2\}, C=\{3\}$.
    • Caution: A successful example does not prove it is always true; it may just be a special case.
  • Formal Proof / Counterexample Method:
    • When to use: When you need 100% certainty that a proposition is always true or always false.
    • Method: Derive using set definitions and operation rules, or construct a counterexample that disproves it.
    • Tip: If a formal proof gets stuck, the proposition is likely false — immediately switch to constructing a counterexample.

6. Floor Function & Counterexamples

Definition: $\lfloor x \rfloor$ is the greatest integer less than or equal to $x$.

Key Properties:

  • $\lfloor x \rfloor \le x < \lfloor x \rfloor + 1$
  • $\lfloor x + n \rfloor = \lfloor x \rfloor + n$, where $n \in \mathbb{Z}$
  • $\lfloor x \rfloor + \lfloor y \rfloor \le \lfloor x + y \rfloor \le \lfloor x \rfloor + \lfloor y \rfloor + 1$
  • $\lfloor x \rfloor \cdot \lfloor y \rfloor \le \lfloor xy \rfloor$ (but not always equal)

Example: Determine if the following are always true:

  • Is $\lfloor \sqrt{x} \rfloor^2 \le x$ always true?
    • Let $\lfloor \sqrt{x} \rfloor = k$, then $k \le \sqrt{x} < k+1$
    • Squaring both sides: $k^2 \le x < (k+1)^2$, so $k^2 \le x$ is always true.
  • Is $\lfloor x^2 \rfloor = \lfloor x \rfloor^2$ always true?
    • Counterexample: $x = 1.5$, $\lfloor x^2 \rfloor = \lfloor 2.25 \rfloor = 2$, $\lfloor x \rfloor^2 = 1^2 = 1$, $2 \ne 1$.
    • So the statement is false.

7. Linear Congruence Equations

Standard Form: $ax \equiv b \pmod{m}$, find integer solutions for $x$.

Existence of Solutions: Let $d = \gcd(a, m)$.

  • If $d \mid b$, the equation has $d$ incongruent solutions modulo $m$.
  • If $d \nmid b$, the equation has no solution.

Solving Steps:

  1. Compute $d = \gcd(a, m)$, check if $d \mid b$.
  2. Use Extended Euclidean Algorithm to find $(x', y')$ such that $a'x' + m'y' = d$.
  3. Particular solution: $x_0 = x' \cdot \frac{b}{d}$.
  4. General solution: $x \equiv x_0 + k \cdot \frac{m}{d} \pmod{m}$, $k = 0, 1, \dots, d-1$.

Example: Solve $6x \equiv 4 \pmod{10}$.

  • $d = \gcd(6, 10) = 2$, $2 \mid 4$, so there are 2 solutions.
  • Simplify: $3x \equiv 2 \pmod{5}$.
  • Using Extended Euclidean: $3 \cdot 2 + 5 \cdot (-1) = 1$, multiply by 2: $3 \cdot 4 + 5 \cdot (-2) = 2$.
  • Particular solution: $x_0 = 4$.
  • General solution: $x \equiv 4, 9 \pmod{10}$.

8. Posets (Partially Ordered Sets)

Definition: A poset $(P, \preceq)$ is a set $P$ equipped with a binary relation satisfying:

  • Reflexive: $a \preceq a$
  • Antisymmetric: If $a \preceq b$ and $b \preceq a$, then $a = b$
  • Transitive: If $a \preceq b$ and $b \preceq c$, then $a \preceq c$

Key Concepts:

  • Maximal Element: No $b$ exists such that $a \prec b$
  • Minimal Element: No $b$ exists such that $b \prec a$
  • Chain: A subset where any two elements are comparable
  • Antichain: A subset where no two elements are comparable

Example: Given a Hasse diagram, find maximal elements, minimal elements, and longest chain.

  • Maximal elements: Elements at the "top" of the diagram (nothing above them)
  • Minimal elements: Elements at the "bottom" of the diagram (nothing below them)
  • Longest chain: A longest path from bottom to top

9. Wordle & Permutations

Simplified Wordle Rules:

  • 5-letter word, 6 guesses allowed
  • Green = correct letter in correct position
  • Yellow = letter exists but wrong position
  • Gray = letter not in word

Permutation & Combination Formulas:

  • Permutation with repetition: $n^r$ ($r$ positions, $n$ choices each)
  • Permutation without repetition: $P(n,r) = \frac{n!}{(n-r)!}$
  • Permutation with identical items: $\frac{n!}{n_1! n_2! \cdots n_k!}$

Example: If the answer is known to be S_ORE (second letter unknown), how many possibilities?

  • Let _ be any letter (26 possibilities)
  • If additional constraints given (e.g., certain letters eliminated), subtract those
  • E.g., if A, E, I, O, U are eliminated (5 letters), remaining = $26 - 5 = 21$ possibilities

10. Graph Theory & Bridges

Bridge Definition: In a connected graph $G$, an edge $e$ is a bridge iff removing $e$ disconnects the graph.

Equivalent Conditions: The following are equivalent:

  • $e$ is a bridge
  • $e$ is not in any simple cycle
  • $e$ is not in any cycle
  • Removing $e$ increases the number of connected components

Detection Algorithm (DFS):

  • For each edge $(u, v)$, check if there exists a path from $u$ to $v$ not using $(u, v)$
  • Use DFS or BFS to verify if endpoints remain connected after removing the edge

Example: Given a graph, find all bridges.

  • Method 1 (Intuitive): Find "critical edges" — removing them splits the graph into two parts
  • Method 2 (Cycle-based): Find all cycles; edges not in any cycle are bridges
  • Example: In a tree, every edge is a bridge (trees have no cycles)
  • Example: In complete graph $K_n$ ($n \ge 3$), there are no bridges (every edge is in some triangle)