41
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles http://myhome.spu.edu/lauw

MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Embed Size (px)

DESCRIPTION

Definitions

Citation preview

Page 1: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

MAT 2720Discrete Mathematics

Section 8.2Paths and Cycles

http://myhome.spu.edu/lauw

Page 2: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Goals Paths and Cycles

•Definitions and Examples•More Definitions

Page 3: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

0vnv

Page 4: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

1nv

2v

1v

Definitions

0vnv

3v1e

3e2e

ne

Page 5: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

1nv

2v

1v

Definitions

0vnv

3v

0 1 2, , , , nv v v v

Page 6: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 1(a) Write down a path from b to e with

length 4.

Page 7: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 1(b) Write down a path from b to e with

length 5.

Page 8: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 1(c) Write down a path from b to e with

length 6.

Page 9: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

vw

vw

Page 10: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 2The graph is not connected because …

a

bc d

e f

Page 11: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

ev

w

v

we

Page 12: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

ev

w

ev

v

we

Page 13: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

ev

w

( ) , is a graph.b V E

Page 14: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 3How many subgraphs are there with 3 edges?

a

bc

e f

Page 15: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

v

Page 16: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

v

Page 17: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Connected Graph & Component

v

What can we say about the components of a graph if it is connected?

Page 18: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Connected Graph & Component

v

What can we say about the graph if it has exactly one component?

Page 19: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Theorem

v

A graph is connected if and only if it has exactly one component

Page 20: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

vw

u

Page 21: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

v

wu

x

v

wu

x

ab

c

Page 22: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

v

wu

x

v

wu

x

ab

c

Page 23: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

DefinitionsThe degree of a vertex v, denoted by (v), is the number of edges incident on v

Page 24: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Definitions

v

w

u

The degree of a vertex v, denoted by (v), is the number of edges incident on v

( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )( ) ( ) ( )a b c d e f g hu v w

a

b c d

e f

g

h

Page 25: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

The Königsberg bridge problem Euler (1736) Is it possible to cross all seven bridges just once

and return to the starting point?

Page 26: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

The Königsberg bridge problem Edges represent bridges and each

vertex represents a region.

Page 27: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

The Königsberg bridge problem Euler (1736) Is it possible to find a cycle that includes

all the edges and vertices of the graph?

Page 28: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

DefinitionsAn Euler cycle is a cycle that includes all the edges and vertices of the graph

Page 29: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Theorems 8.2.17 & 8.2.18: G has an Euler cycle if and only if G is connected and every vertex has even degree.

Page 30: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Theorems 8.2.17 & 8.2.18: G has an Euler cycle if and only if G is connected and every vertex has even degree.

Page 31: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 4(a)

v

w

ua

b c d

e f

g

h

Determine if the graph has an Euler cycle.

( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 2( ) ( ) ( ) 4a b c d e f g hu v w

Page 32: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 4(b)

v

w

ua

b c d

e f

g

h

Find an Euler cycle.

Page 33: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Observation

v

w

u

( ) ( ) ( ) ( ) ( ) ( ) ( ) 2( ) ( ) ( ) 4a b c d e f gu v w

a

b c d

e f

g

h

The sum of the degrees of all the vertices is even.

Page 34: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 5 (a)What is the sum of the degrees of all the vertices?

6

1

( )ii

v

1v

2v3v

4v

5v 6v

Page 35: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 5 (b)What is the number of edges?

1v

2v

E

3v4v

5v 6v

6

1

( )ii

v

Page 36: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 5 (c)What is the relationship and why?

1v

2v

E

3v4v

5v 6v

6

1

( )ii

v

Page 37: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Theorem 8.2.21

1

( ) 2n

ii

v

Page 38: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Example 6Is it possible to draw a graph with 6 vertices and degrees 1,1,2,2,2,3?

Page 39: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Corollary 8.2.22

Page 40: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Theorem 8.2.23

Page 41: MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles

Theorem 8.2.24

v

wu

x

v

wu

x

ab

c