Travelling Salesman Problem Stewart Adam Kevin Visser May 14, 2010.

Slides:



Advertisements
Similar presentations
Dynamic Programming 25-Mar-17.
Advertisements

Local Search Algorithms
CS6800 Advanced Theory of Computation
Exact and heuristics algorithms
Types of Algorithms.
Genetic Algorithms By: Jacob Noyes 4/16/2013. Traveling Salesman Problem Given:  A list of cities  Distances between each city Find:  Shortest path.
1 APPENDIX A: TSP SOLVER USING GENETIC ALGORITHM.
1 Chapter 15.3 Hamilton Paths and Hamilton Circuits Objectives 1.Understand the definitions of Hamilton paths & Hamilton circuits. 2.Find the number of.
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Iterative Improvement Algorithms
Intelligent Agents What is the basic framework we use to construct intelligent programs?
A Hybrid Heuristic for the Traveling Salesman Problem R. Baraglia, J. I. Hildalgo, R. Perego CMPSC 580, Spring 2006.
Genetic Algorithms: Solving the Traveling Salesman Problem Thomas Abtey SUNY Oswego.
Minimum Spanning Network: Brute Force Solution
Iterative Improvement Algorithms For some problems, path to solution is irrelevant: just want solution Start with initial state, and change it iteratively.
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.
Traveling Salesman Problem Continued. Heuristic 1 Ideas? –Go from depot to nearest delivery –Then to delivery closest to that –And so on until we are.
Pawel Drozdowski – November Introduction GA basics Solving simple problem GA more advanced topics Solving complex problem Question and Answers.
Universidad de los Andes-CODENSA The Continuous Genetic Algorithm.
1. Optimization and its necessity. Classes of optimizations problems. Evolutionary optimization. –Historical overview. –How it works?! Several Applications.
Telerik Software Academy academy.telerik.com. 1. Heuristics 2. Greedy 3. Genetic algorithms 4. Randomization 5. Geometry 2.
Difficult Problems. Polynomial-time algorithms A polynomial-time algorithm is an algorithm whose running time is O(f(n)), where f(n) is a polynomial A.
Graph Theory Hamilton Paths and Hamilton Circuits.
Fundamentals of Algorithms MCS - 2 Lecture # 7
Ch.12 Machine Learning Genetic Algorithm Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011.
© 2010 Pearson Prentice Hall. All rights reserved. 1 §15.3, Hamilton Paths and Circuits.
Researchers: Preet Bola Mike Earnest Kevin Varela-O’Hara Han Zou Advisor: Walter Rusin Data Storage Networks.
A Genetic Solution to the Travelling Salesman Problem Ryan Honig.
Name / Mutlag Faisal AL-Ajme Id/ Name / Osama Khalaf AL-Friedy Id /
Optimization Problems - Optimization: In the real world, there are many problems (e.g. Traveling Salesman Problem, Playing Chess ) that have numerous possible.
More on Heuristics Genetic Algorithms (GA) Terminology Chromosome –candidate solution - {x 1, x 2,...., x n } Gene –variable - x j Allele –numerical.
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
Connected Components Fun with graphs, searching, and queues.
 Analysis Wrap-up. What is analysis?  Look at an algorithm and determine:  How much time it takes  How much space it takes  How much programming.
Local Search Pat Riddle 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell,
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
Types of Algorithms. 2 Algorithm classification Algorithms that use a similar problem-solving approach can be grouped together We’ll talk about a classification.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
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.
Writing Equations by Completing the Square Or Using the Distance Formula.
EE459 I ntroduction to Artificial I ntelligence Genetic Algorithms Practical Issues: Selection.
Local Search. Systematic versus local search u Systematic search  Breadth-first, depth-first, IDDFS, A*, IDA*, etc  Keep one or more paths in memory.
Genetic Algorithms and TSP Thomas Jefferson Computer Research Project by Karl Leswing.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
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,
EVOLUTIONARY SYSTEMS AND GENETIC ALGORITHMS NAME: AKSHITKUMAR PATEL STUDENT ID: GRAD POSITION PAPER.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Estimation of Distribution Algorithm and Genetic Programming Structure Complexity Lab,Seoul National University KIM KANGIL.
Hirophysics.com The Genetic Algorithm vs. Simulated Annealing Charles Barnes PHY 327.
Constraints Satisfaction Edmondo Trentin, DIISM. Constraint Satisfaction Problems: Local Search In many optimization problems, the path to the goal is.
Local search algorithms In many optimization problems, the path to the goal is irrelevant; the goal state itself is the solution State space = set of "complete"
A MapReduced Based Hybrid Genetic Algorithm Using Island Approach for Solving Large Scale Time Dependent Vehicle Routing Problem Rohit Kondekar BT08CSE053.
Hamilton Paths and Hamilton Circuits
Genetic Algorithms.
Weighted Graphs and traveling Salesperson problem
Genetic Algorithm and Their Applications to Scheduling
Bin Packing Optimization

Comparing Genetic Algorithm and Guided Local Search Methods
Genetic Algorithms CPSC 212 Spring 2004.
RET is funded by the National Science Foundation, grant # EEC
Add Heuristic a b C D E Switch Cost
Hamilton Paths and Hamilton Circuits
Applications of Genetic Algorithms TJHSST Computer Systems Lab
The N-Queens Problem Search The N-Queens Problem Most slides from Milos Hauskrecht.
2+3= 8+2= 5+1= 11+6= 6+2= 10+1=.
Applications of Genetic Algorithms
The Travelling Salesman
Presentation transcript:

Travelling Salesman Problem Stewart Adam Kevin Visser May 14, 2010

The Problem Need to visit N cities with smallest total distance travelled Thought of in the 1830s Mathematicians in the 1930s realized the problem was unsolvable with the current technology

The Problem Assumptions made: ▫Must end at same city that we started at ▫Cannot visit any city twice ▫Can start the trip at any city

Conventional Approach Very long to calculate: ▫Modeling 30 cities means 30!=2.6 x 10^32 possible solutions ▫Equivalent to 8.4 x 10^24 years of trying at 1 solution/second

Genetic Algorithm Similar to wind farm problem Can’t use the same crossover or mutation methods, as that may result in duplicate cities Must converge on good solutions, but keep enough entropy in the solutions so we can pop out of local minimums ▫Solution: Morph our way out with lots of mutation ▫Solution: More elites to keep track of the better solutions

Crossover Given the parents: [7, 2, 4, 1, 9, | 5, 6, 8, 10, 3] and [4, 9, 10, 3, 7, | 5, 8, 6, 1, 2] Copy, excluding duplicates Child 1 (pass 1): [7, 2, 4, 1, 9, X, X, 10, 3, X] Fill in blanks with cities from parent 2 (in unused order) Child 1 (pass 2): [7, 2, 4, 1, 9, 5, 8, 10, 3, 6]

Mutation Swap the position of two elements More randomness! ▫When mutation happens, it randomly performs 1 or 2 “swap” passes ▫Mutation 50% of the time ▫1% of mutations are greedy (force a better solution)

Fun stuff: Videos Circle: Long

Fun stuff: Videos Circle: Short

Fun stuff: Videos Random: Local minimum

Fun stuff: Videos Test case: Stuck

Fun stuff: Videos Test case: Best

The best solution had a distance of units (shown on left). Results

Best solution != nearest city The best results always seems to form closed shapes Shapes are close as possible to the circumference of a circle (contours). No diagonal lines Results