Graph Theory. 26 March Graph Theory 26 March /29

Similar documents
Graph theory was invented by a mathematician named Euler in the 18th century. We will see some of the problems which motivated its study.

14.2 Euler Paths and Circuits filled in.notebook November 18, Euler Paths and Euler Circuits

#30: Graph theory May 25, 2009

Section 3.4 Basic Results of Graph Theory

Junior Circle Meeting 3 Circuits and Paths. April 18, 2010

Circuits and Paths. April 13, 2014

FINDING THE RIGHT PATH

Introduction to Networks

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around

AQR UNIT 7. Circuits, Paths, and Graph Structures. Packet #

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around

An Interactive Introduction to Graph Theory

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z

The Bridges of Konigsberg Problem Can you walk around the town crossing each bridge only once?

Section Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

11-5 Networks. Königsberg Bridge Problem

Intermediate Math Circles Wednesday, February 22, 2017 Graph Theory III

Undirected Network Summary

Graph Theory Problems Instructor: Natalya St. Clair. 1 The Seven Bridges of Königsberg Problem

Section Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Chapter 8 Topics in Graph Theory

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory

08. First and second degree equations

MATH 113 Section 9.2: Topology

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006

Sections 5.2, 5.3. & 5.4

Planar Graphs and Surfaces. Graphs 2 1/58

TWO CONTRIBUTIONS OF EULER

Lecture 1: An Introduction to Graph Theory

Chapter 5: The Mathematics of Getting Around

Excursions in Modern Mathematics Sixth Edition. Chapter 5 Euler Circuits. The Circuit Comes to Town. Peter Tannenbaum

MIT BLOSSOMS INITIATIVE. Taking Walks, Delivering Mail: An Introduction to Graph Theory Karima R. Nigmatulina MIT

Worksheet 28: Wednesday November 18 Euler and Topology

6.2. Paths and Cycles

WUCT121. Discrete Mathematics. Graphs

The premature state of Topology and Graph Theory nourished by Seven Bridges of Königsberg Problem

SEVENTH EDITION and EXPANDED SEVENTH EDITION

Chapter 1. Urban Services. Chapter Outline. Chapter Summary

Walking with Euler through Ostpreußen and RNA

Graphs. Reading Assignment. Mandatory: Chapter 3 Sections 3.1 & 3.2. Peeking into Computer Science. Jalal Kawash 2010

Salvador Sanabria History of Mathematics. Königsberg Bridge Problem

The Fundamental Group, Braids and Circles

Topics Covered. Introduction to Graphs Euler s Theorem Hamiltonian Circuits The Traveling Salesman Problem Trees and Kruskal s Algorithm

INTRODUCTION TO GRAPH THEORY. 1. Definitions

Beyond the Euler Trail. Mathematics is often thought of as formulas, ratios, and the number Pi. The history of

The Human Brain & Graph Theory

Multi-edges, loops, and two or more pieces are all allowed. Example 4 (Not Graphs). None of the following are graphs.

Simple Graph. General Graph

EULERIAN GRAPHS AND ITS APPLICATIONS

Grade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015

Pre-Calculus. Slide 1 / 192. Slide 2 / 192. Slide 3 / 192. Matrices

Pre-Calculus Matrices

Euler and Hamilton circuits. Euler paths and circuits

14 Graph Theory. Exercise Set 14-1

Pre-Calculus. Introduction to Matrices. Slide 1 / 192 Slide 2 / 192. Slide 3 / 192. Slide 4 / 192. Slide 6 / 192. Slide 5 / 192. Matrices

Dieter Jungnickel (2008), Graphs, Networks and Algorithms, 3rd edition, which is available online via SpringerLink.

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory

Born in Tulsa in 1914 and passed away in Norman in 2010.

Graphs And Algorithms

Mohammad A. Yazdani, Ph.D. Abstract

Displaying Data with Graphs. Chapter 6 Mathematics of Data Management (Nelson) MDM 4U

Graph Theory

Launch problem: Lining streets

MATH 101: Introduction to Contemporary Mathematics

CHAPTER 10 GRAPHS AND TREES. Copyright Cengage Learning. All rights reserved.

GRAPH THEORY AND COMBINATORICS ( Common to CSE and ISE ) UNIT 1

Two vertices that are joined by an edge are said to be adjacent. They are also called neighbours.

Introduction to Graphs

Week 7: Introduction to Graph Theory. 24 and 26 October, 2018

MA 111 Review for Exam 3

A Poem on Two Cases of Combinatorics (by aba)

Characterization of Graphs with Eulerian Circuits

GRAPH THEORY AND LOGISTICS

SIM Camp Instructor Application Summer 2017 Submission 4 12/31/ :19:35 A.M.

Planar Graphs, Solids, and Surfaces. Planar Graphs 1/28

Basic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions

Sarah Will Math 490 December 2, 2009

Math 110 Graph Theory II: Circuits and Paths

Digital Integrated CircuitDesign

Week 10: Colouring graphs, and Euler s paths. 14 and 16 November, 2018

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 9 Notes. Class URL:

Order from Chaos. Nebraska Wesleyan University Mathematics Circle

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Discrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs

Unit 7 Day 2 Section Vocabulary & Graphical Representations Euler Circuits and Paths

SMMG September 16 th, 2006 featuring Dr. Jessica Purcell Geometry out of the Paper: An Introduction to Manifolds

New Jersey Center for Teaching and Learning. Progressive Mathematics Initiative

IE 102 Spring Routing Through Networks - 1

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?

1 Euler Circuits. Many of the things we do in daily life involve networks, like the one shown below [Houston Street Map]. Figure 1: Houston City Map

Chapter 11: Graphs and Trees. March 23, 2008

Discrete Mathematics and Probability Theory Fall 2013 Midterm #2

Notebook Assignments

STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH

Brief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions

Order from Chaos. University of Nebraska-Lincoln Discrete Mathematics Seminar

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8

Graph Theory Day Four

Graph Theory(Due with the Final Exam)

Transcription:

Graph Theory 26 March 2012 Graph Theory 26 March 2012 1/29

Graph theory was invented by a mathematician named Euler in the 18th century. We will see some of the problems which motivated its study. However, it wasn t studied too systematically until the latter half of the 20th century. Computer Science applications have driven its development, since many CS problems are naturally modeled via graphs. Graph Theory 26 March 2012 2/29

Graph theory was invented by a mathematician named Euler in the 18th century. We will see some of the problems which motivated its study. However, it wasn t studied too systematically until the latter half of the 20th century. Computer Science applications have driven its development, since many CS problems are naturally modeled via graphs. The first problem we ll look at is the historical motivation of the subject, the Seven Bridges of Königsburg problem. Graph Theory 26 March 2012 2/29

Leonard Euler Graph Theory 26 March 2012 3/29

Leonard Euler (pronounced Oiler) was a Swiss mathematician of the 18th century. He was extremely prolific, and his work influenced many areas of mathematics. He spent most of his career in St. Petersburg and Berlin. Besides graph theory, he contributed to number theory, including proving his generalization of Fermat s little theorem used in RSA encryption, and came up with the formula e πi + 1 = 0 relating the irrational number π and the imaginary number i. Graph Theory 26 March 2012 4/29

Leonard Euler (pronounced Oiler) was a Swiss mathematician of the 18th century. He was extremely prolific, and his work influenced many areas of mathematics. He spent most of his career in St. Petersburg and Berlin. Besides graph theory, he contributed to number theory, including proving his generalization of Fermat s little theorem used in RSA encryption, and came up with the formula e πi + 1 = 0 relating the irrational number π and the imaginary number i. Graph Theory 26 March 2012 4/29

Seven Bridges of Königsburg The origin of graph theory was the following problem. In the city of Königsburg, in present day Lithuania, there are seven bridges passing over the river connecting various parts of the city. Graph Theory 26 March 2012 5/29

Seven Bridges of Königsburg The origin of graph theory was the following problem. In the city of Königsburg, in present day Lithuania, there are seven bridges passing over the river connecting various parts of the city. The following picture shows the city and its bridges. Graph Theory 26 March 2012 5/29

Königsburg Graph Theory 26 March 2012 6/29

Another Picture of the Seven Bridges Graph Theory 26 March 2012 7/29

The problem, possibly originating from people strolling around the city, is this: Is it possible to cross each bridge exactly once and end up where you started? Graph Theory 26 March 2012 8/29

The problem, possibly originating from people strolling around the city, is this: Is it possible to cross each bridge exactly once and end up where you started? A variation is to ask: Is it possible to cross each bridge exactly once, regardless of where you start and end? Graph Theory 26 March 2012 8/29

The problem, possibly originating from people strolling around the city, is this: Is it possible to cross each bridge exactly once and end up where you started? A variation is to ask: Is it possible to cross each bridge exactly once, regardless of where you start and end? Try to find a way to cross each bridge exactly once. Also try the same thing on the second picture below. If you cannot, try to think about whether it is because you aren t trying hard enough or if it looks to be impossible. Graph Theory 26 March 2012 8/29

Can you Find a Path to Cross Each Bridge Exactly Once? A Found a path for both pictures B Found a path for just the left picture C Found a path for just the right picture D Didn t find a path for either Graph Theory 26 March 2012 9/29

Answer If you didn t find a path for the left picture, don t feel bad. We ll see that it is impossible. Graph Theory 26 March 2012 10/29

Answer If you didn t find a path for the left picture, don t feel bad. We ll see that it is impossible. For the right picture there is a path that crosses each bridge exactly once. For example, here is a path starting on the north shore and ending on the east island. Graph Theory 26 March 2012 10/29

Answer If you didn t find a path for the left picture, don t feel bad. We ll see that it is impossible. For the right picture there is a path that crosses each bridge exactly once. For example, here is a path starting on the north shore and ending on the east island. It is not possible to do this while starting and ending on the same land mass. We ll explore why. Graph Theory 26 March 2012 10/29

Euler solved this problem by representing the situation as a structure which we now call a graph. This use of the term graph is different than that occurring in algebra. Graph Theory 26 March 2012 11/29

Euler solved this problem by representing the situation as a structure which we now call a graph. This use of the term graph is different than that occurring in algebra. We will illustrate how Euler used graph theory to solve the 7 bridges problem. We will also address other problems which can be solved by the use of graph theory. Graph Theory 26 March 2012 11/29

What is a Graph? A graph consists of a bunch of points, usually called vertices. Some of the vertices are connected to each other. When a vertex is connected to another, that connection is called an edge. We can draw edges as straight line segments or curves. Graph Theory 26 March 2012 12/29

What is a Graph? A graph consists of a bunch of points, usually called vertices. Some of the vertices are connected to each other. When a vertex is connected to another, that connection is called an edge. We can draw edges as straight line segments or curves. Here are some examples of graphs. Graph Theory 26 March 2012 12/29

Graph Theory 26 March 2012 13/29

Graph Theory 26 March 2012 13/29

Graph Theory 26 March 2012 14/29

Graph Theory 26 March 2012 14/29

The first two graphs look different, but they represent the same information. Both have the top three vertices connected to each of the three bottom vertices. That the edges in the left figure sometimes are drawn with straight lines and sometimes with curves does not matter. Nor does it matter where the vertices are positioned. Graph Theory 26 March 2012 15/29

Euler represented the 7 bridges problem as a graph in the following way. Each land mass was represented as a vertex. Two vertices are connected by an edge if the corresponding land masses are connected by a bridge. Graph Theory 26 March 2012 16/29

Euler represented the 7 bridges problem as a graph in the following way. Each land mass was represented as a vertex. Two vertices are connected by an edge if the corresponding land masses are connected by a bridge. The graph representing the situation is shown on the next slide. As we have indicated, the shape of the edges is irrelevant. Only what matters are which vertices are connected. Graph Theory 26 March 2012 16/29

Euler represented the 7 bridges problem as a graph in the following way. Each land mass was represented as a vertex. Two vertices are connected by an edge if the corresponding land masses are connected by a bridge. The graph representing the situation is shown on the next slide. As we have indicated, the shape of the edges is irrelevant. Only what matters are which vertices are connected. Since there are 4 land masses, there are 4 vertices. The 7 bridges correspond to 7 edges. Graph Theory 26 March 2012 16/29

Graph of the 7 Bridges of Königsburg Graph Theory 26 March 2012 17/29

Graph of the 8 Bridges of Who-ville Graph Theory 26 March 2012 18/29

A path on a graph is a journey through various vertices, where you can go from one to another as long as there is an edge connecting them. A circuit is a path which returns to the starting point. Graph Theory 26 March 2012 19/29

A path on a graph is a journey through various vertices, where you can go from one to another as long as there is an edge connecting them. A circuit is a path which returns to the starting point. This idea comes from the original motivation for graphs. A path in the 7 bridges graph can be though of as a walk across various bridges. Graph Theory 26 March 2012 19/29

In honor of Euler s work, we call a path which crosses each edge exactly once an Euler path. Graph Theory 26 March 2012 20/29

In honor of Euler s work, we call a path which crosses each edge exactly once an Euler path. If the Euler path starts and ends at the same vertex, then it is called an Euler circuit. Graph Theory 26 March 2012 20/29

In honor of Euler s work, we call a path which crosses each edge exactly once an Euler path. If the Euler path starts and ends at the same vertex, then it is called an Euler circuit. Besides this problem, a reason for wanting to consider such paths is to minimize driving. A UPS truck wants to make deliveries as efficiently as possible, so doesn t want to repeat driving down a street if it is not necessary. Graph Theory 26 March 2012 20/29

In honor of Euler s work, we call a path which crosses each edge exactly once an Euler path. If the Euler path starts and ends at the same vertex, then it is called an Euler circuit. Besides this problem, a reason for wanting to consider such paths is to minimize driving. A UPS truck wants to make deliveries as efficiently as possible, so doesn t want to repeat driving down a street if it is not necessary. In terms of graph theory, the 7 bridges problem is then: Is there an Euler circuit (or Euler path) on the graph representing Königsburg? Graph Theory 26 March 2012 20/29

Some More Examples Before we see how Euler solved the problem, here are some more examples to try. Graph Theory 26 March 2012 21/29

Some More Examples Before we see how Euler solved the problem, here are some more examples to try. Can you trace a path over each of these figures without lifting your pencil or retracing any line segments? Graph Theory 26 March 2012 21/29

The pictures with the green checkmark can be traced as desired, the ones with the red x cannot. In the top row the second and fourth can be traced but not starting and ending at the same point. The same is true for the fourth picture in the bottom row. Graph Theory 26 March 2012 22/29

Euler s Solution of the 7 Bridges Problem Euler discovered that, in order to have an Euler circuit, the number of edges connected to each vertex must be even. Graph Theory 26 March 2012 23/29

Euler s Solution of the 7 Bridges Problem Euler discovered that, in order to have an Euler circuit, the number of edges connected to each vertex must be even. He also saw that in order to have an Euler path, every vertex, except for at most two, must have an even number of edges connected to it. If two have an odd number of edges, those could be the start and the end of the path. Graph Theory 26 March 2012 23/29

The graph to the left has an Euler circuit. The one to the right does not, but it does have an Euler path, when one starts at the top left vertex and finishes at the top right. Graph Theory 26 March 2012 24/29

Roughly, Euler reasoned that if there was an Euler path or circuit, then for any vertex other than the start or finish, each time you reached the vertex, you need two edges, one to get there and one to get away. The number of edges connected to the vertex is then twice the number of times you cross the vertex, and so is an even number. Graph Theory 26 March 2012 25/29

Since the 7 bridges graph has 3 vertices with an odd number of edges connected to them, there is no Euler path or Euler circuit. Graph Theory 26 March 2012 26/29

Since the 7 bridges graph has 3 vertices with an odd number of edges connected to them, there is no Euler path or Euler circuit. Thus, it is impossible to walk across each of the 7 bridges exactly once. Graph Theory 26 March 2012 26/29

For the 8 Bridges of Who-ville, two vertices have an even number of edges connected to them. The other two, the north land and east island, have an odd number. We can then start at the north and end at the east island, or vice-versa, and do an Euler path. Graph Theory 26 March 2012 27/29

Next Time We ll apply graph theory to the problem of coloring maps. In particular, we ll address the question of what is the smallest number of colors needed to color a map so that any two regions which share a border have different colors. Graph Theory 26 March 2012 28/29

Quiz Question With the graph above, is there a path that crosses each edge exactly once (whether or not you end at the same vertex as you started)? A Yes B No Graph Theory 26 March 2012 29/29