{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

20-approximations

# 20-approximations - Approximations to N P Solutions If we...

This preview shows pages 1–5. Sign up to view the full content.

Approximations to NP Solutions If we are faced with an NP or NP -complete problem the best we can do on a deterministic computer is a solution in exponential time. Since exponential time solutions are impractical for obvious reasons we could consider approximations to the actual solutions. Here we look at approximation algorithms for the classic ‘Traveling Salesman Problem’ ( TSP ). – p. 1/1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Traveling Salesman The idea is, given a set of cities (nodes) that are connected via roads (weighted edges), find the cheapest route through all the cities (find a Hamiltonian path that minimizes the sum of the weights in the path). Formally, T SP = { G, s, t, w | G is directed weighted graph with a minimal Hamiltonian path of weight w from s to t } . – p. 2/1
Traveling Salesman Theorem: T SP NP -hard . Proof: Note, a problem is NP -hard if every L NP can be reduced to it in polynomial time but the problem itself is not in NP . No known NP solution exists for T SP ( NP problems have polynomial time verifiers; in T SP it is not possible to verify a certificate in polynomial time). It remains to show that all L NP reduce to it in polynomial time. We will show this by a polynomial time reduction f from HAMP AT H to T SP , G, s, t HAMP AT H iff f ( G, s, t ) T SP, where f ( G, s, t ) = G , s, t, m with G the graph G with a weight of 1 on all of its edges and m the number of nodes in G . Clearly, the reduction runs in polynomial time. We verify the reduction condition by first observing that a Hamiltonian path gives rise to a minimal traveling salesman circuit by the virtue that all Hamiltonian paths in G have the same cost. The converse also holds, if we have a traveling salesman circuit this implies that we have a Hamiltonian path. – p. 3/1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Approximation Algorithms Approximation algorithms are an approach to attacking difficult optimization problems. Approximation algorithms are often associated with NP -hard problems. Since it is unlikely that there can ever be efficient (Polynomial Time) exact algorithms solving NP -complete/hard problems, one settles for non-optimal solutions, but requires them to be found in polynomial time.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 14

20-approximations - Approximations to N P Solutions If we...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online