APS 非重点复习课程之离散数学
Logic and Reasoning
details in Introduction to AI.
Modern Algebra
Magma
magma 代数系统
Binary operation assume S is a set mapping f: is a dyadic operation on S.
dyadic operation 二元运算:
The result of the dyadic operation is still belong to S.
Every element in S can participate in the dyadic operation and get a unique result.
e.g. In the natural number set N addition and multiplication are binary operators on N, but subtraction and division are not.
Quasigroup
准群
assume G is a nonempty set and is the dyadic operation on the G, then is called multiplication. If the following condition is true, we call G is a quasigroup about binary operation multiplication .
, equation and have solutions in G.
Semigroup
半群
assume G is a nonempty set and is the dyadic operation on the G, is called multiplication. If the following condition is true, we call G is a semigroup about dyadic operation multiplication .
, . (associative law)
Monoid
幺半群
Suppose that S is a set and is some dyadic operation in S, then S with is a monoid if it satisfies the following two axioms
- Associativity for all a, b and c in S, the equation holds.
- Identity element. there exists an element e in S such that for every element a in S, equation hold.
Group
群
A group is a set, G, together with an operation that combines any two elements a and b to form another element, denoted or . To qualify as a group, the set and operation, , must satisfy 4 requirements known as the group axioms 群公理
- Closure for all a, b in G, the result of the operation , is also in G.
- Associativity. for all a, b and c in G, .
- Identity element. there exists an element e in S such that for every element a in S, equation hold.
- Inverse element. for each a in G, there exists an element b in G, commonly denoted or , s.t. , where e is the identity element.
Ring
A ring is a set R equipped with 2 binary operations and , satisfying the following 3 sets of axioms, called the ring axioms.
- R is an abelian group(阿贝尔群) under addition. i.e.
- associative
- commutative 交换律
- there is an element 0 in R s.t. for all a in R (0 is additive identity)
- for each a in R there exists -a in R s.t. (-a is the additive inverse of a) 加法逆元
- R is a monoid under multiplication.
- associative
- multiplicative identity
- Multiplication is distributive with respect to addition.
- left distributivity
- right distributivity
Set Theory
Set
Difference Set 差集
Symmetry difference 对称差
De Morgen’s Law
The principle of capacitive repulsion. 容斥原理
Map
Injective: x1!=x2, f(x1)!=f(x2) 单射
surjective: every y has a x from X that points to it. 满射
bijection: injective + surjective. 双射
Graph Theory
Undirect Graph 无向图
Direct Graph 有向图
Euler Graph
Has Euler Circle.
Undirect: degree of vertices is even number.
Direct: Input degree=Output Degree
能“一笔画”的图
Hamiltonian Graph
Has a Hamiltonian Circle
能“一笔画”且回到原点的图
Minimum Spanning Tree
Kruskal algorithm
Prim algorithm
details in Introduction to algorithm