Discrete Math and Management Science

Slides:



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

Chapter 7 Graph Theory 7.1 Modeling with graphs and finding Euler circuits. Learning Objectives: Know how to use graphs as models and how to determine.
1 Lecture 5 (part 2) Graphs II Euler and Hamiltonian Path / Circuit Reading: Epp Chp 11.2, 11.3.
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.
Chapter 1: Urban Services Chapter at a Glance…
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.
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.
Euler and Hamilton Paths
Graphs and Euler cycles Let Maths take you Further…
Math for Liberal Studies.  Here is a map of the parking meters in a small neighborhood  Our goal is to start at an intersection, check the meters, and.
Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
The Bridge Obsession Problem By Vamshi Krishna Vedam.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
1 Starter of the day 23 x 27 = x 47 = x 87 = x 55 = x 58 = ???? 54 x 56 = ???? Can you spot the trick for this group of.
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
Euler and Hamilton Paths
Chinese postman problem
Spring 2015 Mathematics in Management Science Chinese Postman Problem What is CPP? CPP & ECs & EPs Fleury’s Algorithm Eulerization.
Aim: What is an Euler Path and Circuit?
© Jalal Kawash 2010 Graphs Peeking into Computer Science.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Chapter 1: Urban Services Lesson Plan
Vertex-Edge Graphs Euler Paths Euler Circuits. The Seven Bridges of Konigsberg.
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.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Chapter 6: Graphs 6.1 Euler Circuits
Chapter 5: The Mathematics of Getting Around
Aim: Graph Theory – Paths & Circuits Course: Math Literacy Do Now: Aim: What are Circuits and Paths? Can you draw this figure without retracing any of.
M Clements Formal Network Theory. Introduction Practical problem – The Seven Bridges of Königsberg Network graphs Nodes & edges Degrees Rules/ axioms.
Introduction to Graph Theory
Graph Theory Two Applications D.N. Seppala-Holtzman St. Joseph ’ s College.
Street Networks Ch. 1 Finite Math. Our Learning Goal (why am I doing this?) To be able to figure out the best path to choose when traveling a street network.
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.
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Çizge Algoritmaları.
Euler and Hamiltonian Graphs
Konigsberg’s Seven Bridges
Chapter 2: Business Efficiency Lesson Plan
UNIT 1: EULER CIRCUITS GRAPH THEORY.
Chapter 2: Business Efficiency Lesson Plan
Euler Paths and Circuits
Euler Circuits and Paths
Graph Theory.
Nuffield Free-Standing Mathematics Activity
Chapter 2: Business Efficiency Business Efficiency
Introduction to Vertex-Edge graphs (2 days)
Chapter 1: Urban Services Lesson Plan
Excursions in Modern Mathematics Sixth Edition
5 The Mathematics of Getting Around
Konigsberg- in days past.
Euler Circuits and Paths
5 The Mathematics of Getting Around
Chapter 1: Urban Services Chapter at a Glance…
Chapter 1: Urban Services Management Science
Applied Combinatorics, 4th Ed. Alan Tucker
Graph Theory Relations, graphs
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Chapter 1: Urban Services Lesson Plan
A Survey of Mathematics with Applications
Presentation transcript:

Discrete Math and Management Science Why is Discrete Math important? http://hsor.org/what_is_or.cfm http://hsor.org/case_studies.cfm

Chapter 1: Urban Services Management Science Uses mathematical methods to help find optimal solutions to management problems. Often called Operations Research. Optimal Solutions — The best (most favorable) solution Government, business, and individuals all seek optimal results. Optimization problems: Finish a job quickly Maximize profits Minimize costs Urban Services to optimize: Checking parking meters Delivering mail Removing snow 2

What is a routing problem? How to deliver goods/services to an assortment of destinations the most efficient way. (best,cheapest,shortest route) This problem comes up in many areas: transportation, communications, and delivery services to name a few.

Examples Mail delivery Garbage collection Police patrols Most importantly – late night pizza deliveries

For instance, it is very important for airlines to efficiently schedule flights among the cities served by the airline. Putting together efficient airline schedules is a routing problem.

We will study two classes of routing problems 1. Graph Theory and Euler circuit problems. (this chapter) 2. Hamilton circuit problem. (the next chapter)

Once upon a time…….. There is a town in Russia whose name today is Kaliningrad. In the 1700s, it was in Prussia and its name was Königsberg. Here's a true story. Once upon a time (OK, in the 18th century), in a place far away (well, Prussia), there once was a town called Königsberg. The townspeople enjoyed walking through their town and passing over the bridges spanning the river which passed through town. The city sits along river Pregel, in which there are two large islands. Seven bridges connected the islands to the mainland , as depicted in the following image. The citizens began to wonder if there was a path that would allow them to cross all seven bridges exactly once. Over the years, a controversy arose and eventually word of it reached a very famous mathematician of the time, Leonhard Euler.

Leonhard Euler (1707–1783) (pronounced “oiler”) Swiss Mathematician Among other discoveries, he was credited with inventing the idea of a graph as well as the concepts of valence and connectedness. Let's reconstruct Euler's solution to the bridge problem.

Seven Bridges of Konigsberg First, we will take a closer look at the bridges and the river.

Now let’s strip away some of the distractions:

Make the land circles and the bridges lines. O L

Simplifying things once again: R K O L

A final simplification: A Graph Definition: Graph – a finite set of dots connecting lines.

Chapter 1: Euler Circuits Outline/learning Objectives To understand the meaning of basic graph terminology. To identify and model Euler circuit and path problems. To eulerize a graph when necessary

Reminder: Graph is a finite set of dots connecting lines. Which of these are graphs? All of them 1) 2) G 3) A D O B L F C E M N 6) 4) H H J J 5) P Q X W L L I I R S K K U V

Edges: {AB, BC, CD, DE, AE, AD, BE, BD} Definition: Graph is a finite set of dots (called vertices, single dot vertex) connecting lines (called edges). C Vertices: {A, B, C, D, E} B D Edges: {AB, BC, CD, DE, AE, AD, BE, BD} A E There are a total of 8 edges in this graph.

List all vertices and the number of edges for each graph. 1) 2) G 3) A D O B L F C E M N V = {A, B, C} E = {CB, BA} 2 EDGES V = {E, D, G, F} E = {ED, DG, GF, FE} 4 EDGES V = {L, M, N, O} E = {LO, ON, LM, MN} 4 EDGES

List all vertices and the number of edges for each graph. 4) 5) P Q X W 6) H J L R S I K U V V = {X, W, U, V} E = {XW, XW, WU, UV, UU, VV} 6 EDGES V = {H, I ,J, K , L} E = {HJ, JK, KI, IH} 4 EDGES V = {S, R, Q, P} E = {PQ, PQ, QR, RS} 4 EDGES

Homework p 20 5, 8 p 22 3, 9 (page 7 is figure 1.6)

Definition: Path in a graph is a route along the edges that starts at a vertex and ends at a vertex. B GCDH is a PATH of length 3. F G C D E H

Definition: Circuit in a graph is a path that starts and ends at the same vertex. B BCGHDCAB is a CIRCUIT. F G C D E H

Path vs. Circuit Paths – Paths can start and end at any vertex using the edges given. Examples: NLB, NMRB, or if you moved from New York to London Circuits – Paths that starts and ends at the same vertex. Examples: MRLM, LRBL, or if you took a vacation to London Nonstop air routes 22

Determine if there is a path and/or a circuit for each graph. Path ABC, No circuit Both Both 1) 2) G 3) A D O B L F C E M N Both Both, PQP circuit Both 6) 6) 4) H H J J 5) P Q X W L L I I R S K K U V

Definition: A graph is connected, if for every pair of vertices there is at least one path connecting them. Connected Connected Connected 1) 3) A B 2) G O D L C M F N E Disconnected Connected Connected 6) 6) 4) H H J J 5) P Q X W L L I I R S K K U V

Definition: Valence (or degree) of a vertex in a graph is the number of edges meeting at the vertex Valence of L = 2 O Val (P) = 3 P Val (O) = 6 M N

Definition: An odd vertex has an odd valence; an even vertex has an even valence. Val (L) = 2 and is an even vertex L Val (P) = 3 and V(P) = odd O Val (O) = 6 and V(O) = even P M N

Determine the valence of each vertex for each graph and state whether it is odd or even. 1) 2) G 3) A D O B L F C E M N Val(A)=1 odd Val(B)=2 even Val(C)=1 odd Val(D)=2 even Val(G)=2 even Val(E)=2 even Val(F)=2 even Val(L)=2 even Val(O)=2 even Val(N)=2 even Val(M)=2 even

Determine the valence of each vertex for each graph and state whether it is odd or even. 6) 4) H J 5) P Q X W L I R S K U V Val(H)=2 even Val(I)=2 even Val(J)=2 even Val(K)=2 even Val(L)=0 Val(P)=2 even Val(Q)=3 odd Val(R)=2 even Val(S)=1 odd Val(X)=2 even Val(W)=3 odd Val(U)=4 even Val(V)=3 odd

Classwork/Homework p20

Graph Theory Yes, start at B, end at C Can the following graph be drawn with one pen/pencil stroke and only cross each edge once? If so, how? E A D B C Yes, start at B, end at C Can it be drawn with one stroke starting and ending at the same vertex? NO

Graph Theory NO, this is NOT an Euler Circuit. Euler went on to formulate a general theory which solved this particular problem and created a new branch of mathematics called graph theory. It can be drawn with one pencil stroke (start at B, end at C), therefore this is a Euler Path. E A D B C Can it be drawn with one stroke starting and ending at the same vertex? NO, this is NOT an Euler Circuit.

Circuit vs. Euler Circuit (Both start and end at same vertex.) Circuits may retrace edges or not use all the edges. Euler circuits travel each edge once and cover all edges.

Definitions: Euler Path – is a path that passes through every edge of a graph once and only once. Euler circuits is a path that passes through every edge of a graph once and only once and starts and ends at the same vertex. Find an Euler Path and circuit for these graphs 1) 2) G A D B F C E Euler Path ABC, no Euler circuit Euler Path and Euler circuit GFEDG

Determine if there is an Euler path and/or Euler Circuit. 1) 2) P Q X W 3) H J L R S I U V K Euler Path VVUUWXW, no Euler circuit Euler Path QPQRS, no Euler circuit Euler Path and Euler circuit HJKI

Two Ways to Find an Euler Circuit Trial and error Keep trying to create different paths to find one that starts and ends at the same point and does not retrace steps. Mathematical approach (better method) Euler’s Theorem: An Euler circuit exists if the following statements are true: All vertices have even valence. The graph is connected.

Graph Theory: Is there an Euler Circuit? Does it have even valence? Is the graph connected? Euler circuit exists if both are “yes.” Yes Yes 36

Graph Theory: Rules for creating Euler Circuits Create (Find) an Euler Circuit Pick a point to start (if none has been given to you). Number the edges in order of travel, showing the direction with arrows. Cover every edge only once, and end at the same vertex where you started. 37

Beyond Euler Circuits Chinese Postman Problem In real life, not all problems will be perfect Euler circuits. What do you do if there are odd valences? Chinese mathematician Meigu Guan first studied this problem in 1962, hence the name. The blue dots indicate parking meters along the street. The graph represents edges with parking meters. Notice only vertices C and G have odd valence. 38

Beyond Euler Circuits: Eulerizing a Graph Eulerize the Graph to Solve Chinese Postman Problem The edge CG is reused, which would make all vertices appear to have even valence. A circuit is made by reusing the edge CG. The graph is eulerized (starts and stops at same point and covers all “edges” once — including reused ones). 39

Eulerizing a Graph Step 1: Identify odd vertices. 2 Odd vertices, X and Y 40

Eulerizing a Graph The key is to turn odd vertices into even vertices by adding “duplicate” edges. This process is called eulerization. 41

Eulerizing a Graph Step 2: Duplicate existing edges to make the odd vertices now even. This is not allowed — must only reuse existing edges. Reuse existing edges between the odd vertices. 42

Eulerizing a Graph Find one Euler circuit. Don’t forget to number the edges in the order traveled! 43

Eulerizing a Graph Rectangular Networks – This is the name given to a street network composed of a series of rectangular blocks that form a large rectangle made up of so many blocks high by so many blocks wide. What is the best route for a postal worker delivering mail in Soho? 44

Eulerizing rectangular networks: “Edge Walker” Start in upper left corner (at A). Travel (clockwise) around the outer boundary. As you travel, add an edge by the following rules: 1) If the vertex is odd, add an edge by linking it to the next vertex. 2) If this next vertex becomes even, skip it (just keep “walking”). 3) If this next vertex becomes odd, (on a corner) link it to the next vertex. 4) Repeat this rule until you reach the upper left corner again. 45