Geocaching: Using Multi-Billion Dollar Technology (and Math) to find Tupperware in the Woods CMC3 Recreational Conference Bruce Armbrust- Lake Tahoe Community.

Slides:



Advertisements
Similar presentations
Decision Maths Networks Kruskals Algorithm Wiltshire Networks A Network is a weighted graph, which just means there is a number associated with each.
Advertisements

Problem solving with graph search
Great Theoretical Ideas in Computer Science
Hard Problems Some problems are hard to solve. No polynomial time algorithm is known Most combinatorial optimization problems are hard Popular NP-hard.
CS 206 Introduction to Computer Science II 04 / 01 / 2009 Instructor: Michael Eckmann.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Shortest Paths Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 9.6 Based on slides from Chuck Allison, Michael T.
Great Theoretical Ideas in Computer Science for Some.
Factoring Polynomials
CS 206 Introduction to Computer Science II 11 / 07 / 2008 Instructor: Michael Eckmann.
9.2 The Traveling Salesman Problem. Let us return to the question of finding a cheapest possible cycle through all the given towns: We have n towns (points)
Great Theoretical Ideas in Computer Science.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
CS 206 Introduction to Computer Science II 11 / 10 / 2008 Instructor: Michael Eckmann.
CSE 326: Data Structures NP Completeness Ben Lerner Summer 2007.
CS 206 Introduction to Computer Science II 11 / 05 / 2008 Instructor: Michael Eckmann.
1 Internet Networking Spring 2002 Tutorial 6 Network Cost of Minimum Spanning Tree.
Trip Planning Queries F. Li, D. Cheng, M. Hadjieleftheriou, G. Kollios, S.-H. Teng Boston University.
Backtracking.
The Travelling Salesman Algorithm A Salesman has to visit lots of different stores and return to the starting base On a graph this means visiting every.
Chapter 2: Business Efficiency Lesson Plan Business Efficiency  Visiting Vertices-Graph Theory Problem Hamiltonian Circuits  Vacation Planning Problem.
Ch. 11: Optimization and Search Stephen Marsland, Machine Learning: An Algorithmic Perspective. CRC 2009 some slides from Stephen Marsland, some images.
May 5, 2015Applied Discrete Mathematics Week 13: Boolean Algebra 1 Dijkstra’s Algorithm procedure Dijkstra(G: weighted connected simple graph with vertices.
More Graph Algorithms 15 April Applications of Graphs Graph theory is used in dealing with problems which have a fairly natural graph/network.
Programming & Data Structures
Lecture 23. Greedy Algorithms
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
Chapter 9 – Graphs A graph G=(V,E) – vertices and edges
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
The Traveling Salesman Problem Approximation
IT 60101: Lecture #201 Foundation of Computing Systems Lecture 20 Classic Optimization Problems.
Graph Theory Topics to be covered:
Graph Theory Hamilton Paths and Hamilton Circuits.
May 1, 2002Applied Discrete Mathematics Week 13: Graphs and Trees 1News CSEMS Scholarships for CS and Math students (US citizens only) $3,125 per year.
Representing and Using Graphs
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
6.1 Hamilton Circuits and Paths: Hamilton Circuits and Paths: Hamilton Path: Travels to each vertex once and only once… Hamilton Path: Travels to each.
CSE 326: Data Structures NP Completeness Ben Lerner Summer 2007.
Models in I.E. Lectures Introduction to Optimization Models: Shortest Paths.
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Math /6.3– Trigonometric Equations
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
CSC 213 – Large Scale Programming. Today’s Goals  Discuss what is meant by weighted graphs  Where weights placed within Graph  How to use Graph ’s.
L3-Network Algorithms L3 – Network Algorithms NGEN06(TEK230) – Algorithms in Geographical Information Systems by: Irene Rangel, updated Nov by Abdulghani.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
By: Christophe Dufour Chrishon Adams Mischael Joseph.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Unit 2 Hamiltonian Circuits. Hamiltonian Circuit: A tour that starts at a vertex of a graph and visits each vertex once and only once, returning to where.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
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,
Directions 1.With a method similar to that of the previous lab, you will be using a Rutherford analysis to uncover a value hidden in your data. 2.Begin.
1 Minimum Spanning Tree: Solving TSP for Metric Graphs using MST Heuristic Soheil Shafiee Shabnam Aboughadareh.
Graphs 1 Neil Ghani University of Strathclyde. Where are we …. We studied lists: * Searching and sorting a list Then we studied trees: * Efficient search.
Hamilton Paths and Hamilton Circuits
Shortest Path Problems
EECS 203 Lecture 20 More Graphs.
Great Theoretical Ideas in Computer Science
Chapter 2: Business Efficiency Lesson Plan
Refresh and Get Ready for More
Chapter 2: Business Efficiency Lesson Plan
This unit is all about Puzzles Games Strategy.
Graphs Chapter 11 Objectives Upon completion you will be able to:
Chapter 2: Business Efficiency Business Efficiency
CSE 373: Data Structures and Algorithms
Applied Combinatorics, 4th Ed. Alan Tucker
Networks Kruskal’s Algorithm
Section 13.4 Trees.
Presentation transcript:

Geocaching: Using Multi-Billion Dollar Technology (and Math) to find Tupperware in the Woods CMC3 Recreational Conference Bruce Armbrust- Lake Tahoe Community College April 28, 2012

What is Geocaching? Containers are hidden around the world. The coordinates of their locations are posted online at geocaching.com Users with hand held GPS receivers go to the posted coordinates. They search (and search and search and…) They open the container, sign the log sheet, trade items if desired, and move on to their next target.

What is it really? An excuse to explore the world. A chance to solve puzzles. A great way to spend free time. An OBSESSION!!!

The Math Behind The Machine

GPS Satellites

The Calculations Each satellite sends its position and time encoded within every signal. The receiver determines the change in time between transmission and receipt of signal. The location of the receiver is then on the sphere given by

The Calculations-continued In a perfect world, four satellites would be sufficient (or three with an assumption). In OUR world, the receiver’s clock may be out of time with the satellites and therefore an error is quite likely. This means the receiver is actually on the sphere

Return of The Calculations Expanding and rearranging terms gives Creating the right inner product turns this into Which allows us to form a matrix equation which has a least squares solution given more than 4 satellites. Even better, the solution to the least squares comes from a quadratic equation when enough “trickery” is applied.

Wandering Around The Woods

Traveling Salesman Problem A Salesman must visit each of n cities that are connected by a series of roads. Because of the well known identity Time=Money, she wants to do it as quickly as possible. What route should she take so that each city is visited and the distance traveled is minimized?

Wandering Geocacher Problem Mathprofessor needs to feed his geocaching addiction by finding n caches. Because he feels bad for turning his wife into a geo-widow, he wants to find them as quickly as possible. What route should he take so that each GZ is visited and the distance traveled is minimized?

My Prey…

Only 40,320 Choices

How Will We Find the Route? By picking a starting point, the number of possible routes drops to Obviously, we can use a computer to check all 5040, but where is the fun in that? Let’s try the Twice-round-the-Tree Algorithm

Twice-Round-the-Tree Start by creating a minimal spanning tree for the graph. Duplicate each edge of the tree and find a closed Eulerian path. Start at the point of your choice and follow the path. Skip any previously visited vertices and instead go to the next unvisited vertex on the path.

The Numbers Line Segment Distance (miles) Line Segment Distance (miles) Line Segment Distance (miles) Line Segment Distance (miles) AB0.5BC0.2CE0.8DH0.5 AD0.5BD0.7CF0.6EF0.2 AC1.1BE0.7CG0.6EG0.3 AE1.1BF0.5CH0.3EH0.5 AF0.9BG0.5DE0.1FG0.2 AG1.0BH0.4DF0.2FH0.4 AH0.8CD0.8DG0.2GH0.3

Build a Minimal Spanning Tree Line Segment Distance (miles) Line Segment Distance (miles) Line Segment Distance (miles) Line Segment Distance (miles) AB0.5BC0.2CE0.8DH0.5 AC0.5BD0.7CF0.6EF0.2 AD1.1BE0.7CG0.6EG0.3 AE1.1BF0.5CH0.3EH0.5 AF0.9BG0.5DE0.1FG0.2 AG1.0BH0.4DF0.2FH0.4 AH0.8CD0.8DG0.2GH0.3 The line segments chosen above give a minimal spanning tree.

Minimal Spanning Tree #1

Doubled Tree #1

Notes on Tree #1 This Eulerian path leads to four different routes. Not all of them have the same total length The shortest path (HCABGFEDH) has a total distance of 2.8 miles.

Best Path From Tree #1

The Numbers Line Segment Distance (miles) Line Segment Distance (miles) Line Segment Distance (miles) Line Segment Distance (miles) AB0.5BC0.2CE0.8DH0.5 AD0.5BD0.7CF0.6EF0.2 AC1.1BE0.7CG0.6EG0.3 AE1.1BF0.5CH0.3EH0.5 AF0.9BG0.5DE0.1FG0.2 AG1.0BH0.4DF0.2FH0.4 AH0.8CD0.8DG0.2GH0.3

Build a Minimal Spanning Tree Line Segment Distance (miles) Line Segment Distance (miles) Line Segment Distance (miles) Line Segment Distance (miles) AB0.5BC0.2CE0.8DH0.5 AC0.5BD0.7CF0.6EF0.2 AD1.1BE0.7CG0.6EG0.3 AE1.1BF0.5CH0.3EH0.5 AF0.9BG0.5DE0.1FG0.2 AG1.0BH0.4DF0.2FH0.4 AH0.8CD0.8DG0.2GH0.3 The line segments chosen above give a different minimal spanning tree.

Build a Minimal Spanning Tree Line Segment Distance (miles) Line Segment Distance (miles) Line Segment Distance (miles) Line Segment Distance (miles) AB0.5BC0.2CE0.8DH0.5 AC0.5BD0.7CF0.6EF0.2 AD1.1BE0.7CG0.6EG0.3 AE1.1BF0.5CH0.3EH0.5 AF0.9BG0.5DE0.1FG0.2 AG1.0BH0.4DF0.2FH0.4 AH0.8CD0.8DG0.2GH0.3 The line segments chosen above give yet a third minimal spanning tree.

More Spanning Trees Minimal Spanning Tree #2Minimal Spanning Tree #3

Hmmmm…. The shortest path for tree #2 is 2.8 miles. The shortest path for tree #3 is 2.9 miles. The shortest path (HCABGFEDH) has a total distance of 2.8 miles.

Best Paths Minimal Spanning Tree #1Minimal Spanning Tree #3

More questions Are these paths the shortest we can find? If not, how can we find a shorter one? What about real world implications?

Two better paths Path of length 2.7 milesPath of length 2.6 miles

The Real World

Theory vs. Reality Theoretical Best PathActual Route Traveled

Puzzle Caches

Some of my favorites A Cache Landing A Trying Triangle AP Calculus Sampler Calculus 301 Calculus 329 Canadians Have Large Clocks Crash Cache Sum Fun The Magic Square Cache Trig 106 Trig 110 Venn Diagram

The Ultimate FTF

Bruce’s Contact Information If you would like more information on Geocaching or the mathematics behind it, feel free to contact me. Bruce Armbrust a.k.a. mathprofessor Lake Tahoe Community College x314