离散数学第1章 Introduction and basic concepts
Numbers and sets
Notation
N,Z,R,Q.
closed interval [a,b]
open interval (a,b)
Set Size |X|
Operations with sets
- Cartesian product: AXB={(x,y): x ∈ X, y ∈ Y}.
- A\B={(x,y): x ∈ X, y !∈ Y}.
Function
tips1: (g◦f)(x) = g(f(x))
tips2: Important special types of functions
- Injective 每个y最多有1个x对应;
- surjective 每个y最少有1个x对应;
- Bijective 一一对应
Relations
关系的定义:从集合A到集合B的一个关系R是AXB的一个子集。若(a,b)∈ R,记作aRb。
自反性:在集合上的关系R,如对任意x∈ X,有(x,x)∈ R,则称R是自反的。
对称性:在集合上的关系R,如果有(x,y)∈ R,必有(y,x)∈R,则称R是对称的。