参考书目:Peter Linz, An Introduction to Formal Languages and Automata (6th Editon) 2016
Introduce to The Theory of Computation
Set
Powerset | 幂集
Example 1.1
If S is the set {a,b,c}, then its powerset is
2S={∅,{a},{b},{c},{a,b},{a,c},{b,c},{a,b,c}}
Here ∣S∣=3 and ∣2S∣=8. This is an instance of a general result; if S is finite, then
∣2S∣=2∣S∣
Cartesian Product | 笛卡尔积
For the Cartesian product of two sets, which itself is a set of ordered pairs, we write
S=S1×S2={(x,y):x∈S1,y∈S2}
Partition | 分隔
A set can be divided by separating it into a number of subsets. Suppose that S1,S2,…,Sn are subsets of a given set S and that the following holds:
- The subsets S1,S2,…,Sn are mutually disjoint;
- S1∪S2∪…∪Sn=S;
- none of the Si is empty.
Then S1,S2,…,Sn is called a partition of S.
Relation
Equivalence Relation
A relation denoted by R is considered an equivalence if it satisfies three rules
- the reflexivity rule|反身性
xRx for all x;
- the symmetry rule |对称性
if xRy, then yRx;
- the transitivity rule|传递性
if xRy and yRz, then xRz