离散数学——Cryptography, Counting, Relation

Cryptography

RSA

The steps are

image

It correctness is proved by

image

Counting

Generalized Pigeon Hole Theorem

image

The Bijection Theorem

image

Inclusion-Exclusion Principle

image

Pascal Identity

image

Binomial Theorem

image

Generating function

A sequence {\(a_n\)} is like \(a_0, a_1, ... , a_n\)

The generating function of {\(a_n\)} is \(G(x) = a_0 + a_1x + a_2x + ... + a_nx^{n}\)

It has the following properties

image

We can use generating function in counting problem like

image

Relation

Binary relation

Binary relation from A to B is a subset of Cartesian product of A and B

A relation on A is relation from A to A

we can classify relation on one set to the followings

  1. reflexive

The number of reflexive relations on a set A with \(|A| = n\) is \(2^{n(n−1)}\)

  1. irreflexive

  2. symmetric

  3. antisymmetric

  4. transitive

  5. equivalence relation = reflexive + symmetric + transitive

  6. partial ordering = reflexive + antisymmetric + transitive

We can define composite of relation, and also define power of relation

We can use this theorem to tell if a relation if transitive

image

\(R^n\) will link every "vertex" that has a "path" between them

Closure

The closure of a relation R with respect to property P is the minimum set S, that \(R \subseteq S\), and S has the property P

The transitive closure of a relation R is \(R*\), called the connectivity relation

image

Equivalence class

image

image

image

Poset

partial ordering = reflexive + antisymmetric + transitive

a set with a partial ordering R is called a poset

In a set S with a partial ordering R, a and b are two elements in S. If aRb or bRa exists, then we say a and b are comparable, otherwise incomparable

If every two elements in S are comparable, we say S is totally ordered

image

Hasse Diagram

Hasse Diagram: a diagram to represent a poset, but remove all the edges that must be present because of reflexive relation and transitive relation

image

image

image

Definition of well-ordered set

image

Definition of lattice

image

posted @ 2022-01-13 00:42  wcvanvan  阅读(40)  评论(0)    收藏  举报