The Traveling Salesperson Problem - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

The Traveling Salesperson Problem

Description:

Netwerk Algorithms: Shortest paths. 1. The Traveling Salesperson Problem ... Netwerk Algorithms: Shortest paths. 13. Closest insertion heuristic has performance ... – PowerPoint PPT presentation

Number of Views:162
Avg rating:3.0/5.0
Slides: 14
Provided by: hansbod
Category:

less

Transcript and Presenter's Notes

Title: The Traveling Salesperson Problem


1
The Traveling Salesperson Problem
  • Network Algorithms 2002-2003

2
Contents
  • TSP and its applications
  • Heuristics and approximation algorithms
  • Construction heuristics, a.o. Christofides,
    insertion heuristics
  • Improvement heuristics, a.o. 2-opt, 3-opt,
    Lin-Kernighan

3
Problem
  • Instance n vertices (cities), distance between
    every pair of vertices
  • Find shortest (simple) cycle that visits every
    city

4
4
1
2
1
2
3
3
2
5
2
5
2
2
3
4
2
3
4
2
11
4
Applications
  • Collection and delivery problems
  • Robotics
  • Board drilling

5
NP-complete
  • Instance cities, distances, K
  • Question is there a TSP-tour of length at most
    K?
  • Is an NP-complete problem
  • Relation with Hamiltonian Circuit problem

6
Assumptions
  • Lengths are non-negative (or positive)
  • Symmetric w(u,v) w(v,u)
  • Triangle inequality for all x, y, z
  • w(x,y) w(y,z) w(x,z)

7
Heuristics and approximations
  • Two types
  • Construction heuristics
  • A tour is built from nothing
  • Improvement heuristics
  • Start with some tour, and continue to change it
    into a better one as long as possible

8
1st Construction heuristicNearest neighbor
  • Start at some vertex s vs
  • While not all vertices visited
  • Select closest unvisited neighbor w of v
  • Go from v to w
  • vw
  • Go from v to s.

Can have performance ratio O(log n)
9
Heuristic with ratio 2
  • Find a minimum spanning tree
  • Report vertices of tree in preorder

10
Christofides
  • Make a Minimum Spanning Tree T
  • Set W v v has odd degree in tree T
  • Compute a minimum weight matching M in the graph
    GW.
  • Look at the graph TM. (Note Eulerian!)
  • Compute an Euler tour C in TM.
  • Add shortcuts to C to get a TSP-tour

11
Ratio 1.5
  • Total length edges in T at most OPT
  • Total length edges in matching M at most OPT/2.
  • TM has length at most 3/2 OPT.
  • Use D-inequality.

12
Closest insertion heuristic
  • Build tour by starting with one vertex, and
    inserting vertices one by one.
  • Always insert vertex that is closest to a vertex
    already in tour.

13
Closest insertion heuristic has performance ratio
2
  • Build tree T if v is added to tour, add to T
    edge from v to closest vertex on tour.
  • T is a Minimum Spanning Tree (Prims algorithm)
  • Total length of T OPT
  • Length of tour 2 length of T
Write a Comment
User Comments (0)
About PowerShow.com