Graph Theory Lecture 5: Modeling with Graphs, and Euler Circuits/Paths Spring 2014 Morgan Schreffler Office: POT 902

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

Travel Every Edge 3. Example (Travel Every Edge 3) In the graphs above, can you find a circuit that hits every edge without repeating any edges?

Graph Theory

Notebook Assignments

Sections 5.2, 5.3. & 5.4

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

Characterization of Graphs with Eulerian Circuits

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

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

Grade 7/8 Math Circles March 7, 2012 Introduction to Graph Theory

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

Worksheet 28: Wednesday November 18 Euler and Topology

Launch problem: Lining streets

MA 111 Review for Exam 3

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

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

Circuits and Paths. April 13, 2014

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

SEVENTH EDITION and EXPANDED SEVENTH EDITION

Chapter 5: The Mathematics of Getting Around

Introduction to Graph Theory. A problem to solve. A problem to solve. A problem to solve. Notes. Notes. Notes. Notes. Dr. James Burk.

An Introduction to Graph Theory

Instructor: Paul Zeitz, University of San Francisco

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

Assignments are handed in on Tuesdays in even weeks. Deadlines are:

Unit 7 Day 4 Notes: graph coloring, Graph theory review & Quiz

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

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

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

Chapter 8 Topics in Graph Theory

Discrete mathematics

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

Note that there are questions printed on both sides of each page!

11-5 Networks. Königsberg Bridge Problem

PRIMES Circle: High School Math Enrichment at MIT

Using Euler s Theorem

Logic: The Big Picture. Axiomatizing Arithmetic. Tautologies and Valid Arguments. Graphs and Trees

MA/CS 109 Lecture 3. Networks, Euler paths, and speaking carefully!

Fundamental Properties of Graphs

Chapter 3: Paths and Cycles

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

Lecture 4: Petersen Graph 2/2; also, Friendship is Magic!

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

MATH 101: Introduction to Contemporary Mathematics

Chapter 5 Review. 1. Write a summary of what you think are the important points of this chapter.

MATH 113 Section 9.2: Topology

Chapter 11: Graphs and Trees. March 23, 2008

ASSIGNMENT 4 SOLUTIONS

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

Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) Web search views web pages as a graph

Graph Theory. 26 March Graph Theory 26 March /29

1. The Highway Inspector s Problem

The Konigsberg Bridge Problem

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

Proposition 1. The edges of an even graph can be split (partitioned) into cycles, no two of which have an edge in common.

14 Graph Theory. Exercise Set 14-1

Majority and Friendship Paradoxes

The Human Brain & Graph Theory

Examples of Tasks from Course 1, Unit 4

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?

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

Week 11: Eulerian and Hamiltonian graphs; Trees. 15 and 17 November, 2017

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

Objective- Students will be able to use the Order of Operations to evaluate algebraic expressions. Evaluating Algebraic Expressions

FINDING THE RIGHT PATH

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. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

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

#30: Graph theory May 25, 2009

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

Graphs: A graph is a data structure that has two types of elements, vertices and edges.

Design and Analysis of Algorithms

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Routing is the process of figuring out how to go from point A to point B given how the various networks are connected to one another.

Exercises for Discrete Maths

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

CS70 - Lecture 6. Graphs: Coloring; Special Graphs. 1. Review of L5 2. Planar Five Color Theorem 3. Special Graphs:

Sarah Will Math 490 December 2, 2009

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

CSE 21 Spring 2016 Homework 5. Instructions

Varying Applications (examples)

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

Senior Math Circles November 25, 2009 Graph Theory II

Graph Theory. Chapter 4.

Lecture 6: Graph Properties

MTH-129 Review for Test 4 Luczak

Math 443/543 Graph Theory Notes 2: Transportation problems

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

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

Graph Theory and its Applications

Simple Graph. General Graph

Network Topology and Graph

Week 11: Eulerian and Hamiltonian graphs; Trees. 21 and 23 November, 2018

2. There are 7 people to be seated at a round table. How many seating arrangements are possible? How many times must they change places so that

0.0.1 Network Analysis

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Finite Math A, Chapter 8: Scheduling 1

Topic 10 Part 2 [474 marks]

Graph Coloring. Margaret M. Fleck. 3 May This lecture discusses the graph coloring problem (section 9.8 of Rosen).

Transcription:

Graph Theory Lecture 5: Modeling with Graphs, and Euler Circuits/Paths Spring 2014 Morgan Schreffler Office: POT 902 http://www.ms.uky.edu/~mschreffler

Modeling With Graphs (General Tips) We like to make ideas of graphs useful. Here are some important things to remember about all graphs. Graphs always represent how things are connected or related. Using graphs means recognizing the things and what kinds of connections are being described. Generally speaking, Vertices always represent the things being connected. Edges always represent the connections, but these depend on the things you choose to represent your vertices. A good rule of thumb: If it is hard to figure out the edges, then you probably made the vertices too hard.

Modeling With Graphs (Networks and Scheduling) Here are some instances of how graphs model human interactions. Networks: This is a scenario where people (things) are connected to other people in some way. This could be through friendship (like on Facebook), starring in a movie or writing a paper together. Vertices are people. Edges between people whenever there is an association, like friendship. Scheduling: This is a scenario where people (things) are connected to other people, but through conflict. We want the graph to represent the conflict in some way. Vertices (usually) represent people. Edges between people whenever there is a conflict.

Graph Modeling 1 The math department is having difficulties scheduling courses A G because of limited room availability. In the chart below, an X means two courses cannot be scheduled at the same time. A B C D E F G A X X X X B X X X X C X X X D X X X E X X X X F X X X G X X X Make a graph with vertices A G. Make an edge between vertices if the corresponding courses cannot be scheduled at the same time.

Graph Modeling 2 The math department is having difficulties scheduling courses A G because of limited room availability. The graph below represents the scheduling conflicts. B A C G D F E Find the Chromatic Number of the graph above. What does the Chromatic Number tell you?

Graph Modeling 3: Scheduling Campus Clubs In this table, an X means that there is at least one student in both clubs. For scheduling we need to first find the number of meeting times needed for all students to be able to attend. Ski Book SCRAP GSA Game Bible Dem. Rep. Ski X X Book X X X X SCRAP X X X X GSA X X X X X Game X X X X Bible X X X X X Dem. X X X Rep. X X X The graph we make should have vertices representing clubs. How should we make the edges? Make the graph for this chart and find its Chromatic number. What does this tell you about scheduling?

Graph Modeling 4: Scheduling Sorority Sisters Seven sorority sisters (Alison, Brittney, Caitlynn, Dana, Elaine, Fiona, and Genna) must meet to plan an annual retreat weekend. Some sisters don t get along, as indicated by an X in the chart: A B C D E F G A X B X X C X D X X X E X X X F X X G X X Make a graph that will help you determine the number of scheduling times needed. How many meeting times are needed?

Modeling With Graphs (Maps, Places, and Movement) Here are some specific of how graphs model maps and places. Maps or Places: This is a scenario where the things are states, regions, rooms, or some other locations. The connection between locations is some kind of proximity measure, either a border or passage of some kind. Vertices are physical or geographical locations. Edges whenever there is a way to pass from one location to an adjacent location. Traffic or Movement: This is a scenario where the things are traffic or paths of objects. Connections between traffic/paths represents possible accidents. Vertices are flows of traffic or paths. Edges whenever flow along one path can affect flow along another.

Graph Modeling 5.1: The Bear Trap! A bear (pictured) is followed closely by a bear hunter (not pictured). Whenever the bear crosses from one region into another the hunter lays a number of bear traps along that border. Make a graph with vertices each region the bear can visit. The edges of your graph should represent possible border crossings.

Graph Modeling 5.2: The Bear Trap! The bear really likes to visit regions by crossing different borders, so the bear trapper is a big problem for the bear. Fortunately, the bear knows some graph theory and makes the graph below: Mtn. & Trees Mtn. Mtns. Plains Bear Mtns. & River Riv. & Trees River Can the bear make a round-trip to every region without crossing the same border twice? Can the bear make a round-trip, crossing every border, without having to cross any border twice?

Graph Modeling 6.1: Deer John John the Deer (pictured) is friends with the bear from the previous question. He learns graph theory from the bear and uses it to understand the regions where he (John the Deer) likes to hang. Make a graph that uses regions and borders for vertices and edges.

Graph Modeling 6.2: Deer John John the Deer (pictured) is friends with the bear from the previous question. He learns graph theory from the bear and uses it to understand the regions where he (John the Deer) likes to hang. Road Rd & Mtns N. Plains River Lake Forest S. Plains John Castle Trees Can John the deer make a round-trip, crossing every border, without having to cross any border twice? Can John the deer make ANY trip, crossing every border, without having to cross any border twice?

Circuits and Paths Definition (Circuits and Paths) A circuit of a graph is a route through adjacent vertices that starts at a vertex and ends back at the beginning. A path or trail of a graph is a route through adjacent vertices that starts at a certain vertex and ends at a different vertex. C B D A E Pictured is a path from A to B (or B to A). One more edge (A to B) will make a circuit.

Eulerian Graphs Definition (Euler Circuits and Eulerian Graphs) A circuit that covers every edge EXACTLY ONCE is called an Euler Circuit. A graph is said to be Eulerian if there is an Euler circuit. Not all graphs are Eulerian. We ll eventually figure out which graphs are. For now here s an example: of an Euler Circuit A B C D E C-D-E-B-D-A-C

Is there an Euler Circuit? 1 Can you find an Euler circuit in this graph? What are the degrees of the vertices of this graph?

Is there an Euler Circuit? 2 Is there an Euler circuit in this graph? What are the degrees of the vertices of this graph?

Is there an Euler Circuit? 3 In the graphs above, can you find an Euler circuit? Find the degrees of the vertices of the graphs above. Make a conjecture (or guess) about how to tell when a graph can have an Euler circuit.

Is there an Euler Circuit? 4 Mtn. & Trees Mtn. Mtns. Plains Bear Mtns. & River Riv. & Trees River What are the degrees of the vertices of this graph? Do you think you can find an Euler Circuit?

Euler Circuit Theorem Theorem (Euler Circuit Theorem) A connected graph has an Euler Circuit exactly when every vertex has even degree. (Degrees and Euler Circuits) 2 2 2 4 2 In this example from before, all the vertices have even degree. What s the Catch? The Euler Circuit Theorem only tells us when Euler Circuits exist. It does not tell us how to find them.

Using the Euler Circuit Theorem 1 Find the degrees of the vertices of the graphs above. Which of the graphs has an Euler Circuit? Where can your Euler Circuit begin and end?

Using the Euler Circuit Theorem 2 Find the degrees of the vertices of the graphs above! Which of the graphs has an Euler Circuit? Where can your Euler Circuit begin and end?

Semi-Eulerian Graphs Definition (Euler Paths and Semi-Eulerian Graphs) A path that covers every edge EXACTLY ONCE with an ending vertex that is different than the starting vertex is called an Euler Path (also called an Euler Trail). A graph is said to be Semi-Eulerian if there is an Euler Path. An Euler Path is a little different than an Euler Circuit. We have to start and end at different vertices. of an Euler Path A B C D E F G D-E-F-A-E-B-F-G-B-C

Is there an Euler Path? 1 Can you find an Euler path (not a circuit)in this graph? What are the degrees of the vertices of this graph?

Is there an Euler Path? 2 Can you find an Euler path (not a circuit)in this graph? What are the degrees of the vertices of this graph?

Is there an Euler Path? 3 In the graphs above, can you find an Euler path? Find the degrees of the vertices of the graphs above! Make a conjecture (or guess) about how to tell when a graph has an Euler path.

Is there an Euler Path? 4 Road Rd & Mtns N. Plains River Lake Forest S. Plains John Castle Trees What are the degrees of the vertices of this graph? Do you think you can you find an Euler path?

Euler Path Theorem Theorem (Euler Path Theorem) A connected graph contains an Euler Path exactly when all but two vertices have even degree. The Euler Path MUST begin and end at the odd vertices. (Degrees and Euler Paths) 2 4 1 1 4 2 2 Notice all but two even degrees in an example from before. What s the Catch? The Euler Path Theorem only tells us when Euler Paths exist. It does not tell us how to find them.

Euler Paths 1 (Euler Paths 1) Find the degrees of the vertices of the graphs above! Which of the graphs has an Euler Path? Where must your Euler Path(s) begin and end?

Euler Path 2 (Euler Path 2) Find the degrees of the vertices of the graphs above! Which of the graphs has an Euler Path? Where must your Euler Path(s) begin and end?

Euler s House Euler likes to think about his house, whose blueprint is below: Can Euler travel through every doorway exactly once to make an Euler Circuit? Can Euler travel through every doorway exactly once to make an Euler Path?