The Mathematics of Touring (Chapter 6)

Similar documents
Chapter 6: Graph Theory

CMPSCI611: Approximating MAX-CUT Lecture 20

Graph Theory Origin and Seven Bridges of Königsberg -Rhishikesh

Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University

Midterm Practice Problems

Networks and Paths. The study of networks in mathematics began in the middle 1700 s with a famous puzzle called the Seven Bridges of Konigsburg.

Euler Paths and Euler Circuits

Reductions & NP-completeness as part of Foundations of Computer Science undergraduate course

CS311H. Prof: Peter Stone. Department of Computer Science The University of Texas at Austin

Unit 5 Length. Year 4. Five daily lessons. Autumn term Unit Objectives. Link Objectives

V. Adamchik 1. Graph Theory. Victor Adamchik. Fall of 2005

Graph Theory Problems and Solutions

Computer Algorithms. NP-Complete Problems. CISC 4080 Yanjun Li

Introduction to Graph Theory

Vectors. Objectives. Assessment. Assessment. Equations. Physics terms 5/15/14. State the definition and give examples of vector and scalar variables.

2. (a) Explain the strassen s matrix multiplication. (b) Write deletion algorithm, of Binary search tree. [8+8]

A permutation can also be represented by describing its cycles. What do you suppose is meant by this?


WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Sum of Degrees of Vertices Theorem

Planar Graphs. Complement to Chapter 2, The Villas of the Bellevue

Graph Theory Lecture 3: Sum of Degrees Formulas, Planar Graphs, and Euler s Theorem Spring 2014 Morgan Schreffler Office: POT 902

1. Then f has a relative maximum at x = c if f(c) f(x) for all values of x in some

Problem Set 7 Solutions

MATHEMATICAL ENGINEERING TECHNICAL REPORTS. An Improved Approximation Algorithm for the Traveling Tournament Problem

Solutions to Bulb questions

Social Media Mining. Network Measures

1. Write the number of the left-hand item next to the item on the right that corresponds to it.

Simple Graphs Degrees, Isomorphism, Paths

Introduction to computer science

One last point: we started off this book by introducing another famously hard search problem:

Playing with Numbers

Just the Factors, Ma am

Chinese postman problem

Extremal Wiener Index of Trees with All Degrees Odd

6.3 Conditional Probability and Independence

Handout #Ch7 San Skulrattanakulchai Gustavus Adolphus College Dec 6, Chapter 7: Digraphs

Cpt S 223. School of EECS, WSU

Click on the links below to jump directly to the relevant section

Prime Factorization 0.1. Overcoming Math Anxiety

Level 1 - Maths Targets TARGETS. With support, I can show my work using objects or pictures 12. I can order numbers to 10 3

Overview for Families

Name Partners Date. Energy Diagrams I

Acquisition Lesson Planning Form Key Standards addressed in this Lesson: MM2A3d,e Time allotted for this Lesson: 4 Hours

Ways We Use Integers. Negative Numbers in Bar Graphs

COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH. 1. Introduction

1.7 Graphs of Functions

Ch. 13.2: Mathematical Expectation

Pythagorean Theorem: Proof and Applications

Managerial Economics Prof. Trupti Mishra S.J.M. School of Management Indian Institute of Technology, Bombay. Lecture - 13 Consumer Behaviour (Contd )

Saturn V Straw Rocket

Category 3 Number Theory Meet #1, October, 2000

Part 1 Expressions, Equations, and Inequalities: Simplifying and Solving

5544 = = = Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

BASIC RULES OF CHESS

EXPONENTIAL FUNCTIONS

The Quality of Internet Service: AT&T s Global IP Network Performance Measurements

Previously, you learned the names of the parts of a multiplication problem. 1. a. 6 2 = 12 6 and 2 are the. b. 12 is the

Full and Complete Binary Trees

THE COLLEGES OF OXFORD UNIVERSITY MATHEMATICS, JOINT SCHOOLS AND COMPUTER SCIENCE. Sample Solutions for Specimen Test 2

1 Error in Euler s Method

For additional information, see the Math Notes boxes in Lesson B.1.3 and B.2.3.

Lecture 3. Linear Programming. 3B1B Optimization Michaelmas 2015 A. Zisserman. Extreme solutions. Simplex method. Interior point method

An Approximation Algorithm for the Unconstrained Traveling Tournament Problem

The fundamental question in economics is 2. Consumer Preferences

Graphing Motion. Every Picture Tells A Story

Linear functions Increasing Linear Functions. Decreasing Linear Functions

Data Structures and Algorithms Written Examination

MATHEMATICS. Y5 Multiplication and Division 5330 Square numbers, prime numbers, factors and multiples. Equipment. MathSphere

Lecture 16 : Relations and Functions DRAFT

Near Optimal Solutions

Graphing calculators Transparencies (optional)

Lecture 17 : Equivalence and Order Relations DRAFT

Discrete Mathematics Problems

1. The RSA algorithm In this chapter, we ll learn how the RSA algorithm works.

Chapter 3. Distribution Problems. 3.1 The idea of a distribution The twenty-fold way

Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis. Contents. Introduction. Maarten van Steen. Version: April 28, 2014

COWLEY COUNTY COMMUNITY COLLEGE REVIEW GUIDE Compass Algebra Level 2

Lesson #13 Congruence, Symmetry and Transformations: Translations, Reflections, and Rotations

Factorizations: Searching for Factor Strings

The Classes P and NP. mohamed@elwakil.net

Chapter 1: Looking at Data Section 1.1: Displaying Distributions with Graphs

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

Bits Superposition Quantum Parallelism

Maths Targets for pupils in Year 2

3.1. Angle Pairs. What s Your Angle? Angle Pairs. ACTIVITY 3.1 Investigative. Activity Focus Measuring angles Angle pairs

Sequences. A sequence is a list of numbers, or a pattern, which obeys a rule.

3 Some Integer Functions

Mental Questions. Day What number is five cubed? 2. A circle has radius r. What is the formula for the area of the circle?

Every tree contains a large induced subgraph with all degrees odd

Connectivity and cuts

Hooray for the Hundreds Chart!!

Chapter 17: Light and Image Formation

Analysis of Algorithms, I

Decision Mathematics D1. Advanced/Advanced Subsidiary. Friday 12 January 2007 Morning Time: 1 hour 30 minutes. D1 answer book

Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis

TEACHER S GUIDE TO RUSH HOUR

Unit 9. Unit 10. Unit 11. Unit 12. Introduction Busy Ant Maths Year 2 Medium-Term Plans. Number - Geometry - Position & direction

Lies My Calculator and Computer Told Me

Transcription:

The Mathematics of Touring (Chapter 6) In Chapter 5, we studied Euler paths and Euler circuits: paths and circuits that use every edge of a graph. What if the goal is to visit every vertex instead of every edge?

The Traveling Salesman Problem (TSP) Willy, a traveling salesman, has to visit each of several cities (say, the 48 state capitals of the continental United States) He would like his trip to cover as little distance as possible. In what order should Willy visit the 48 cities?

The Traveling Salesman Problem (TSP) The TSP comes up in many other contexts.

The Traveling Salesman Problem (TSP) The TSP comes up in many other contexts. A spacecraft needs to visit each of six sites on Mars to collect samples (fuel is very expensive on Mars!)

The Traveling Salesman Problem (TSP) The TSP comes up in many other contexts. A spacecraft needs to visit each of six sites on Mars to collect samples (fuel is very expensive on Mars!) A school bus needs to visit each of several pickup/dropoff locations (here the issue is not money, but time)

The Traveling Salesman Problem (TSP) The TSP comes up in many other contexts. A spacecraft needs to visit each of six sites on Mars to collect samples (fuel is very expensive on Mars!) A school bus needs to visit each of several pickup/dropoff locations (here the issue is not money, but time) A mother is taking her four-year-old trick-or-treating and needs to visit each of eight friends and relatives (student in this class 10 years ago)

The TSP As A Graph Problem Suppose we have a graph in which every edge has a weight (representing its cost, time, or distance). A 7 11 B 5 3 6 8 8 7 1 C D 5 E The TSP is then to find a path or a circuit that visits every vertex; and has total weight as low as possible.

Hamilton Paths and Hamilton Circuits A Hamilton path is a path that uses every vertex of a graph exactly once.

Hamilton Paths and Hamilton Circuits A Hamilton path is a path that uses every vertex of a graph exactly once. A Hamilton circuit is a circuit that uses every vertex of a graph exactly once.

Hamilton Paths and Hamilton Circuits A Hamilton path is a path that uses every vertex of a graph exactly once. A Hamilton circuit is a circuit that uses every vertex of a graph exactly once. By contrast, an Euler path/circuit is a path/circuit that uses every edge exactly once. Reminder: Path means that the starting and ending vertices are different; circuit means that they are the same.

Hamilton Paths and Hamilton Circuits

Hamilton Paths and Hamilton Circuits Start here...

Hamilton Paths and Hamilton Circuits

Hamilton Paths and Hamilton Circuits

Hamilton Paths and Hamilton Circuits

Hamilton Paths and Hamilton Circuits

Hamilton Paths and Hamilton Circuits

Hamilton Paths and Hamilton Circuits

Hamilton Paths and Hamilton Circuits Done!

Hamilton Paths and Hamilton Circuits Changing the starting vertex (or reference vertex ) does not change the Hamilton circuit, because the same edges are traversed in the same directions.

Hamilton Paths and Hamilton Circuits

Hamilton Paths and Hamilton Circuits

Hamilton Paths and Hamilton Circuits We can also make a Hamilton circuit into its mirror image by reversing direction. The mirror image uses the same edges, but backwards, so it is not considered the same as the original Hamilton circuit.

Hamilton Paths and Hamilton Circuits

Hamilton vs. Euler Can a graph have both a Hamilton circuit and an Euler circuit?

Hamilton vs. Euler Can a graph have both a Hamilton circuit and an Euler circuit? A B C D E

Hamilton vs. Euler Can a graph have both a Hamilton circuit and an Euler circuit? A B C D E

Hamilton vs. Euler Can a graph have both a Hamilton circuit and an Euler circuit? A B C D E

Hamilton vs. Euler Can a graph have a Hamilton circuit, but not an Euler circuit?

Hamilton vs. Euler Can a graph have a Hamilton circuit, but not an Euler circuit? A B C D

Hamilton vs. Euler Can a graph have an Euler circuit, but not a Hamilton circuit?

Hamilton vs. Euler Can a graph have an Euler circuit, but not a Hamilton circuit? A B C D E

Hamilton vs. Euler Can a graph have neither a Hamilton circuit nor an Euler circuit? (To avoid silly answers, let s just consider connected graphs.)

Hamilton vs. Euler Can a graph have neither a Hamilton circuit nor an Euler circuit? (To avoid silly answers, let s just consider connected graphs.)

Hamilton vs. Euler Can a graph have neither a Hamilton circuit nor an Euler circuit? (To avoid silly answers, let s just consider connected graphs.)

Hamilton vs. Euler Can a graph have neither a Hamilton circuit nor an Euler circuit? (To avoid silly answers, let s just consider connected graphs.)

Hamilton vs. Euler Conclusion: Whether a graph does or does not have a Hamilton circuit tells you nothing about whether it has an Euler circuit, and vice versa. The same is true for Hamilton/Euler paths (rather than circuits).

Which Graphs Have Hamilton Circuits? We know how to determine whether a graph has an Euler path or circuit: count the odd vertices. On the other hand, there is no simple way to tell whether or not a given graph has a Hamilton path or circuit.

Finding the Shortest Hamilton Circuit Rather than asking whether a particular graph has a Hamilton circuit, we will be looking at graphs with lots of Hamilton circuits, and trying to find the shortest one. For example, Willy the traveling salesman has the option to drive from any state capital to any other, so the graph he lives in has lots of edges.