Q1a In every instance (i.e., example) of the TSP, we are given n cities, where each pair of cities is connected by a weighted edge that measures the cost of traveling between those two cities. Our goal is to find the optimal TSP tour, minimizing the total cost of a Hamiltonian cycle in G. Although it is NP-complete to solve the TSP, there is a simple 2-approximation achieved by first generating a minimum-weight spanning tree of G and using this output to determine our TSP tour. Prove that our output is guaranteed to be a 2-approximation, provided the Triangle Inequality holds. In other words, if OPT is the total cost of the optimal solution, and APP is the total cost of our approximate solution, clearly explain why APP ≤ 2* OPT. 1b Let G be this weighted undirected graph, containing 7 vertices and 11 edges. A 5 D 7 9 6 B 15 F 8 7 8 11 5 E 9 с G For each of the 10 edges that do not appear (AC, AE, AF, AG, BF, BG,CD,CF,CG, DG), assign a weight of 1000. It is easy to see that the optimal TSP tour has total cost 51.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Q1a
In every instance (i.e., example) of the TSP, we are given n cities, where each pair of cities is
connected by a weighted edge that measures the cost of traveling between those two cities.
Our goal is to find the optimal TSP tour, minimizing the total cost of a Hamiltonian cycle in G.
Although it is NP-complete to solve the TSP, there is a simple 2-approximation achieved by
first generating a minimum-weight spanning tree of G and using this output to determine our
TSP tour.
Prove that our output is guaranteed to be a 2-approximation, provided the Triangle Inequality
holds. In other words, if OPT is the total cost of the optimal solution, and APP is the total cost
of our approximate solution, clearly explain why APP ≤ 2* OPT.
1b
Let G be this weighted undirected graph, containing 7 vertices and 11 edges.
|
A
5
D
1
9
6
B
15
F
8
7
8
11
5
E
9
с
G
For each of the 10 edges that do not appear
(AC, AE, AF, AG, BF, BG, CD, CF, CG, DG), assign a weight of 1000. It is easy to
see that the optimal TSP tour has total cost 51.
Generate an approximate TSP tour using the algorithm from Question 1a, and
calculate the total cost of your solution. Explain why your solution is not a 2-
approximation
Transcribed Image Text:Q1a In every instance (i.e., example) of the TSP, we are given n cities, where each pair of cities is connected by a weighted edge that measures the cost of traveling between those two cities. Our goal is to find the optimal TSP tour, minimizing the total cost of a Hamiltonian cycle in G. Although it is NP-complete to solve the TSP, there is a simple 2-approximation achieved by first generating a minimum-weight spanning tree of G and using this output to determine our TSP tour. Prove that our output is guaranteed to be a 2-approximation, provided the Triangle Inequality holds. In other words, if OPT is the total cost of the optimal solution, and APP is the total cost of our approximate solution, clearly explain why APP ≤ 2* OPT. 1b Let G be this weighted undirected graph, containing 7 vertices and 11 edges. | A 5 D 1 9 6 B 15 F 8 7 8 11 5 E 9 с G For each of the 10 edges that do not appear (AC, AE, AF, AG, BF, BG, CD, CF, CG, DG), assign a weight of 1000. It is easy to see that the optimal TSP tour has total cost 51. Generate an approximate TSP tour using the algorithm from Question 1a, and calculate the total cost of your solution. Explain why your solution is not a 2- approximation
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 9 images

Blurred answer
Knowledge Booster
Duality
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education