28
Euler Trails and Circuits Euler Trails and Circuits Tarik Reza Toha Md. Moyeen Uddin Department of Computer Science and Engineering Bangladesh University of Engineering and Technology, Dhaka, Bangladesh December 7, 2015 1 / 17

Euler trails and circuit

Embed Size (px)

Citation preview

Page 1: Euler trails and circuit

Euler Trails and Circuits

Euler Trails and Circuits

Tarik Reza TohaMd. Moyeen Uddin

Department of Computer Science and EngineeringBangladesh University of Engineering and Technology,

Dhaka, Bangladesh

December 7, 2015

1 / 17

Page 2: Euler trails and circuit

Euler Trails and Circuits

The Euler Tour

1 The Euler Tour

2 Euler Trails and Circuits

3 Fleury’s Algorithm

2 / 17

Page 3: Euler trails and circuit

Euler Trails and Circuits

The Euler Tour

Let’s Try to Clean Our City

Garbage Collector Truck

3 / 17

Page 4: Euler trails and circuit

Euler Trails and Circuits

The Euler Tour

The Story Begins ...

The bridge over the river Pregolya, Kaliningrad, Russia

4 / 17

Page 5: Euler trails and circuit

Euler Trails and Circuits

The Euler Tour

Back to The 18th CenturyThe City of Konigsberg, Prussia

The seven bridges around the island Kneiphof over Pregel river

5 / 17

Page 6: Euler trails and circuit

Euler Trails and Circuits

The Euler Tour

Leonardo Euler (1707-1783)e ix = cos x + i sin x

Euler wrote, “This question isso banal, but seemed to meworthy of attention in that[neither] geometry, nor algebra,nor even the art of counting wassufficient to solve it”

On August 26, 1735, Eulerpresents Konigsberg bridgeproblem with a general solutionin “Solutio problematis adgeometriam situs pertinentis”

6 / 17

Page 7: Euler trails and circuit

Euler Trails and Circuits

The Euler Tour

Konigsberg Bridge ProblemEuler’s Approach

Problem Definition

Can one find out whether or not it is possible to crosseach bridge exactly once?

7 / 17

Page 8: Euler trails and circuit

Euler Trails and Circuits

The Euler Tour

Konigsberg Bridge ProblemConclusion

Solution

It is impossible to travel the bridges in the city ofKonigsberg once and only once.

Generalization

1 If there are more than two landmasses with an odd number ofbridges, then no such journey is possible

2 If the number of bridges is odd for exactly two landmasses,then the journey is possible if it starts in one of the two oddnumbered landmasses

3 If there are no regions with an odd number of landmassesthen the journey can be accomplished starting in any region

8 / 17

Page 9: Euler trails and circuit

Euler Trails and Circuits

The Euler Tour

Modern Graph Representation of the Bridge Network

The Origin of Graph Theory

Euler accidentally sparked a new branch of mathematics calledgraph theory, where a graph is simply a collection of vertices andedges. It is a new kind of Geometry, which Leibniz referred to asGeometry of Position.

9 / 17

Page 10: Euler trails and circuit

Euler Trails and Circuits

Euler Trails and Circuits

1 The Euler Tour

2 Euler Trails and Circuits

3 Fleury’s Algorithm

10 / 17

Page 11: Euler trails and circuit

Euler Trails and Circuits

Euler Trails and Circuits

Euler Path

An Euler path is a path that uses every edge of a graphexactly once

An Euler path starts and ends at different vertices

Euler Circuit

An Euler circuit is a circuit that uses every edge of a graphexactly once

An Euler path starts and ends at same vertices

11 / 17

Page 12: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

1 The Euler Tour

2 Euler Trails and Circuits

3 Fleury’s Algorithm

12 / 17

Page 13: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2

13 / 17

Page 14: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

13 / 17

Page 15: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

c

f

13 / 17

Page 16: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

c

d

f

c

13 / 17

Page 17: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

c

d

a

f

c

d

13 / 17

Page 18: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

c

d

a

e f

c

d

a

13 / 17

Page 19: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

c

d

a

e

c

f

c

d

a

e

13 / 17

Page 20: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

c

d

a

e

c

a

f

c

d

a

e

c

13 / 17

Page 21: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

c

d

a

e

c

a

b

f

c

d

a

e

c

a

13 / 17

Page 22: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

c

d

a

e

c

a

b

d

f

c

d

a

e

c

a

b

13 / 17

Page 23: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

c

d

a

e

c

a

b

d

ff

c

d

a

e

c

a

b

d

13 / 17

Page 24: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Fleury’s Algorithm

a : 4

b : 2

c : 4

d : 4

e : 2 f : 2f

c

d

a

e

c

a

b

d

ff

c

d

a

e

c

a

b

d

13 / 17

Page 25: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Direct Application of Euler TourFragment Assembly in DNA Sequence

Find the exact structure by putting all the pieces together

14 / 17

Page 26: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Today’s KonigsbergNow Kaliningrad

15 / 17

Page 27: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Today’s KonigsbergThe Seven Bridges

16 / 17

Page 28: Euler trails and circuit

Euler Trails and Circuits

Fleury’s Algorithm

Thank YouQuestions are Welcome!

17 / 17