Discrete-math 21

Discrete-math 21

Graph #definition

Graph is a set of points and linesGraph is an ordered pair of set of vertices and set of edgesG=(V,E)E{{v,u}|v,uV,vu}E is a set of unordered pairs of distinct verticesIn this case, G is a simple undirected graph

Adjacency #definition

Vertices u,vV are called adjacent if they have a common edge(if they are connected by some edge eE)e is then called incident on u,v
What is the max number of edges in a simple graph with n vertices(n2)=n!(n2)!2!=n(n1)2What is the number of simple graphs with n vectices?2(n2)=2n(n1)/2
Let G=(V,E),vV

Neighborhood of a vertex and of a set of vertices #definition

Neighborhood of vertice v is a set of vertices which are adjacent to vΓ(v)={uV|{u,v}E}Let SVNeighborhood of set of vertices S is a set of verticeswhich are adjacent to at least one of vertices in SΓ(S)={uV|vS:{u,v}E}

Degree of vertex #definition

Degree of vertice v is a size of neighborhood of vdeg(v)=|Γ(v)|

Hand-shaking lemma for graphs #lemma

Let G=(V,E) be a simple graphThen vVdeg(v)=2|E|Proof:Each edge is counted twice in vVdeg(v)Each edge is counted twice in 2|E|vVdeg(v)=2|E|

Corollary of this lemma

In any simple graph, number of vertices with odd degree is evenProof:Let ODD={vV|deg(v) is odd}Let EVEN={vV|deg(v) is even}ODDEVEN=V,ODDEVEN=Let |ODD| be oddThen 2|E|=vVdeg(v)=vODDdeg(v)+vEVENdeg(v)Sum of odd number of odd numbers is oddSum of even numbers is evenvODDdeg(v) is oddvEVENdeg(v) is evenvODDdeg(v)+vEVENdeg(v)=vVdeg(v)| is odd2|E| is oddContradiction!|ODD| is even

Equal degree vertices #lemma

In each simple graph G=(V,E)with at least 2 vertices there are two vertices uvV:deg(u)=deg(v)Proof:Case 1. There is a vertex v:deg(v)=n1Then there is no vertex u:deg(u)=0Possible degrees are from 1 to n1The number of vertices is n, the number of different degrees is n1By the pigeonhole principle there is at least two vertices with the same degreeCase 2. There is no vertex v:deg(v)=n1Possible degrees are from 0 to n2The number of vertices is n, the number of different degrees is n1By the pigeonhole principle there is at least two vertices with the same degree

Paths #definition

Let G=(V,E)Path is a sequence of vertices (v1,v2,,vk+1) such that i[1,k]:{vi,vi+1}EPath is called simple if no vertices appear in the path more than onceLength of the path (v1,v2,,vk+1) is the number of edges in this path, which is k

Cycle #definition

Path (v1,v2,,vk+1) is called a cycle if v1=vk+1Cycle is called simple if no vertices except v1,vk+1 appear in the cycle more than once

Distance #definition

Let v,uVDistance from v to u is the length of the shortest path from v to ud(v,u)If there is no path between vertices v,uV then d(v,u)=

Diameter of graph #definition

Diameter of graph G=(V,E)is a minimal distance between two distinct vertices of the graphdiam(G)=maxu,vV(d(v,u))

Diameter of "tight" graph #lemma

Let G=(V,E) be a simple graph such that,vV:deg(v)n12Then diam(G)2Proof:Let v,uVCase 1. v=ud(v,u)=0d(v,u)2Case 2. {v,u}Ed(v,u)=1d(v,u)2Case 3. Γ(v)Γ(u)wV:wΓ(v)Γ(u){w,v},{w,u}E(v,w,u) is a pathd(v,u)2Case 4. Γ(v)Γ(u)=uΓ(v),uΓ(u)vΓ(u),vΓ(v)n=|V||Γ(v)|n12+|{v}|+|Γ(u)|n12+|{u}|(n1)+2=n+1nn+1Contradiction!v,uV:d(v,u)2diam(G)2