You are on page 1of 12

-9/0

Warm-Up : Brow E graph representing


-he
map .
-here an Eurer
circuit ? An Euler pathe

-
A

& y B C

D
Question from last time:

What is path ? Is
-> a a circuit
a
path ?
-> Answer :
e

Another Example ·
Recap
·
definition : An Euler cath is a
path
I
which used each e
dg e
exactly
once starts and ends at ent
vertices)

·
definition : An Eurer Circuit is a

circuit which user each edge


exactly once (start and end at

-
same verfex)

Theorems

·
ECT a
connected and
-
all vertices even=>
-

EC Otherwise
graph has am .

graph
does not have an EC

Esgrape that
·
:

starts o odd and endr o other


oddl .
Otherwise => does not have Ep

ESpT : ① of of
sum
degrees vertices
·

twice # of
=
edges
⑧ the # of odd vertices is an
even #

# odd vertices Euler Circuit Euler Path

·
-

O Yes /EC) No(EPT


& NO(EC- Yes (Ept

Show
Eroti
If NOTEC NO(EPI &
Konigsburg Bridger Again

FreUry's Algorithm
↳how we And EC or EP !

Fleury's
Algorithm

Example :

·
E ⑧
Example :
*
-
.
↳ ⑧
B

D
-
8

You try : Find an EPIEC if they


2x
:

of

Example
A8 ⑧ ⑧ C

.
W
1 ⑧


E

Exampled
② L
1 ⑧ ·

1
- ⑧
I
·
I
·
0

·

E
6
Example) Draw an Euler Path
⑳ ⑧
-⑧

I
⑳ ⑳

·
I·-
⑧ ⑧ ⑧

-
·

&
8

I


&

-
Find
walking our that
a
passes
through each gate exactly
once .

mir
3
F
I

j-
I
-

W82 I
-
- C

A
Eulerization
->
not all
graphs have Euler paths/circuits
->
still want to find "optimal routes

·
: On
det

·
tion:

·
deation:

historic
example : Walking your of a town

S
examprojury consid 1I
Sem Euler :
:

at : on

definit On 8
:

Sem Euler : zes.t


example : the
:

Semi Entertation will have a Ep


from A to

↑ ⑧
II .
Street
Routing Problems

A Guard walk the


security must
each To
following
minimize
streets
the distance
night
she has
.

to

wark she kopes to find a route


,

that uses each street exactly


once .
Is it
possible : If so , find route .

Recap
Euler : fation/semi Eulerization
·
det
:Oh

·
Euler : Eat : On-

Sem Enterization-
:

·
You try !

① find an Euler : ation

⑧ Find a Semi Euler : atich


Example) find a route from A to f
that uses
and
each
bridgeex afrd ~east
once
,
minimiter +

bridge crossings .

-
Al C

S I
'S -=
D
Example) Given a
graph
that is
an unicureal
tracing
mof
open
how many times will you have
,

gapnot your pencil to draw the

11

You might also like