M Clements Formal Network Theory. Introduction Practical problem – The Seven Bridges of Königsberg Network graphs Nodes & edges Degrees Rules/ axioms.

Slides:



Advertisements
Similar presentations
The Chinese Postman Problem Route Planning Map Colouring
Advertisements

Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Introduction to Graphs
The 7 Bridges of Konigsberg A puzzle in need of solving.
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
AMDM UNIT 7: Networks and Graphs
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Euler Circuits and Paths
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Section 2.1 Euler Cycles Vocabulary CYCLE – a sequence of consecutively linked edges (x 1,x2),(x2,x3),…,(x n-1,x n ) whose starting vertex is the ending.
IEOR266 © Classification of MCNF problems.
Approximation Algorithms for the Traveling Salesperson Problem.
Introduction to Networks HON207. Graph Theory In mathematics and computer science, graph theory is the study of graphs, mathematical structures used to.
Homework collection Thursday 3/29 Read Pages 160 – 174 Page 185: 1, 3, 6, 7, 8, 9, 12 a-f, 15 – 20.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Graphs and Euler cycles Let Maths take you Further…
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
The Bridge Obsession Problem By Vamshi Krishna Vedam.
Eulerian Circuits. A Warm Up Problem Jenny & John were at a Math Circles event with three other couples. As people arrived, various handshakes took place.
GRAPH Learning Outcomes Students should be able to:
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Management Science 461 Lecture 9 – Arc Routing November 18, 2008.
Graph Theory Topics to be covered:
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we can find a path that goes over all.
Euler and Hamilton Paths
Chinese postman problem
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
Graphs, Puzzles, & Map Coloring
5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life.
1 Approximation Algorithm Updated on 2012/12/25. 2 Approximation Algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Aim: What is an Euler Path and Circuit?
Introduction to Graphs. This Lecture In this part we will study some basic graph theory. Graph is a useful concept to model many problems in computer.
Chapter 1: Urban Services Lesson Plan
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Lecture 11: 9.4 Connectivity Paths in Undirected & Directed Graphs Graph Isomorphisms Counting Paths between Vertices 9.5 Euler and Hamilton Paths Euler.
Chapter 6: Graphs 6.1 Euler Circuits
Introduction to Graph Theory
Graph Theory Two Applications D.N. Seppala-Holtzman St. Joseph ’ s College.
1) Find and label the degree of each vertex in the graph.
Graph Theory Euler Paths and Euler Circuits. Euler Paths & Circuits Euler Paths and Euler Circuits (Euler is pronounced the same as Oiler) An Euler path.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Week 7 - Monday CS 113.
Graph theory Definitions Trees, cycles, directed graphs.
Konigsberg’s Seven Bridges
Lecture 11: Connectivity Paths in Undirected & Directed Graphs
Euler Circuits and Paths
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Nuffield Free-Standing Mathematics Activity
Konigsberg- in days past.
Graph Theory What is a graph?.
Route Inspection Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we introduce a vertex.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
Euler Paths and Euler Circuits
Graph Theory Relations, graphs
Chapter 10 Graphs and Trees
Chapter 1: Urban Services Lesson Plan
5 The Mathematics of Getting Around
Presentation transcript:

M Clements Formal Network Theory

Introduction Practical problem – The Seven Bridges of Königsberg Network graphs Nodes & edges Degrees Rules/ axioms Practical uses 31/01/ EISCN

Once upon a time long long ago… Old fairytale pic of konigsberg 31/01/ EISCN

31/01/ EISCN The city of Königsberg in Prussia

The Seven Bridges Problem (see handout) Is there a walk through the city that crosses each bridge once and only once. The islands cannot be reached by any route other than the bridges, and every bridge must be crossed completely every time; you cannot walk halfway onto a bridge and then turn around and later cross the other half from the other side. The walk need not start nor end at the same spot. 31/01/ EISCN

Have you heard the one about the two princes and the bishop? 31/01/ EISCN

31/01/ EISCN

Activity We need to work out the locations of: 1. The Blue Prince’s new bridge. 2. The Red Prince’s new bridge. 3. The Bishop’s new bridge. How easy will it be to work out heuristically where the new bridges should go? A better method follows…… 31/01/ EISCN

31/01/ EISCN Start with the problem statement Add meaningful labels

31/01/ EISCN Remove the pictorial elements

31/01/ EISCN Reduce the diagram to a set of nodes that represent the land masses, keeping the labels. Represent the bridges as edges (lines) between the nodes.

31/01/ EISCN You now have a connected graph with nodes and edges. Summary 4 nodes and 7 edges exist as in the starting statement

31/01/2016EISCN 13 Count the number of edges attached to each of the nodes in the graph

31/01/2016EISCN 14 Note whether the degree of each node is even or odd

Now analyse a simple graph For the graph shown there is a complete circuit. Where can you start from? What degree do the nodes have (odd or even)? What rule(s) could we begin to formulate? 31/01/2016EISCN 15

Further analysis – more complexity Where does the path shown begin and end? Are there other paths? What are the degrees (odd or even) of the start and end points? What rule(s) could we begin to formulate? 31/01/2016EISCN 16

Even more complexity….. Can a path be drawn now? There are now more than 2 nodes of odd degree. What rule(s) could we begin to formulate? Leonhard Euler followed our thinking process….. 31/01/2016EISCN 17

Formal network analysis In 1735, the mathematician Leonhard Euler solved the Seven Bridges of Königsberg problem using the techniques we have just used. In his honour, a path through a graph that starts at any node, traverses every edge, and ends at the start node is called an Eulerian Circuit. And, a path through a graph that starts at one node, traverses every edge, and ends at a different node is called an Eulerian Path. Such analysis led Euler to his theorems….. 31/01/2016EISCN 18

Euler’s Theorems 1. If a graph has any nodes of odd-degree, then it CANNOT have an Eulerian Circuit. AND If a graph is connected and every node has even-degree, then it has AT LEAST ONE Eulerian Circuit (usually more). 2. If a graph has more than 2 nodes of odd-degree, then it CANNOT have an Eulerian Path. AND If a graph is connected and has exactly 2 nodes of odd-degree, then it has AT LEAST ONE Eulerian Path (usually more). Any such path must start at one of the odd-degree nodes and end at the other. 3. The sum of the degrees of all the nodes of a graph is an even number (exactly twice the number of edges). In every graph, the number of nodes of odd-degree must be even. 31/01/ EISCN

So.. how do we draw an Eulerian circuit? First, use Euler’s theorems to prove that an Eulerian circuit actually exists. Second, use Hierholzer’s algorithm. 1. Draw any circuit that arrives back at the starting node, noting the START node. 2. Choose another node that has a pending edge and draw any circuit that arrives back at the same chosen node. 3. If necessary, repeat step 2 until all edges have been traversed. 31/01/2016EISCN 20

31/01/2016EISCN 21 Draw an Eulerian Circuit using Hierholzer’s algorithm

Practical uses of graphs Checking for redundant paths in a network. Routing algorithm development. Shortest path problem. Finding minimum spanning tree, etc., etc. Other uses exist in other engineering fields e.g. Kirchhoff's junction rule. 31/01/2016EISCN 22

Summary Complex networks can be analysed using graph theory. Graphs have nodes and edges. Nodes have degrees. Eulerian circuits and paths may exist. Euler’s theorems solve path and circuit problems. Algorithms e.g. Hierholzer’s exist to navigate graphs. 31/01/2016EISCN 23

Finding an Eulerian Circuit 31/01/2016EISCN 24

Draw any circuit, noting the start 31/01/2016EISCN 25

Colour added to help differentiate 31/01/2016EISCN 26

Draw another circuit 31/01/2016EISCN 27

Draw the last circuit 31/01/2016EISCN 28

31/01/2016EISCN 29

One way to number the circuit… From the start node, begin numbering edges until you encounter another circuit. Join that circuit and number the edges until you meet another circuit. Join that circuit and circumnavigate it. Rejoin the previous circuit again until you reach the original circuit, continue to the start node. 31/01/2016EISCN 30

Finished! 31/01/2016EISCN 31