Ds 9 Graph Intro
Ds 9 Graph Intro
Chapter 8
An Khuong, Le Hong
Trang
Introduction to Graphs
Discrete Structures for Computing on August 16, 2021
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
1 Graph definitions
Terminology
Special Graphs
Contents
Exercise
Graph Isomorphism
3 Exercise
Graph Graph
Bipartie graph
Isomorphism
8.2
Course outcomes Introduction to Graphs
L.O.2 Represent and model practical problems with discrete structures Contents
L.O.2.1 Logically describe some problems arising in Computing Graph definitions
L.O.2.2 Use proving methods: direct, contrapositive, induction Terminology
Special Graphs
Graph Isomorphism
8.3
Motivations Introduction to Graphs
•
Special Graphs
Exercise
connected to other things. Graph
Bipartie graph
a graph.
8.4
Graph Introduction to Graphs
Definition
A graph (ç thà ) G is a pair of (V, E ), which are:
Representing Graphs
and Graph
2 4 2 4 Isomorphism
Representing Graphs
Graph Isomorphism
1 3 Exercise
1 3
Graph
Bipartie graph
8.5
Undirected Graph (ç thà væ h÷îng) Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.6
Undirected Graph Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.7
Undirected Graph Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.8
Directed Graph Introduction to Graphs
A directed edge start at u and end at v is denoted as (u, v). Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.9
Terminologies For Undirected Graph Introduction to Graphs
Neighborhood
In an undirected graph G = (V, E),
• two vertices u and v ∈ V are called adjacent (li·n k· ) if they
are end-points (iºm ¦u mót ) of edge e ∈ E , and
e is incident with (c¤nh li¶n thuëc ) u and v
Contents
•
Graph definitions
• e is said to connect (c¤nh nèi ) u and v ; Terminology
Special Graphs
Representing Graphs
and Graph
The degree of a vertex Isomorphism
Exercise
the number of edges incident with it, except that a loop
Graph
Isomorphism
8.10
Example Introduction to Graphs
Contents
Graph definitions
Terminology
a f e g e d Special Graphs
Representing Graphs
G H and Graph
Isomorphism
Representing Graphs
Solution
Graph Isomorphism
Exercise
In G, deg(a) = 2, deg(b) = deg(c) = deg(f ) = 4, deg(d) = 1, . . . Graph
Bipartie graph
Special Graphs
(Note that this applies even if multiple edges and loops are Representing Graphs
and Graph
present.) Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.12
Basic Theorems Introduction to Graphs
Special Graphs
(Note that this applies even if multiple edges and loops are Representing Graphs
and Graph
present.) Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Theorem Graph
Bipartie graph
8.12
Prove that ... Introduction to Graphs
...
If the number of vertices in an undirected graph is an odd number,
then there exists an even-degree vertex.
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.13
Prove that ... Introduction to Graphs
...
If the number of vertices in an undirected graph is an odd number,
then there exists an even-degree vertex.
Contents
Graph definitions
... Terminology
Special Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.13
Prove that ... Introduction to Graphs
...
If the number of vertices in an undirected graph is an odd number,
then there exists an even-degree vertex.
Contents
Graph definitions
... Terminology
Special Graphs
Exercise
If the number of vertices in an undirected graph is an even Graph
Isomorphism
8.13
Terminologies for Directed Graph Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.14
Terminologies for Directed Graph Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
The degree of a vertex Isomorphism
Representing Graphs
•
the number of edges with v as their initial vertex.
8.14
Basic Theorem Introduction to Graphs
Theorem
Contents
Let G = (V, E) be a graph with directed edges. Then Graph definitions
Terminology
Representing Graphs
v∈V v∈V and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.15
Complete Graphs Introduction to Graphs
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
K5 K4
8.16
Cycles Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
C5 C4
8.17
Wheels Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
W5 W4
8.18
n-cube
Introduction to Graphs
Contents
110 111
Graph definitions
Terminology
Representing Graphs
and Graph
Isomorphism
010 011 Representing Graphs
0 1 Graph Isomorphism
Exercise
Graph
Isomorphism
Q1 Q2 Q3
8.19
n-cube
Introduction to Graphs
Contents
110 111
Graph definitions
Terminology
Representing Graphs
and Graph
Isomorphism
010 011 Representing Graphs
0 1 Graph Isomorphism
Exercise
Graph
Isomorphism
Q1 Q2 Q3
What's about Q4 ?
8.19
Applications of Special Graphs Introduction to Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.20
Graph Introduction to Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.21
Graph Introduction to Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.21
Exercise Introduction to Graphs
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.22
Exercise Introduction to Graphs
Exercise (2)
Contents
Is there any undirected simple graph including six vertices that Graph definitions
their degree are respectively 2, 3, 3, 3, 3, 3 ? Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.22
Exercise Introduction to Graphs
Exercise (2)
Contents
Is there any undirected simple graph including six vertices that Graph definitions
their degree are respectively 2, 3, 3, 3, 3, 3 ? Terminology
Special Graphs
Representing Graphs
and Graph
Exercise (3) Isomorphism
Representing Graphs
What is the largest number of edges a undirected simple graph Graph Isomorphism
Bipartie graph
Isomorphism
8.22
Exercise Introduction to Graphs
Exercise (2)
Contents
Is there any undirected simple graph including six vertices that Graph definitions
their degree are respectively 2, 3, 3, 3, 3, 3 ? Terminology
Special Graphs
Representing Graphs
and Graph
Exercise (3) Isomorphism
Representing Graphs
What is the largest number of edges a undirected simple graph Graph Isomorphism
Bipartie graph
8.22
Exercise Introduction to Graphs
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.23
Exercise Introduction to Graphs
Exercise (6)
Contents
Give an undirected simple graph G = (V, E) with |V | = n, show Graph definitions
that
Terminology
Special Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.23
Exercise Introduction to Graphs
Exercise (6)
Contents
Give an undirected simple graph G = (V, E) with |V | = n, show Graph definitions
that
Terminology
Special Graphs
Exercise
Graph
Bipartie graph
Isomorphism
8.23
Exercise Introduction to Graphs
Exercise (6)
Contents
Give an undirected simple graph G = (V, E) with |V | = n, show Graph definitions
that
Terminology
Special Graphs
Exercise
c) deduce that there are at least two vertices of the same degree. Graph
Bipartie graph
Isomorphism
8.23
Exercise Introduction to Graphs
Exercise (6)
Contents
Give an undirected simple graph G = (V, E) with |V | = n, show Graph definitions
that
Terminology
Special Graphs
Exercise
c) deduce that there are at least two vertices of the same degree. Graph
Bipartie graph
Isomorphism
Exercise (7)
Is it possible that each person has exactly 5 friends in the same
group of 9 people ?
8.23
Prove that ... Introduction to Graphs
...
There are 101 invited people in a party. Contents
Suppose that A knows B ⇒ B knows A. Graph definitions
Prove that Terminology
Special Graphs
1 at least one people knows an even number of other people. Representing Graphs
and Graph
2 at least two people who know the same number of people (but not Isomorphism
considering himself). Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.24
Revision Introduction to Graphs
Prove that at any moment of the tournament there are always two players
having identical number of games played.
And if n ≥ 4, at any intermediate moment of the tournament, there are
always two players having identical number of games that they are the winner.
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.25
Revision Introduction to Graphs
Prove that at any moment of the tournament there are always two players
having identical number of games played.
And if n ≥ 4, at any intermediate moment of the tournament, there are
always two players having identical number of games that they are the winner.
Contents
In a tournament with n teams participated (n ≥ 4), n + 1 competition games
Graph definitions
were happening. Prove that there exists a team that has played at least three Terminology
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.25
Revision Introduction to Graphs
Prove that at any moment of the tournament there are always two players
having identical number of games played.
And if n ≥ 4, at any intermediate moment of the tournament, there are
always two players having identical number of games that they are the winner.
Contents
In a tournament with n teams participated (n ≥ 4), n + 1 competition games
Graph definitions
were happening. Prove that there exists a team that has played at least three Terminology
Representing Graphs
and Graph
Isomorphism
With any four of the n people (n ≥ 4), there exists a person who knows the Representing Graphs
three others. Prove that there exists a person who knows all n − 1 others. Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.25
Revision Introduction to Graphs
Prove that at any moment of the tournament there are always two players
having identical number of games played.
And if n ≥ 4, at any intermediate moment of the tournament, there are
always two players having identical number of games that they are the winner.
Contents
In a tournament with n teams participated (n ≥ 4), n + 1 competition games
Graph definitions
were happening. Prove that there exists a team that has played at least three Terminology
Representing Graphs
and Graph
Isomorphism
With any four of the n people (n ≥ 4), there exists a person who knows the Representing Graphs
three others. Prove that there exists a person who knows all n − 1 others. Graph Isomorphism
Exercise
Graph
Bipartie graph
In a party of 6 people, prove that there are 3 people who know each other or 3 Isomorphism
8.25
Revision Introduction to Graphs
Prove that at any moment of the tournament there are always two players
having identical number of games played.
And if n ≥ 4, at any intermediate moment of the tournament, there are
always two players having identical number of games that they are the winner.
Contents
In a tournament with n teams participated (n ≥ 4), n + 1 competition games
Graph definitions
were happening. Prove that there exists a team that has played at least three Terminology
Representing Graphs
and Graph
Isomorphism
With any four of the n people (n ≥ 4), there exists a person who knows the Representing Graphs
three others. Prove that there exists a person who knows all n − 1 others. Graph Isomorphism
Exercise
Graph
Bipartie graph
In a party of 6 people, prove that there are 3 people who know each other or 3 Isomorphism
Definition Trang
Example
Terminology
Special Graphs
Representing Graphs
C6 is bipartite and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
C6
8.26
Complete Bipartite Graphs Introduction to Graphs
Definition
A complete bipartite Km,n is a graph that
• with an edge between two vertices iff one vertex is in the first Contents
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
K3,3
8.27
Bipartite graphs Introduction to Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.28
New Graph From Old Introduction to Graphs
Definition
A subgraph (ç thà con) of a graph G = (V, E) is a graph
H = (W, F ) where W ⊆V and F ⊆ E.
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.29
New Graph From Old Introduction to Graphs
Definition
A subgraph (ç thà con) of a graph G = (V, E) is a graph
H = (W, F ) where W ⊆V and F ⊆ E.
Definition Contents
The union (hñp) of two simple graphs G1 = (V1 , E1 ) and Graph definitions
Terminology
G2 = (V2 , E2 ) is a simple graph with vertex set V1 ∪ V2 and edge Special Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.29
New Graph From Old Introduction to Graphs
Definition
A subgraph (ç thà con) of a graph G = (V, E) is a graph
H = (W, F ) where W ⊆V and F ⊆ E.
Definition Contents
The union (hñp) of two simple graphs G1 = (V1 , E1 ) and Graph definitions
Terminology
G2 = (V2 , E2 ) is a simple graph with vertex set V1 ∪ V2 and edge Special Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
G1 G2 G1 ∪ G2
8.29
Planar Graphs Introduction to Graphs
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.30
Planar Graphs Introduction to Graphs
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.30
Planar Graphs Introduction to Graphs
Definition
• A graph is called planar (ph¯ng ) if it can be drawn in the
plane without any edges crossing.
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
K4 K4 with no crossing
8.31
Important Corollaries Introduction to Graphs
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.32
Important Corollaries Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
K3,3
8.32
Important Corollaries Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
K3,3
Non-planar
8.32
Important Corollaries Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
K3,3
Non-planar
K5
8.32
Important Corollaries Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
K3,3
Non-planar
K5
Non-planar
8.32
Elementary Subdivision Introduction to Graphs
Definition
• Given a planar graphG, an elementary subdivision (ph¥n chia
sì c§p ) is removing an edge {u, v} and adding a new vertex
w together with edges {u, w} and {w, v}.
Contents
• Graphs G1 = (V1 , E1 ) and G2 = (V2 , E2 ) are called Graph definitions
homeomorphic (çng phæi ) if they can obtained from the Terminology
Special Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.33
Kuratowski's Theorem Introduction to Graphs
Theorem
A graph is nonplanar iff it contains a subgraph homeomorphic to
K3,3 or K5 .
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.34
Kuratowski's Theorem Introduction to Graphs
Theorem
A graph is nonplanar iff it contains a subgraph homeomorphic to
K3,3 or K5 .
Contents
Graph definitions
a Terminology
Special Graphs
Representing Graphs
f and Graph
Isomorphism
e b Representing Graphs
j g
Graph Isomorphism
Exercise
i h Graph
Bipartie graph
d c Isomorphism
8.34
Kuratowski's Theorem Introduction to Graphs
Theorem
A graph is nonplanar iff it contains a subgraph homeomorphic to
K3,3 or K5 .
Contents
Graph definitions
a Terminology
Special Graphs
Representing Graphs
f f d and Graph
c j Isomorphism
e b Representing Graphs
j g
Graph Isomorphism
a g
Exercise
i h Graph
e Bipartie graph
i h
d c Isomorphism
8.34
Kuratowski's Theorem Introduction to Graphs
Theorem
A graph is nonplanar iff it contains a subgraph homeomorphic to
K3,3 or K5 .
Contents
Graph definitions
a Terminology
Special Graphs
Representing Graphs
f f d and Graph
c j Isomorphism
e b Representing Graphs
j g
Graph Isomorphism
a g
Exercise
i h Graph
e Bipartie graph
i h
d c Isomorphism
8.34
Exercise Introduction to Graphs
Exercise
• Is K4 planar?
• Is Q3 planar?
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Exercise
Graph
Bipartie graph
K4 Q3
8.35
Adjacency Lists (Danh s¡ch k·) Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.36
Adjacency Matrices Introduction to Graphs
Definition Trang
Special Graphs
a b Representing Graphs
and Graph
Isomorphism
a b c d
Representing Graphs
Graph Isomorphism
a 0 1 1 1 Exercise
b
1 0 1 0
Graph
Bipartie graph
c 1 1 0 0 Isomorphism
d 1 0 0 0
c d
8.37
Examples Introduction to Graphs
Example
Give the graph defined by the following adjacency matrix
Contents
A B C D E Graph definitions
Terminology
Special Graphs
A 0 0 1 1 0 Representing Graphs
and Graph
B
0 0 0 1 0
Isomorphism
C
1 0 0 1 0
Representing Graphs
Graph Isomorphism
D
1 1 1 0 1
Exercise
E 0 0 0 1 0 Graph
Bipartie graph
Isomorphism
8.38
Adjacency Matrices Introduction to Graphs
Example
Give the directed graph defined by the following adjacency matrix
Contents
A B C D E Graph definitions
Terminology
Special Graphs
A 1 0 1 1 0 Representing Graphs
and Graph
B
0 0 0 0 0
Isomorphism
C
1 0 0 0 0
Representing Graphs
Graph Isomorphism
D
1 1 1 0 1
Exercise
E 1 0 0 0 0 Graph
Bipartie graph
Isomorphism
8.39
Incidence Matrices Introduction to Graphs
Definition Trang
Special Graphs
a e2 b Representing Graphs
and Graph
Isomorphism
e1 e2 e3 e4
Representing Graphs
Graph Isomorphism
a 1 1 1 0 Exercise
e1 b 0 1 0 1 Graph
e4 e3 Bipartie graph
c 1 0 0 1 Isomorphism
d 0 0 1 0
c d
8.40
Examples Introduction to Graphs
Example
Give incidence matrix according to the following graph
Contents
F
Graph definitions
Terminology
B C Special Graphs
Representing Graphs
and Graph
Isomorphism
A Representing Graphs
Graph Isomorphism
Exercise
Graph
E D Bipartie graph
G Isomorphism
8.41
Graph Isomorphism Introduction to Graphs
Definition
G1 = (V1 , E1 ) and G2 = (V2 , E2 ) are isomorphic (¯ng c§u ) if
there is a one-to-one function f from V1 to V2 with the property
that a b are adjacent in G1 iif f (a) and f (b) are adjacent
and in
G2 , a and b in V1 . Such a function f is called an
for all Contents
u1 u2 v1 v2 Graph Isomorphism
Isomorphism
f (u3 ) = v3 f (u4 ) = v2
u3 u4 v3 v4
8.42
Bipartie graph Introduction to Graphs
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.43
Isomorphism ? Introduction to Graphs
Contents
Graph definitions
Terminology
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.44
Isomorphism? Introduction to Graphs
A B
Contents
B
Graph definitions
Terminology
Special Graphs
F C
C Representing Graphs
and Graph
Isomorphism
Representing Graphs
D
Graph Isomorphism
E D Exercise
G2 Graph
F E Bipartie graph
G1 Isomorphism
8.45
Isomorphism? Introduction to Graphs
A1 A2 B2
Contents
Graph definitions
D1 E1 E2 F2 Terminology
Special Graphs
Representing Graphs
and Graph
F1 Isomorphism
Representing Graphs
Graph Isomorphism
C1 B1 D2 C2 Exercise
Graph
G1 G2 Bipartie graph
Isomorphism
8.46
Isomorphism Introduction to Graphs
Special Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.47
Isomorphism Introduction to Graphs
Special Graphs
0 1 0 1 0 1 1 1 Representing Graphs
1 and Graph
0 0 1 1 0 0 1 Isomorphism
2
0
0 0 1 1 0 0 1 Representing Graphs
Graph Isomorphism
1 1 1 0 1 1 1 0 Exercise
Graph
Bipartie graph
Isomorphism
8.47
Isomorphism Introduction to Graphs
Special Graphs
0 1 0 1 0 1 1 1 Representing Graphs
1 and Graph
0 0 1 1 0 0 1 Isomorphism
2
0
0 0 1 1 0 0 1 Representing Graphs
Graph Isomorphism
1 1 1 0 1 1 1 0 Exercise
Graph
0 1 1 0 0 1 0 1 Bipartie graph
1 0 0 1 1 0 0 0 Isomorphism
3
1
0 0 1 0 0 0 1
0 1 1 0 1 0 1 0
8.47
Isomorphism Introduction to Graphs
Representing Graphs
and Graph
Isomorphism
Representing Graphs
Graph Isomorphism
Exercise
Graph
Bipartie graph
Isomorphism
8.48
Isomorphism Introduction to Graphs
Representing Graphs
1 1 0 0 0 0 1 0 0 1 and Graph
1 0 1 0 1 0 1 1 1 0 Isomorphism
• Representing Graphs
0 0 0 1 1 1 0 0 1 0 Graph Isomorphism
0 1 1 1 0 1 0 1 0 1 Exercise
Graph
Bipartie graph
Isomorphism
8.48
Isomorphism Introduction to Graphs
Representing Graphs
1 1 0 0 0 0 1 0 0 1 and Graph
1 0 1 0 1 0 1 1 1 0 Isomorphism
• Representing Graphs
0 0 0 1 1 1 0 0 1 0 Graph Isomorphism
0 1 1 1 0 1 0 1 0 1 Exercise
Graph
Isomorphism
8.48
Revision Introduction to Graphs
E 1 0 0 1 0 E 0 0 0 0 0 1 1 Special Graphs
Representing Graphs
H¢y cho bi¸t quan h» cõa hai ç thà G1 v G2 . and Graph
Isomorphism
A) ¯ng c§u Representing Graphs
Graph Isomorphism
D)
Isomorphism
T֓ng ֓ng
8.49
Revision Introduction to Graphs
Representing Graphs
B) K3,2 v K5 câ còng sè ¿nh. and Graph
Isomorphism
C) K3,2 v K5 câ còng sè c¤nh.
Representing Graphs
Graph Isomorphism
Isomorphism
8.50
Revision Introduction to Graphs
Chån ph¡t biºu óng vîi ç thà ìn væ h÷îng (undirected simple
graph) câ n ¿nh. Contents
Graph definitions
A)
Terminology
Bªc cõa mët ¿nh b§t ký trong ç thà nhä hìn n − 2. Special Graphs
D)
Graph Isomorphism
Bipartie graph
Isomorphism
8.51
Revision Introduction to Graphs
Trong ký Hoa Sìn luªn vã, n«m và cao thõ ¢ g°p nhau º x¡c ành An Khuong, Le Hong
Trang
danh hi»u » nh§t: æng T , T¥y ëc, Nam ¸, Bc C¡i v Trung
Th¦n Thæng.
º ph¥n bi»t thng thua th¼ hå §u tøng c°p æi v khæng giîi h¤n thíi
gian. Nh væ àch l ng÷íi câ nhi·u trªn thng nh§t.
æng T khæng thº ¡nh b¤i Nam ¸, nh÷ng æng ta ¢ ¡nh b¤i T¥y
ëc. Contents
Do dòng nhi·u sùc trong méi trªn §u n¶n Nam ¸ ch¿ thng hai trªn Graph definitions
¦u ti¶n. Terminology
Representing Graphs
T¥y ëc khæng thº chi¸n thng Trung Th¦n Thæng, nh÷ng l¤i chi¸n and Graph
thng Nam ¸ v Bc C¡i. Isomorphism
Ri¶ng Trung Th¦n Thæng ch¿ bà th§t b¤i mët trªn §u.
Representing Graphs
Graph Isomorphism
H¢y cho bi¸t Trung Th¦n Thæng ¢ bà ¡nh b¤i bði và n o? Exercise
Graph
Bipartie graph
A) Nam ¸ Isomorphism
8.52
Revision Introduction to Graphs
pA pB pC pD pE pF pG
5 2 6 7 9 3 2 Contents
Graph definitions
Ta kþ hi»u
Terminology
Special Graphs
Representing Graphs
X1 + X2 + . . . + Xn Y1 + Y2 + . . . + Ym and Graph
Isomorphism
Representing Graphs
biºu di¹n c¡c cæng vi»c Xi (i = 1, . . . , n) ·u c¦n ho n th nh Graph Isomorphism
Exercise
tr÷îc khi khði ëng c¡c cæng vi»c Yk (k = 1, . . . , m).
Graph
X²t thíi gian bt ¦u khði ëng dü ¡n l 0. Dü ¡n ÷ñc gåi l Bipartie graph
Isomorphism
k¸t thóc khi t§t c£ c¡c cæng vi»c trong dü ¡n ·u ho n th nh.
Bi¸t r¬ng: A B + C ; B + C D; C F + G; E F .
Häi dü ¡n n y s³ k¸t thóc sîm nh§t v o ng y n o?
8.53
Revision Introduction to Graphs
Mët ban ch¿ huy qu¥n sü muèn thi¸t lªp mët m°t trªn gçm c¡c
cù iºm a, b, . . ., g . C¡c cù iºm n y v ÷íng nèi trüc ti¸p giúa
chóng t¤o n¶n mët ç thà ìn væ h÷îng.
Do sè l÷ñng thi¸t gi¡p câ giîi h¤n n¶n
Contents
ban ch¿ huy quy¸t ành ch¿ çn tró thi¸t
Graph definitions
b c gi¡p t¤i mët sè cù iºm m thæi. Tuy Terminology
ç thà b¶n ?
8.54
Revision Introduction to Graphs
C
Contents
Graph definitions
Terminology
D Special Graphs
Representing Graphs
F and Graph
Isomorphism
E Representing Graphs
Graph Isomorphism
a) H¢y x¡c ành danh s¡ch k·, ma trªn k· v ma trªn li¶n thuëc Exercise
Graph
b)
Isomorphism
H¢y cho bi¸t ç thà n y câ ph£i l ç thà ph¥n æi khæng.
N¸u câ, h¢y v³ l¤i d÷îi d¤ng mët ç thà ph¥n æi.
8.55
Revision Introduction to Graphs
Do khâi, böi v hìi n÷îc bèc l¶n tø mët mi»ng nói lûa b¶n d÷îi
m°t sæng b«ng Eyjafjallajokull ð Iceland v o ng y thù t÷
Special Graphs
÷íng bay i v ¸n Vi»t Nam, li¶n quan ¸n c¡c th nh phè lîn
Representing Graphs
nh÷: Hç Ch½ Minh (A), Paris (B ), Berlin (C ), v London (D ). Tuy and Graph
Isomorphism
nhi¶n, do £nh h÷ðng cõa mæi tr÷íng thi¶n nhi¶n nâi tr¶n, ch¿ câ Representing Graphs
mët v i chuy¸n bay câ thº ho¤t ëng: tø A h÷îng ¸n B v D, tø Graph Isomorphism
Exercise
B h÷îng ¸n C, tø C h÷îng ¸n A v D, tø D h÷îng ¸n B . Graph
Isomorphism
8.56
Revision Introduction to Graphs
Hai lîp ÷ñc ành ngh¾a nh÷ c¡c h¼nh b¶n d÷îi tr¡i. H¢y v³ ç thà biºu Tran Tuan Anh, Nguyen
An Khuong, Le Hong
di¹n h m th nh vi¶n câ thº ÷ñc gåi tø mët h m. Trang
Special Graphs
class Y
Graph Isomorphism
Exercise
public: Graph
Y();
Bipartie graph
Isomorphism
Y();
e();
private:
d();
8.57
Revision Introduction to Graphs
Hai lîp ÷ñc ành ngh¾a nh÷ c¡c h¼nh b¶n d÷îi tr¡i. H¢y v³ ç thà biºu Tran Tuan Anh, Nguyen
An Khuong, Le Hong
di¹n h m th nh vi¶n câ thº ÷ñc gåi tø mët h m. Trang
Special Graphs
class Y
Graph Isomorphism
Exercise
public: Graph
Y();
Bipartie graph
Isomorphism
8.57
Revision Introduction to Graphs
Hai lîp ÷ñc ành ngh¾a nh÷ c¡c h¼nh b¶n d÷îi tr¡i. H¢y v³ ç thà biºu Tran Tuan Anh, Nguyen
An Khuong, Le Hong
di¹n h m th nh vi¶n câ thº ÷ñc gåi tø mët h m. Trang
Special Graphs
class Y
Graph Isomorphism
Exercise
public: Graph
Y();
Bipartie graph
Isomorphism