SlideShare une entreprise Scribd logo
1  sur  14
KONINGSBERG PROBLEM
• Königsberg was a city in Prussia
situated on the Pregel River (Today,
the city is named Kaliningrad, and
is a major industrial and
commercial center of western
Russia).
• A river Pregel flows around the
island Keniphof and then divides
into two.
• Seven bridges spanned the various
branches of the river, as shown.
• It became a tradition to try to walk
around the town in a way that only
crossed each bridge once, but it
proved to be a difficult problem.
Determine whether it’s possible to walk across all the bridges exactly once in
returning back to the starting land area.
•In 1736 Euler proved that the walk was not possible to do. No Eulerian walk of
the Konigsberg bridge problem since all four vertices are of odd edges.
• He proved this by inventing a kind of diagram called a network, that is made up
of vertices (dots where lines meet) and arcs (lines). Define the degree of a vertex
to be the number of edges incident to it.
•He used four dots (vertices) for the two riverbanks and the two islands. These
have been marked A, B and C, D. Euler showed that there is a walk starting at any
vertex, going through each edge exactly once and terminating at the start vertex
iff the degree of each vertex is even. This walk is called Eulerian.
•The seven lines (arcs) are the seven bridges.
C

c

d

A

g

e

Kneiphof

D

C

a

B

f
b

g

c

d

e

A
a

D
b

f
•

3 bridges (arcs) join to riverbank A, and
3 join to riverbank B. 5 bridges (arcs)
join to island C, and 3 join to island D.

•

All the vertices have an odd number of
arcs, so they are called odd vertices. (An
even vertex would have to have an even
number of arcs joining to it).
WHY IS IT IMPOSSIBLE!
•

Euler's solution involved the observation that when a vertex is "visited" in the
middle of the process of tracing a graph, there must be an edge coming into the
vertex, and another edge leaving it and so the order of the vertex must be an even
number.

•

This must be true for all but at most two of the vertices--the one you start at, and
the one you end at and so a connected graph is traversable if and only if it has at
most two vertices of odd order.
Now the NETWORK graph shows that there are more than two vertices of odd
order and therefore the graph cannot be traced.

•

•

It is concluded that the desired walking tour of Königsberg is impossible.
ANY IDEAS FOR THE CRISIS…?
•

Suppose the citizens of Königsberg decided
to build an eighth bridge, as in the diagram
shown than it would be possible walking
without traversing any bridge twice.(ONLY
TWO VERTEX ARE ODD ORDER.)

•

Adding a ninth bridge to the diagram
above will make the walking tour once
again impossible.
GRAPH THEORY
•
•
•
•
•
•
•

•

A graph, G, consists of two sets, V
and E.
V is a finite, nonempty set of
vertices.
E is set of pairs of vertices called
edges.
The vertices of a graph G can be
represented as V(G).
Likewise, the edges of a graph, G,
can be represented as E(G).
Graphs can be either undirected
graphs or directed graphs.
For a undirected graph, a pair of
vertices (u, v) or (v, u) represent the
same edge.
For a directed graph, a directed pair
<u, v> has u as the tail and the v as
the head. Therefore, <u, v> and <v,
u> represent different edges.
THREE SAMPLE GRAPHS

0

0

0
1

1

2
3

3

2

4

5

1
6
2

V(G1) = {0, 1, 2, 3}
E(G1) = {(0, 1), (0, 2), (0, 3), (1, 2), (1,
3), (2, 3)}

V(G2) = {0, 1, 2, 3, 4, 5, 6}
E(G2) = {(0, 1), (0, 2), (1, 3), (1, 4), (2,
5), (2, 6)}

V(G3) = {0, 1, 2}
E(G3) = {<0, 1>, <1, 0>, <1, 2>}

(a) G1

(b) G2

(c) G3
VERTICES

EDGES

EVEN
DEGREE

ODD
DEGREE

EULER
PATH

4

4

4

0

Yes

4

5

2

2

Yes

5

8

1

4

No
OUR OBSERVATIONS
•

The degree of vertex = No. of edges connected with a vertex

•

Simple path = Such a way that each vertex is traversed once.

•

Euler Path = Such a way that each edge is traversed once.

•

From above graphs it is concluded that Euler path is possible when odd degree
vertex are either 0 or 2.
In case of Konnisberges Bridge – all the four vertices were odd degree and
hence as per above conclusion – Euler path is not possible.
By adding one more bridge - two vertices are even degree and two are odd
degree- Euler path is possible

•
•
APPLICATION OF GRAPH THEORY
•
•
•
•
•
•
•
•
•
•
•
•
•

GPS (Global Positioning System ) uses graph to find shortest path.
Airlines uses closed paths and look for alternatives for cancelled flights.
Power grids use it for transfer of electricity without overloading lines.
Graphs are used to design computer networks.
Analysis of electrical circuits
Finding shortest routes
Project planning
Identification of chemical compounds
Statistical mechanics
Genetics
Cybernetics: a branch where human beings use various types of networks:
electric or mechanical
Linguistics
Social Sciences, and so on …
SUMMARY OF TRAVERSABLE GRAPH
Number Of Odd
Vertices

Traversable

Remarks

0

Yes

Start anywhere and end
back at the start vertex.

2

Yes

Start at one odd and end at
other odd vertex.

More than 2

No

A graph is a collection of vertices and edges.
The order of a vertex is the number of the
edges meet at that vertex.
A graph is traversable if and only if it has 0 or 2
odd vertices.
Thank you

Contenu connexe

Tendances

Dijkstra's Algorithm
Dijkstra's AlgorithmDijkstra's Algorithm
Dijkstra's AlgorithmArijitDhali
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - GraphMadhu Bala
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theoryTech_MX
 
Graph theory in network system
Graph theory in network systemGraph theory in network system
Graph theory in network systemManikanta satyala
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data StructureAnuj Modi
 
Real life application
Real life applicationReal life application
Real life applicationumadeviR3
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2showslidedump
 
Graph representation
Graph representationGraph representation
Graph representationTech_MX
 
Königsberg, Euler and the origins of graph theory
Königsberg, Euler and the origins of graph theoryKönigsberg, Euler and the origins of graph theory
Königsberg, Euler and the origins of graph theorypupbroeders
 
Dijkstra’S Algorithm
Dijkstra’S AlgorithmDijkstra’S Algorithm
Dijkstra’S Algorithmami_01
 

Tendances (20)

Dijkstra's Algorithm
Dijkstra's AlgorithmDijkstra's Algorithm
Dijkstra's Algorithm
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theory
 
Graph theory
Graph theory Graph theory
Graph theory
 
Graph theory in network system
Graph theory in network systemGraph theory in network system
Graph theory in network system
 
Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
 
Real life application
Real life applicationReal life application
Real life application
 
Graph theory presentation
Graph theory presentationGraph theory presentation
Graph theory presentation
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
 
Data Structures - Lecture 10 [Graphs]
Data Structures - Lecture 10 [Graphs]Data Structures - Lecture 10 [Graphs]
Data Structures - Lecture 10 [Graphs]
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
 
Graph representation
Graph representationGraph representation
Graph representation
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Königsberg, Euler and the origins of graph theory
Königsberg, Euler and the origins of graph theoryKönigsberg, Euler and the origins of graph theory
Königsberg, Euler and the origins of graph theory
 
Euler graph
Euler graphEuler graph
Euler graph
 
Dijkstra’S Algorithm
Dijkstra’S AlgorithmDijkstra’S Algorithm
Dijkstra’S Algorithm
 
Graph-theory.ppt
Graph-theory.pptGraph-theory.ppt
Graph-theory.ppt
 
DFS and BFS
DFS and BFSDFS and BFS
DFS and BFS
 

En vedette

Discrete math ppt
Discrete math pptDiscrete math ppt
Discrete math pptmsumerton
 
Restauración de las 12 puertas - 1ª La Puerta de las Ovejas
Restauración de las 12 puertas - 1ª La Puerta de las OvejasRestauración de las 12 puertas - 1ª La Puerta de las Ovejas
Restauración de las 12 puertas - 1ª La Puerta de las OvejasValentin Moraleja
 
How to make Awesome Diagrams for your slides
How to make Awesome Diagrams for your slidesHow to make Awesome Diagrams for your slides
How to make Awesome Diagrams for your slidesotikik
 

En vedette (6)

RPM Packaging 101 (Old)
RPM Packaging 101 (Old)RPM Packaging 101 (Old)
RPM Packaging 101 (Old)
 
Section 1.1 Power Point
Section 1.1 Power PointSection 1.1 Power Point
Section 1.1 Power Point
 
flyover and bridge problems and its solutions
flyover and bridge problems and its solutionsflyover and bridge problems and its solutions
flyover and bridge problems and its solutions
 
Discrete math ppt
Discrete math pptDiscrete math ppt
Discrete math ppt
 
Restauración de las 12 puertas - 1ª La Puerta de las Ovejas
Restauración de las 12 puertas - 1ª La Puerta de las OvejasRestauración de las 12 puertas - 1ª La Puerta de las Ovejas
Restauración de las 12 puertas - 1ª La Puerta de las Ovejas
 
How to make Awesome Diagrams for your slides
How to make Awesome Diagrams for your slidesHow to make Awesome Diagrams for your slides
How to make Awesome Diagrams for your slides
 

Similaire à Koningsberg bridge problem

koningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptxkoningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptxAlpa Rajput
 
Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Robert Almazan
 
distructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfdistructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfansariparveen06
 
Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............eustaquiojm1
 
Introduction to Graph-Theory.pptx
Introduction to Graph-Theory.pptxIntroduction to Graph-Theory.pptx
Introduction to Graph-Theory.pptxACJMathematic1
 
Data structure graphs
Data structure  graphsData structure  graphs
Data structure graphsUma mohan
 
Presentation on Graph
Presentation on GraphPresentation on Graph
Presentation on GraphSalim Hosen
 
Lecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptxLecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptxChandanGiri21
 
Graph theory
Graph theoryGraph theory
Graph theoryTech_MX
 
Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_abas1333
 
Euleria
EuleriaEuleria
Eulerianarca
 

Similaire à Koningsberg bridge problem (20)

koningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptxkoningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptx
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)
 
distructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfdistructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdf
 
CST 504 Graphs
CST 504 GraphsCST 504 Graphs
CST 504 Graphs
 
ch10.5.pptx
ch10.5.pptxch10.5.pptx
ch10.5.pptx
 
Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............
 
Graph ds
Graph dsGraph ds
Graph ds
 
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
 
Presentation on graphs
Presentation on graphsPresentation on graphs
Presentation on graphs
 
Introduction to Graph-Theory.pptx
Introduction to Graph-Theory.pptxIntroduction to Graph-Theory.pptx
Introduction to Graph-Theory.pptx
 
Data structure graphs
Data structure  graphsData structure  graphs
Data structure graphs
 
Ds lec 5_chap4
Ds lec 5_chap4Ds lec 5_chap4
Ds lec 5_chap4
 
Presentation on Graph
Presentation on GraphPresentation on Graph
Presentation on Graph
 
Lecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptxLecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptx
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_
 
Euleria
EuleriaEuleria
Euleria
 
Magtibay buk bind#2
Magtibay buk bind#2Magtibay buk bind#2
Magtibay buk bind#2
 
Programming Exam Help
Programming Exam Help Programming Exam Help
Programming Exam Help
 

Dernier

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 

Dernier (20)

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 

Koningsberg bridge problem

  • 1.
  • 2. KONINGSBERG PROBLEM • Königsberg was a city in Prussia situated on the Pregel River (Today, the city is named Kaliningrad, and is a major industrial and commercial center of western Russia). • A river Pregel flows around the island Keniphof and then divides into two. • Seven bridges spanned the various branches of the river, as shown. • It became a tradition to try to walk around the town in a way that only crossed each bridge once, but it proved to be a difficult problem.
  • 3. Determine whether it’s possible to walk across all the bridges exactly once in returning back to the starting land area. •In 1736 Euler proved that the walk was not possible to do. No Eulerian walk of the Konigsberg bridge problem since all four vertices are of odd edges. • He proved this by inventing a kind of diagram called a network, that is made up of vertices (dots where lines meet) and arcs (lines). Define the degree of a vertex to be the number of edges incident to it. •He used four dots (vertices) for the two riverbanks and the two islands. These have been marked A, B and C, D. Euler showed that there is a walk starting at any vertex, going through each edge exactly once and terminating at the start vertex iff the degree of each vertex is even. This walk is called Eulerian. •The seven lines (arcs) are the seven bridges.
  • 5. • 3 bridges (arcs) join to riverbank A, and 3 join to riverbank B. 5 bridges (arcs) join to island C, and 3 join to island D. • All the vertices have an odd number of arcs, so they are called odd vertices. (An even vertex would have to have an even number of arcs joining to it).
  • 6. WHY IS IT IMPOSSIBLE! • Euler's solution involved the observation that when a vertex is "visited" in the middle of the process of tracing a graph, there must be an edge coming into the vertex, and another edge leaving it and so the order of the vertex must be an even number. • This must be true for all but at most two of the vertices--the one you start at, and the one you end at and so a connected graph is traversable if and only if it has at most two vertices of odd order. Now the NETWORK graph shows that there are more than two vertices of odd order and therefore the graph cannot be traced. • • It is concluded that the desired walking tour of Königsberg is impossible.
  • 7. ANY IDEAS FOR THE CRISIS…? • Suppose the citizens of Königsberg decided to build an eighth bridge, as in the diagram shown than it would be possible walking without traversing any bridge twice.(ONLY TWO VERTEX ARE ODD ORDER.) • Adding a ninth bridge to the diagram above will make the walking tour once again impossible.
  • 8. GRAPH THEORY • • • • • • • • A graph, G, consists of two sets, V and E. V is a finite, nonempty set of vertices. E is set of pairs of vertices called edges. The vertices of a graph G can be represented as V(G). Likewise, the edges of a graph, G, can be represented as E(G). Graphs can be either undirected graphs or directed graphs. For a undirected graph, a pair of vertices (u, v) or (v, u) represent the same edge. For a directed graph, a directed pair <u, v> has u as the tail and the v as the head. Therefore, <u, v> and <v, u> represent different edges.
  • 9. THREE SAMPLE GRAPHS 0 0 0 1 1 2 3 3 2 4 5 1 6 2 V(G1) = {0, 1, 2, 3} E(G1) = {(0, 1), (0, 2), (0, 3), (1, 2), (1, 3), (2, 3)} V(G2) = {0, 1, 2, 3, 4, 5, 6} E(G2) = {(0, 1), (0, 2), (1, 3), (1, 4), (2, 5), (2, 6)} V(G3) = {0, 1, 2} E(G3) = {<0, 1>, <1, 0>, <1, 2>} (a) G1 (b) G2 (c) G3
  • 11. OUR OBSERVATIONS • The degree of vertex = No. of edges connected with a vertex • Simple path = Such a way that each vertex is traversed once. • Euler Path = Such a way that each edge is traversed once. • From above graphs it is concluded that Euler path is possible when odd degree vertex are either 0 or 2. In case of Konnisberges Bridge – all the four vertices were odd degree and hence as per above conclusion – Euler path is not possible. By adding one more bridge - two vertices are even degree and two are odd degree- Euler path is possible • •
  • 12. APPLICATION OF GRAPH THEORY • • • • • • • • • • • • • GPS (Global Positioning System ) uses graph to find shortest path. Airlines uses closed paths and look for alternatives for cancelled flights. Power grids use it for transfer of electricity without overloading lines. Graphs are used to design computer networks. Analysis of electrical circuits Finding shortest routes Project planning Identification of chemical compounds Statistical mechanics Genetics Cybernetics: a branch where human beings use various types of networks: electric or mechanical Linguistics Social Sciences, and so on …
  • 13. SUMMARY OF TRAVERSABLE GRAPH Number Of Odd Vertices Traversable Remarks 0 Yes Start anywhere and end back at the start vertex. 2 Yes Start at one odd and end at other odd vertex. More than 2 No A graph is a collection of vertices and edges. The order of a vertex is the number of the edges meet at that vertex. A graph is traversable if and only if it has 0 or 2 odd vertices.