You are on page 1of 2

3/18/2015

Fleury'sAlgorithm

5.6Fleury'sAlgorithmor...
Howtobuildacircuitwithoutwires
Topics
Introduction
Fleury'sAlgorithm

Introduction
Euler'sTheoremsareexamplesofexistencetheorems
existencetheoremstellwhetherornotsomethingexists(e.g.Eulercircuit)
butdoesn'ttellushowtocreateit!
wewantaconstructivemethodforfindingEulerpathsandcircuits
methods(welldefinedprocedures,recipes)forconstructionarecalledalgorithms
thereisanalgorithmforconstructinganEulercircuit:Fleury'salgorithm
wewillillustrateitwiththegraph:

Fleury'sAlgorithm
1.pickanyvertextostart
2.fromthatvertexpickanedgetotraverse(seebelowforimportantrule)
3.darkenthatedge,asareminderthatyoucan'ttraverseitagain
4.travelthatedge,comingtothenextvertex
5.repeat24untilalledgeshavebeentraversed,andyouarebackatthestartingvertex
ateachstageofthealgorithm:
theoriginalgraphminusthedarkened(alreadyused)edges=reducedgraph
importantrule:nevercrossabridgeofthereducedgraphunlessthereisnootherchoice
whymustweobservethatrule?
Notes:
thesamealgorithmworksforEulerpaths
beforestarting,useEulerstheoremstocheckthatthegraphhasanEulerpathand/orcircuitto
find!
whenyoudothisonpaper,youcaneraseeachedgeasyoutraverseit
thiswillmakethereducedgraphvisible,anditsbridgesapparent
http://www.austincc.edu/powens/+Topics/HTML/056/056.html#fleury

1/2

3/18/2015

Fleury'sAlgorithm

Example
Stepinrecipe

Markedgraph

Reducedgraph

Pickanyvertex(e.g.
F)

TravelfromFtoC
(arbitrarychoice)

TravelfromCtoD
(arbitrary)

TravelfromDtoA
(arbitrary)

TravelfromAtoC
(can'tgotoB:that
edgeisabridgeofthe
reducedgraph,and
therearetwoother
choices,wechoseone
ofthem)
Therestofthetripisobvious,andthecompleteEulercircuitis:
(F,C,D,A,C,E,A,B,D,F)

http://www.austincc.edu/powens/+Topics/HTML/056/056.html#fleury

2/2

You might also like