Death Of a Traveling Salesman Problem - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Death Of a Traveling Salesman Problem

Description:

Given an undirected, complete graph G and cost matrix C, find an optimal Hamiltonian cycle ... Optimal sub-structure. Lots of memory ... – PowerPoint PPT presentation

Number of Views:83
Avg rating:3.0/5.0
Slides: 11
Provided by: GenPF
Category:

less

Transcript and Presenter's Notes

Title: Death Of a Traveling Salesman Problem


1
Death Of a Traveling Salesman Problem
  • Charles Huber
  • Tuesday, March 14

2
Traveling Salesman Problem
  • Given an undirected, complete graph G and cost
    matrix C, find an optimal Hamiltonian cycle
  • Simple enough, but the devil is in the details
  • Clipart

3
TSP Variants
  • Asymmetric
  • Edge weights vary by direction
  • Non-complete graph
  • Hamiltonian may not exist!
  • Triangle inequality
  • Christofides approx at most 1.5x optimal
  • Euclidian
  • Subset of triangle inequality
  • Makes heuristics happy!

4
TSP Solutions
  • NP-Hard
  • Enumerate all paths, O(n!)
  • Not going anywhere for a while? Grab a
    Snickers!
  • Approximation algorithms
  • Heuristics
  • Genetic Algorithms
  • Local Search Algorithms
  • Fast but sadly non-optimal

5
Dynamic Programming
  • ltstrikegtLike eXtreme Programming but allocated
    from the heap!lt/strikegt
  • Trades memory for time
  • Lots of applications
  • Edit distance (diff, anyone?)
  • Bellman-Ford SSSP
  • Knapsack problem

6
Dynamic Programming, cont.
  • Dynamic programming requirements
  • Optimal sub-structure
  • Lots of memory
  • Cant really be parallelized like divide and
    conquer algorithms
  • Too much shared state (ie, results table)

7
TSP Solutions, cont.
  • Can dynamic programming be applied to the TSP?
  • Yes!
  • What do we gain?
  • Significant reduction in run-time complexity
  • O(n22n) vs O(n!)
  • Retains optimality of brute-force method

8
Algorithm
9
Example
10
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com