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

Similar documents
Graph Theory. 26 March Graph Theory 26 March /29

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

Circuits and Paths. April 13, 2014

#30: Graph theory May 25, 2009

Introduction to Networks

Section 3.4 Basic Results of Graph Theory

An Interactive Introduction to Graph Theory

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

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

FINDING THE RIGHT PATH

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

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

6.2. Paths and Cycles

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

Worksheet 28: Wednesday November 18 Euler and Topology

MATH 113 Section 9.2: Topology

Sections 5.2, 5.3. & 5.4

11-5 Networks. Königsberg Bridge Problem

Math 110 Graph Theory II: Circuits and Paths

08. First and second degree equations

Simple Graph. General Graph

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

Networks and Graphs: Circuits, Paths, and Graph Structures VII.A Student Activity Sheet 1: Euler Circuits and Paths

Networks and Graphs: Circuits, Paths, and Graph Structures VII.A Student Activity Sheet 1: Euler Circuits and Paths

Street-Routing Problems

Graph Theory

Chapter 8 Topics in Graph Theory

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

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

Lecture 1: An Introduction to Graph Theory

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

TWO CONTRIBUTIONS OF EULER

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

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

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

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?

Introduction to Graphs

Walking with Euler through Ostpreußen and RNA

Planar Graphs and Surfaces. Graphs 2 1/58

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

Graphs And Algorithms

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

Basic Definitions and Concepts Complement to the Prologue and to Chapter 1, Respecting the Rules

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

Mohammad A. Yazdani, Ph.D. Abstract

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

MA 111 Review for Exam 3

Digital Integrated CircuitDesign

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

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

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

Ma/CS 6a Class 8: Eulerian Cycles

Vertex-Edge Graphs. Vertex-Edge Graphs In the Georgia Performance Standards. Sarah Holliday Southern Polytechnic State University

(Refer Slide Time: 06:01)

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

Chapter 11: Graphs and Trees. March 23, 2008

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

of Nebraska - Lincoln

SEVENTH EDITION and EXPANDED SEVENTH EDITION

Kuratowski Notes , Fall 2005, Prof. Peter Shor Revised Fall 2007

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

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

Notebook Assignments

Escher s Tessellations: The Symmetry of Wallpaper Patterns II. Symmetry II

INTRODUCTION TO GRAPH THEORY. 1. Definitions

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

(Refer Slide Time: 02.06)

A simple problem that has a solution that is far deeper than expected!

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

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

Introduction III. Graphs. Motivations I. Introduction IV

WUCT121. Discrete Mathematics. Graphs

Classification of Surfaces

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

Pre-Calculus Matrices

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

5 Graphs

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

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

Salvador Sanabria History of Mathematics. Königsberg Bridge Problem

Order from Chaos. Nebraska Wesleyan University Mathematics Circle

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

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

The Fundamental Group, Braids and Circles

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

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

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

Chapter 5: The Mathematics of Getting Around

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

1. CONVEX POLYGONS. Definition. A shape D in the plane is convex if every line drawn between two points in D is entirely inside D.

Fleury s Algorithm The Adjacency Matrix and Distances Is There a Path From A to B? What is the Path from A to B? Is There a Path From ANY A to ANY B?

Chapter 14 Section 3 - Slide 1

STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH

IE 102 Spring Routing Through Networks - 1

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

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

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

Scope & Sequence Overview - Stage 1, Year 2

a) Graph 2 and Graph 3 b) Graph 2 and Graph 4 c) Graph 1 and Graph 4 d) Graph 1 and Graph 3 e) Graph 3 and Graph 4 f) None of the above

Discrete Mathematics Introduction

Transcription:

Graph Theory

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 of its problems are naturally modeled via graphs. 2

More specifically, we will focus on three (or four) problems. The first, the historical motivation of the subject, is the 7 bridges of Königsburg problem. The second is how to find your way through a maze. The third is how many colors does it take to color a map? 3

7 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 and connecting various parts of the city. The following picture shows the city and its bridges. 4

5

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? Alternatively, is it possible to cross each bridge exactly once, regardless of where you end relative to where you started? 6

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 solved the 7 bridges problem. We will also address other problems which can be solved by the use of graph theory. 7

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. 8

9

The top 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 top left figure sometimes are drawn with straight lines and sometimes with curves does not matter. Nor does it matter where the vertices are positioned. 10

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 problem 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. 11

Graph of the 7 Bridges of Königsburg 12

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. 13

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. 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? 14

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. 15

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. 16

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. 17

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. 18

Mazes 19

Mazes are often difficult to solve because it is hard to distinguish dead ends. Identifying, and then ignoring, dead ends will result in a path through the maze. Mazes appear to be difficult in part because they cause one to make lots of turns, even when you don t actually have to choose one direction or another. By representing a maze as a graph, we have a method to be able to ignore the turns which only complicate the look of a maze. 20

To represent a maze as a graph, we need to focus on what is the important information of a maze. The turns which are forced upon us without requiring us to make a decision are not important. What we need to consider are the junctions where we have a choice of a turn. 21

We represent a maze as a graph by letting the vertices be the junctions; those spots where we have a choice of a direction to turn. We also include the start and finish of the maze. Two vertices are connected with an edge if you can get from one to another without crossing any other junction. In other words, if you go from one junction to another without having the choice of making a turn, then those two junctions are connected with an edge. 22

How to draw the graph of a maze 23

First draw all possible paths. Those are shown in blue in the figure below to the right. 24

Next, erase the boundaries, leaving only the paths. This is not necessary, but can help to do the next step. 25

Mark all the junctions, including the start and finish. Recall that the junctions are the vertices of the graph. 26

Draw the edges by connecting two vertices only if you can get from one to the other without crossing another junction. Drawing the edges as straight lines makes the situation as simple as possible. 27

Dead ends can be represented as short paths that don t end at a vertex. Alternatively, they can be ignored, especially if it is clear what are dead ends. 28

Once you have the graph, find a path from the start to the finish. Comparing the graph and the original drawing of paths will then give you a route through the maze. 29

30

The mazes shown in class today were created at the web site http://hereandabove.com/maze/