Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I will rate asap as the answer seems correct. Thx The Branch & Bound algorithm as we saw it in the lecture uses linear programming

image text in transcribedimage text in transcribedI will rate asap as the answer seems correct. Thx

The Branch & Bound algorithm as we saw it in the lecture uses linear programming as a relaxation to solve integer linear programs. Actually, the arguments behind the algorithm would work in different settings where the "relaxation" is not in form of a linear program. To keep the notation simple, we want to consider a slight variant of the TSP problem, which is called TSP PATH. For the TSP PATH problem, the input is an undirected graph G-(V,E) (which does not need to be a complete graph) with non-negative edge cost c : E R20. The goal is to compute a path PCE that visits each node exactly once (we allow any pair from V as end points) Note that this problem is NP-complete. We want to design a variant of the Branch & Bound algorithm to solve it. For a subset of edges E CE, let MST(E) be the minimum spanning tree in the subgraph (V, E'). Recall that MST (E') can be computed in polynomial time using Kruskal's algorithm. For a set of edges CC E, we denote c(C)-2eecce as the sum of its cost. The algorithm for TSP PATH is now as follows: (1) Set C" as being undefined (2) Initialize a stack with E) (3) WHILE stack is non-empty DO (4) Take and remove an item ( an edge set) from the stack and call it E (5) If the graph (V,E') is not connected, goto (3) (5) Compute T MST(E') (8) IF T is a path and c(T)c(C) (or C" undefined) THEN update C T and goto (3) (9) IF T is a path and c(T) c(C") THEN goto (3) (10) Let v V be a node that is incident to at least 3 edges in T. (1 1) Let(el, e2. e3} (v) nT be 3 edges that are incident to v in T. (12) Put the sets E e,Efe2),E e on the stack (13) Return C Answer the following: a) How does the algorithm run on the following instance (edges labelled with e: c(e)) e2 e1: e6: b) Show that in general the algorithm computes an optimum solution to the TSP PATH problem. In particular, if the optimum TSP path is still contained in E', then why is it also contained in at least one of the edge sets that are added back to the stack in (12)? Also, why can we stop searching within E in step (9)? c) Argue, why the algorithm runs at most 2.3m times through the WHILE loop, if mE is the number of edges in the original graph. Hint: Give an upper bound of 3" on the number of leafs in the Branch & Bound tree. The Branch & Bound algorithm as we saw it in the lecture uses linear programming as a relaxation to solve integer linear programs. Actually, the arguments behind the algorithm would work in different settings where the "relaxation" is not in form of a linear program. To keep the notation simple, we want to consider a slight variant of the TSP problem, which is called TSP PATH. For the TSP PATH problem, the input is an undirected graph G-(V,E) (which does not need to be a complete graph) with non-negative edge cost c : E R20. The goal is to compute a path PCE that visits each node exactly once (we allow any pair from V as end points) Note that this problem is NP-complete. We want to design a variant of the Branch & Bound algorithm to solve it. For a subset of edges E CE, let MST(E) be the minimum spanning tree in the subgraph (V, E'). Recall that MST (E') can be computed in polynomial time using Kruskal's algorithm. For a set of edges CC E, we denote c(C)-2eecce as the sum of its cost. The algorithm for TSP PATH is now as follows: (1) Set C" as being undefined (2) Initialize a stack with E) (3) WHILE stack is non-empty DO (4) Take and remove an item ( an edge set) from the stack and call it E (5) If the graph (V,E') is not connected, goto (3) (5) Compute T MST(E') (8) IF T is a path and c(T)c(C) (or C" undefined) THEN update C T and goto (3) (9) IF T is a path and c(T) c(C") THEN goto (3) (10) Let v V be a node that is incident to at least 3 edges in T. (1 1) Let(el, e2. e3} (v) nT be 3 edges that are incident to v in T. (12) Put the sets E e,Efe2),E e on the stack (13) Return C Answer the following: a) How does the algorithm run on the following instance (edges labelled with e: c(e)) e2 e1: e6: b) Show that in general the algorithm computes an optimum solution to the TSP PATH problem. In particular, if the optimum TSP path is still contained in E', then why is it also contained in at least one of the edge sets that are added back to the stack in (12)? Also, why can we stop searching within E in step (9)? c) Argue, why the algorithm runs at most 2.3m times through the WHILE loop, if mE is the number of edges in the original graph. Hint: Give an upper bound of 3" on the number of leafs in the Branch & Bound tree

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions