小马的世界

【离散数学】笔记-台湾清华赵启超10A10B Enumeration

2021-07-30 · 4 min read
离散数学 数学

这是台湾清华赵启超教授离散数学10A10B课程的笔记。

Enumeration 10A

Multinomail Theorem

Example 1
How many wats can we permute the word "MISSISSIPPI"?
There are 4 I's, 4 S's, 2 P's, 1M.
number of ways=11!4!4!2!1!=\frac{11!}{4!4!2!1!}

The number of distinguishable arrangements of nn objects, in which there are nn objects of type1, n2n_2 objects of types 2,...,nkn_k objects of type kk.
where n1+n2nk=nn_1+n_2\dotsc n_k=n

(nn1,n2,,nk)=n!n1!n2!nk!\begin{pmatrix}n \\ n_1,n_2,\dotsc ,n_k\end{pmatrix}=\frac{n!}{n_1!n_2!\dotsc n_k!}

Theorem: (x1+x2++xk)n=n1+n2++nk=n(nn1,n2,,nk)x1n1x2n2xknk(x_1+x_2+\dotsc + x_k)^n=\sum_{n_1+n_2+\dotsc +n_k=n} \begin{pmatrix}n \\ n_1,n_2,\dotsc ,n_k\end{pmatrix}x_1^{n_1}x_2^{n_2}\dotsc x_k^{n_k}

Unordered Selections with Repetition

The number of unordered selections, repetition allowed,
of mm things from a set of size nn is (n+m1m)\begin{pmatrix}n+m-1 \\ m\end{pmatrix}

Enumeration 10A

Principle of Inclusion and Exclusion

Two sets' Principle of Inclusion and Exclusion AB=A+BAB|A\cup B|=|A|+|B|-|A\cap B|
Three sets' Principle of Inclusion and Exclusion ABC=A+B+CABBCAC+ABC|A\cup B\cup C|=|A|+|B|+|C|-|A\cap B|-|B\cap C|-|A\cap C|+|A\cap B\cap C|
ABC=α1α2,α3|A\cup B\cup C|=\alpha _1-\alpha _2, \alpha _3
where α1=A+B+C,α2=ABBCAC,α3=ABC\alpha _1=|A|+|B|+|C|,\alpha _2=|A\cap B|-|B\cap C|-|A\cap C|, \alpha _3=|A\cap B\cap C|

Theorem: If A1,A2,,AnA_1,A_2,\dotsc ,A_n are finite sets,
then

A1A2An=α1α2+α3+(1)n1αn|A_1\cup A_2\cup \dotsc \cup A_n|=\alpha _1-\alpha _2 +\alpha _3 - \dotsc +(-1)^{n-1}\alpha _n

where αi\alpha _i is the sum of the cardinaltities of the intersections of the sets taken ii at a time, 1in1\le i \le n