Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A...

37
Euler Graphs Section 6.2
  • date post

    21-Dec-2015
  • Category

    Documents

  • view

    218
  • download

    1

Transcript of Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A...

Page 1: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

Euler Graphs

Section 6.2

Page 2: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 2

Circuit? Path? Non- traversable?

A

D

E

C

B

A

D

E

C

B

A

D

E

C

B

End at A

End at B

Start at A

Start at A Miss an

edge

Start at A

Page 3: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 3

Circuit? Path? Non-traversable?

A

E

C

B

G

O

I

F

K

P

N

H

J

M

D

16

Vertices

28 Edges

L

Page 4: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 4

Stump the Prof

Page 5: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 5

Graph Vertices Edges Type

?

Page 6: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 6

Conclusion

Therefore the type of graph is not determined by

• .

• .

So, what is it determined by?

Page 7: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 7

Does the graph have a Euler circuit? path? or neither. What is the degree of each vertex? Click “yes” if you see a pattern.1. Yes2. No

Page 8: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 8

Make a hypothesis based on your work

Verify by filling in last column on next slide

Page 9: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 9

Non-traversab

le

Circuit

Path

Graph Vertices Edges Type

?

5

5

5

9

9

9

Page 10: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 10

Euler’s Theorem

Let N = the number of vertices in a graph

• If N = the graph has an Euler Circuit (EC)

• If N = the graph has an Euler Path (EP) (Must start at an odd vertex)

• If N = (or more), the graph is Non-Traversable (NT)

Page 11: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 11

Solution to the Konigsberg Bridge Problem

Page 12: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 12

Can you draw this figure without taking your pencil from the paper and without retracing any line?

1. Yes, and I can start at any vertex

2. Yes, but only if I start at certain vertices

3. No, it can’t be done no matter where I start

Page 13: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 13

I see how Euler’s Theorem applies to this problem

1. Absolutely

2. Sort of

3. Not a clue

Page 14: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 14

Snow Plowing

1. Circuit

2. Path

3. Non-traversable

Union City

Dover

Paterson

Morristown

Clifton

Hackensack

Passaic

East Orange

Page 15: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 15

“Eulerizing”

1. 1

2. 2

3. 3

4. 4

What is the minimum number of roads that can be removed so that this graph will have an Euler Circuit?

Union City

Dover

Paterson

Morristown

Clifton

Hackensack

Passaic

East Orange

Page 16: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 16

Security Guard Animation

Page 17: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 17

Can a security guard make an Euler Circuit starting at the parking lot

Yes N

o

50%50%

1. Yes

2. No

Employee Parking Lot

N

C

F

D EBA

M

K

J

I

L

HG

Page 18: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 18

What is the minimum number of doors that can be removed so that this floor plan will have an Euler Circuit?

0% 0%0%

100%

1. 1

2. 2

3. 3

4. 4

Employee Parking

Lot

N

C

F

D EBA

MK

J

I

L

HG

Page 19: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 19

Can you cross each of the borders between pairs of neighboring New England states once and only once and return to the state from which you started?0% 0%

100%

1. Yes

2. No

3. Sometimes

Page 20: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 20

Here is Euler’s graph of Konigsberg. Can you start at some vertex and cross every edge twice and only twice?

Yes N

o

Can

’t te

ll

100%

0%0%

1. Yes

2. No

3. Can’t tell

A

C

D

B

Page 21: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 21

A final question

Why didn’t Euler worry about the cases of 1, 3, 5, … odd vertices?

Draw a graph with one odd vertex.

Page 23: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 23

If you could draw a graph with exactly one odd vertex, the sum of all the degrees would be .

Odd

Even

Even

Even

Even

Even

Even

Page 24: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 24

Theorem: The sum of the degrees of

all vertices of a graph is 2 * (

).

Corollary: The sum of the degrees of all

vertices of a graph is always

.

Page 25: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 25

Can a graph have nine edges of which

4 have degree 2, three have degree 3

and two have degree 4?

1. Yes

2. No

Page 26: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 26

Can a graph have nine edges of which

4 have degree 3, three have degree 4

and two have degree 2?

1. Yes

2. No

Page 27: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 27

A graph has 6 vertices of degree 3 and 5 vertices of degree 4. How many edges does the graph have?

1. 11

2. 19

3. 38

Page 28: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 28

End of 6.2

Page 29: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 29

N

C

F

D EBA

M

KJ

I

L

HG

Drats!I’m Stuck

Employee Parking

LotStart

Page 30: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 30

What is the security man trying to do?

Page 31: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 31

N

C

F

D EBA

M

KJ

I

L

HG

Darn!I got all the doors, but…

Start

Employee Parking

Lot

Page 32: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 32

In floor plans the vertices are

The

room

s

The

doors

50%50%

1. The rooms

2. The doors

Page 33: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 33

N

C

F

D EBA

M

KJ

I

L

HG

All Clear!!

Employee Parking

LotStart

Page 34: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 34

Draw a graph with

• 4 vertices (all odd) and 6 edges

• 4 vertices (all odd) and 3 edges

Page 35: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 35

Draw a graph with

• 4 vertices (all even) and 5 edges (loops are edges)

• 5 vertices (3 even) and 8 edges

Page 36: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 36

But

Page 37: Euler Graphs Section 6.2. 6.2 Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.

6.2 Euler Graphs 37

Meta - Material