离散数学——Graph

Path and Degree

image

In a relation on set A, if there is a path between two nodes, then the path must have length \(l <= n-1\)

Handshaking theorem

image

The sum of all vertices' degree is an even number, therefore, the number of vertices with odd degree must be even

we use \(deg^-\) to represent in-degree, and \(deg^+\) to represent out-degree

image

Special graphs

We have the following special graphs

  1. Complete graph \(K_n\): there is exactly one edge between every two vertices
  2. Cycle \(C_n\): S = \(\{(v_1, v_2), (v_2, v_3), ... , (v_n, v_1)\}\)
  3. Wheel graph \(W_n\): put one more vertex in the center of a cycle. Caution: A \(W_n\) contains \(n+1\) vertices
  4. hypercube \(Q_n\): has \(2^n\) vertices, and all the vertices together they represent all bit strings of length \(n\), and every vertex has a different bit string. If two vertices' bit strings only differ in 1 bit, then they are adjacent in \(Q_n\), otherwise no

Bipartite graph

definition of bipartite graph

image

we can use only two color to paint bipartite graph

definition of complete bipartite graph

image

Matching

definition

image

definition of maximum matching and complete matching

image

We use Hall's Marriage Theorem to confirm a complete matching

image

Operations on graph

image

image

Representation of graph

image

image

image

Isomorphism

image

We can tell if two graphs are not isomorphic easily by finding special vertices

Existed cycles and path length won't vary in isomorphic graphs

Connected Components

definition

image

definition of strongly connected components and weakly connected components

image

Cut vertices and cut edges

image

Counting paths

we can use multiplication of adjacency matrix to find path

image

image

special circuits and special path

Euler circuits and Euler path

definition

image

Test of Euler circuit and Euler path

Euler circuit: every vertex must have even degree

Euler path: exactly two vertices have odd degree

Hamilton circuits and Hamilton path

definition

image

condition of Hamilton circuits

image

Single source shortest path

Dijkstra's Algorithm

Planar Graph

definition

image

test of planar graph

image
image
image

Region

image

degree of a region
image

Graph coloring

definition
image

image

Four Color Theorem

image

Tree

definition

definition of tree

image

definition of rooted tree

image

definition of level and height
image

Theorem

image

image

image

Minimum Spanning Tree

Prim's Algorithm and Kruscal's Algorithm

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