Breakfast Bytes: Pigeons, Holes, Bridges and Computers Alan Kaylor Cline November 24, 2009.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

The Pigeonhole Principle Alan Kaylor Cline. The Pigeonhole Principle Statement Children’s Version: “If k > n, you can’t stuff k pigeons in n holes without.
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
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
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Graphs. Overview What is a graph? Some terminology Types of graph Implementing graphs (briefly) Some graph algorithms Graphs 2/18.
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
Euler Graphs Section Euler Graphs 2 Circuit? Path? Non- traversable? A D E C B A D E C B A D E C B End at A End at B Start at A Miss an edge.
Euler and Hamilton Paths
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
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.
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.
GRAPH Learning Outcomes Students should be able to:
Fall 2015 COMP 2300 Discrete Structures for Computation
Graphs Chapter 10.
EECS 203: It’s the end of the class and I feel fine. Graphs.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
7.1 Introduction to Graph Theory
Graph Theory Topics to be covered:
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.
Slide 7- 1 Copyright © 2012 Pearson Education, Inc.
Euler and Hamilton Paths
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
2003 ICTM Contest Division A Orals Topic: Graph Theory
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
CS 200 Algorithms and Data Structures
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
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.
One day a guy approached us with a puzzle he has been pondering on for approximately seven years. He called this the ‘Walls and Lines Puzzle’.
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
Discrete Mathematical Structures: Theory and Applications
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Vertex-Edge Graphs Euler Paths Euler Circuits. The Seven Bridges of Konigsberg.
AND.
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
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.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.2 Euler Paths, and Euler Circuits.
Chapter 6: Graphs 6.1 Euler Circuits
Review Euler Graph Theory: DEFINITION: A NETWORK IS A FIGURE MADE UP OF POINTS (VERTICES) CONNECTED BY NON-INTERSECTING CURVES (ARCS). DEFINITION: A VERTEX.
Graph Theory Two Applications D.N. Seppala-Holtzman St. Joseph ’ s College.
The Pigeonhole Principle Alan Kaylor Cline. The Pigeonhole Principle Statement Children’s Version: “If k > n, you can’t stuff k pigeons in n holes without.
CS 261 – Nov. 17 Graph properties – Bipartiteness – Isomorphic to another graph – Pseudograph, multigraph, subgraph Path Cycle – Hamiltonian – Euler.
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
1 Lecture 5 (part 2) Graphs II (a) Circuits; (b) Representation Reading: Epp Chp 11.2, 11.3
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Eulerian tours Miles Jones MTThF 8:30-9:50am CSE 4140 August 15, 2016.
Euler Paths and Circuits
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory.
Graphs Chapter 13.
Excursions in Modern Mathematics Sixth Edition
Konigsberg- in days past.
Euler and Hamilton Paths
The Pigeonhole Principle
Presentation transcript:

Breakfast Bytes: Pigeons, Holes, Bridges and Computers Alan Kaylor Cline November 24, 2009

Bridges

Königsberg

How did you say that?

Königsberg

Did you have to write it with the funny o?

Nope. You can write this with “oe” instead of “ö ”.

Did you have to write it with the funny o? Koenigsberg Nope. You can write this with “oe” instead of “ö ”.

Did you have to write it with the funny o? Koenigsberg Nope. You can write this with “oe” instead of “ö ”. That looks familiar

Koenig+s+berg Koenig

Don’t we have a street in Austin with that name? Koenig+s+berg Koenig

Don’t we have a street in Austin with that name? Koenig+s+berg Koenig

Don’t we have a street in Austin with that name? Koenig+s+berg Koenig Yes, and another way of pronouncing “oe” in German is long A.

Koenig So, we could pronounce: as KAY-nig?

Koenig So, we could pronounce: as KAY-nig? YUP

Does this have anything to do with computer science?

NOPE

Back to Königsberg

Notice the seven bridges Back to Königsberg

Notice the seven bridges

Leonard Euler asked: Can you start someplace and return there having crossed each bridge exactly once

You try it.

Couldn’t do it, could you?

Can we make this easier to consider?

Let’s introduce some dots for the land areas:

… and some lines for the bridges:

… and remove the picture:

Do we gain anything by doing this?

Sure. It’s easier to concentrate on what matters

The lesson here is that sometimes it’s better to work with a model of the problem that captures just what’s important and no more

The lesson here is that sometimes it’s better to work with a model of the problem that captures just what’s important and no more. We call this abstraction

Can you see from the abstract model why there is no solution to the Seven Bridges of Königsberg Problem?

This is a general truth: In any graph, there is a circuit containing every edge exactly once if and only if every node touches an even number of edges.

In the Seven Bridges of Königsberg Problem all four of the nodes have an odd number of edges touching them

So there is no solution

In the Seven Bridges of Königsberg Problem all four of the nodes have an odd number of edges touching them. So there is no solution

Now you try this one

Pigeons and Holes

The Pigeonhole Principle

“If you have more pigeons than pigeonholes, you can’t stuff the pigeons into the holes without having at least two pigeons in the same hole.”

The Pigeonhole Principle Example 1: Twelve people are on an elevator and they exit on ten different floors. At least two got off on the same floor.

The Pigeonhole Principle Example 2: My house is burning down, it’s dark, and I need a pair of matched socks. If I have socks of 4 colors, how many socks must I take from the drawer to be certain I have a matched pair.

The Pigeonhole Principle Example 3: Let’s everybody select a favorite number between 1 and _.

The Pigeonhole Principle Example 4: Please divide 5 by 7 and obtain at least 13 decimal places.

Let’s divide 5 by 7 and see what happens..7 7|

Let’s divide 5 by 7 and see what happens..71 7|

Let’s divide 5 by 7 and see what happens |

Let’s divide 5 by 7 and see what happens |

Let’s divide 5 by 7 and see what happens |

Let’s divide 5 by 7 and see what happens |

Let’s divide 5 by 7 and see what happens |

Let’s divide 5 by 7 and see what happens … 7| Same remainder! Thus, the process must repeat.

And this must happen whenever we divide whole numbers … 3| … 11| … 237| … 4|

planar Graphs

This doesn’t look planar...

but it is.

All that matters is that there is some planar representation.

How about this problem:

You are given three houses… H1 H3H2

How about this problem: You are given three houses… and three utilities H1 H3H2 GasWaterElec.

How about this problem: You are given three houses… and three utilities H1 H3H2 GasWaterElec. Can you connect each of the houses to each of the utilities without crossing any lines?

Here’s how NOT to do it H1 H2H3 WaterElec.Gas

Here’s how NOT to do it H1 H2H3 WaterElec.Gas Remember: No crossing lines.

Now you try. H1 H3H2 GasWaterElec.

Here’s another problem:

You are given five nodes…

Here’s another problem: You are given five nodes… Can you connect each node to the others without crossing lines?

This is NOT a solution:

Now you try.

You could not solve either problem. What’s interesting is that those two problems are the ONLY ones that cannot be solved.

You could not solve either problem. What’s interesting is that those two problems are the ONLY ones that cannot be solved. This is the result: A graph is nonplanar if and only if it contains as subgraphs either the utility graph or the complete five node graph.

Can you say that again?

1. Look at all subgraphs with five or six nodes.

Can you say that again? 1. Look at all subgraphs with five or six nodes. 2. If you find an occurance of the utility graph or the complete graph with five nodes, it’s nonplanar.

Can you say that again? 1. Look at all subgraphs with five or six nodes. 2. If you find an occurance of the utility graph or the complete graph with five nodes, it’s nonplanar. 3. If you don’t find those, it’s planar.

So using that, tell me if this graph is planar:

You can find this subgraph, so it’s not planar

Hamiltonian Circuits

Back when we were looking at the Seven Bridges of Königsberg Problem, we wanted a circuit that used every edge. Now let’s see is we can find a circuit that visits every node once

That was simple. Try this one:

Here’s the solution:

Here’s another one:

And here’s its solution:

Traveling Salesman Problem

Here we are given some nodes and we try to create a circuit that has minimum total length.

This is a 10 node problem to try.

Here’s the solution.

This is a 13 node problem to try.

Here’s the solution.

Why could a solution never have a crossing?

Because you can always remove the crossing and get a shorter path.