Question: Problem 2 . Maximum clearance routes Every year, trucks get stuck on Storrow Drive because of the low bridges ( sometimes called storrowing ) .
Problem Maximum clearance routes
Every year, trucks get stuck on Storrow Drive because of the low bridges sometimes called "storrowing" Suppose you're running a trucking company in Boston with n warehouses. Each section of road e in E will be annotated with the clearance of the lowest bridge on that portion of road ce Assume all of the roads are undirected, and that all of the clearances are unique. We'll say that the clearance of a route from i to j is the minimum clearance of all the road segments on the route you can't drive a truck that's taller than the lowest bridge on the route Next, we'll say that a route is a maximumclearance route between i and j if it is the route between i and j with largest route clearance out of all possible routes from i to j Intuitively, the maximumclearance route between two nodes tells you the tallest truck that you can drive between the two locations without getting stuck under a bridge, as well as which path to use.
You want to find an algorithm that computes a tree for maxclearance routes from a given node s After giving it some thought, you think it might be related to the idea of a maximum spanning tree with respect to the edge clearances.
Note: the maximum spanning tree of a graph G is just a tree that connects all vertices in G hence "spanning" while maximizing the sum of the edge weights in the tree. Cycles are not allowed, as we still want a tree.
State the cut and cycle property for maximum spanning trees MaxST
Show that in any graph G with unique edge clearances, the path given by using edges from the maximum spanning tree of G with respect to the edge weights given by the clearances ce gives the maximum clearance route between any two warehouses. Hint: There are a couple of natural ways to do this. One way is to proceed by contradiction: suppose that the highestclearance path is not part of the MaxST; show that together with edges in the MaxST it creates a cycle that contradicts the cycle property above.
Give a polynomialtime algorithm that takes a graph G with distinct edge clearances and outputs the maximum spanning tree. Hint: Modify any of the minimumweight spanning tree algorithms from class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
