We define the Escape Problem as follows. We are given a directed graph G = (V,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
We define the Escape Problem as follows. We are given a directed graph G = (V, E) (picture a network of roads.) A certain collection of vertices X CV are designated as populated vertices, and a certain other collection SC V are designated as safe vertices. (Assume that X and S are disjoint.) In case of an emergency, we want evacuation routes from the populated vertices to the safe vertices. A set of evacuation routes is defined as a set of paths in G such that (i) each vertex in X is the tail of one path, (ii) the last vertex on each path lies in S, and (iii) the paths do not share any edges. Such a set of paths gives a way for the occupants of the populated vertices to "escape" to S without overly congesting any edge in G. (a) [20 points] Given G,X, and S, show how to decide in polynomial time whether a set of evacuation routes exists. Prove your solution and complexity. (b) [20 points] Suppose we have exactly the same problem as in (a), but we want to enforce an even stronger version of the "no congestion" condition (iii). Thus, we change (iii) to say, "the paths do not share any vertices. With this new condition, show how to decide in polynomial time whether such a set of evacuation routes exists. Prove your solution and complexity. Also provide an example with the same G, X, and S in which the answer is "yes" to the question in (a) but "no" to the question in (b). We define the Escape Problem as follows. We are given a directed graph G = (V, E) (picture a network of roads.) A certain collection of vertices X CV are designated as populated vertices, and a certain other collection SC V are designated as safe vertices. (Assume that X and S are disjoint.) In case of an emergency, we want evacuation routes from the populated vertices to the safe vertices. A set of evacuation routes is defined as a set of paths in G such that (i) each vertex in X is the tail of one path, (ii) the last vertex on each path lies in S, and (iii) the paths do not share any edges. Such a set of paths gives a way for the occupants of the populated vertices to "escape" to S without overly congesting any edge in G. (a) [20 points] Given G,X, and S, show how to decide in polynomial time whether a set of evacuation routes exists. Prove your solution and complexity. (b) [20 points] Suppose we have exactly the same problem as in (a), but we want to enforce an even stronger version of the "no congestion" condition (iii). Thus, we change (iii) to say, "the paths do not share any vertices. With this new condition, show how to decide in polynomial time whether such a set of evacuation routes exists. Prove your solution and complexity. Also provide an example with the same G, X, and S in which the answer is "yes" to the question in (a) but "no" to the question in (b).
Expert Answer:
Answer rating: 100% (QA)
a Given G X and S to decide in polynomial time whether a set of evacuation routes exists you can con... View the full answer
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date:
Students also viewed these programming questions
-
Ashley's Payroll Services had the following accounts and account balances after adjusting entries. Assume all accounts have normal balances. Account Name Account Value Cash $23,650 Land $24,000...
-
A scaling algorithm solves a problem by initially considering only the highest-order bit of each relevant input value (such as an edge weight). It then refines the initial solution by looking at the...
-
We are given a directed graph G = (V, E) on which each edge (u, v) E has an associated value r(u, v), which is a real number in the range 0 r(u, v) 1 that represents the reliability of a...
-
Sodium tripolyphosphate (Na5P3O10) is used in many synthetic detergents. Its major effect is to soften the water by complexing Mg2+ and Ca2+ ions. It also increases the efficiency of surfactants, or...
-
When a flashlight submerged in water shines up into the air above, does the speed of light increase or decrease when the light passes from water into the air?
-
Use the birth weights (grams) of the 400 babies listed in Data Set 4 "Births" in Appendix B. Examine the list of birth weights to make an observation about those numbers. How does that observation...
-
On September 14, 2010, C & T Machinery, Inc., sold $2,300 of inventory (cost is $1,350) on account to one of its customers. The terms were 1/10, n/30, FOB destination. On September 16, C & T...
-
Discussion Problem: The Margo Manufacturing Company is performing an annual evaluation of one of its suppliers, the Mimi Company. Bo, purchasing manager of the Margo Manufacturing Company, has...
-
Should there be a national standard of Points of Dispersing (PODs) implementation instead of having states plan and implement their own PODs.
-
The CitruSun Corporation ships frozen orange juice concentrate from processing plants in Eustis and Clermont to distributors in Miami, Orlando, and Tallahassee. Each plant can produce 20 tons of...
-
According to the Aggregate Supply and Demand (AS-AD) model, equilibrium is reached when aggregate supply and aggregate demand cross, signifying that the economy is in a balanced condition. In the...
-
If an ARO is to be remeasured, what discount rate should be used to measure the increment? a. The discount rate used to book the original ARO b. The discount rate prevailing when the increment is...
-
Assume that an exploratory well is drilled and hydrocarbons are indicated. However, there is substantial uncertainty regarding whether the oil or gas is sufficient to justify recognition of proved...
-
What does a high (or low) lifting cost per BOE indicate? When does lifting cost per BOE indicate that costs are effectively being controlled at the field level?
-
If a contract contains a provision that requires one party to perform retirement activities when the asset is retired, but it is more likely than not that the requirement will be waived, should an...
-
Support equipment and facilities that service a particular field or other area constituting a cost center should be capitalized and depreciated using the _________ method over the proved developed...
-
Box a holds two 60-watt bulbs, three 75-watt bulbs, and two 100-watt bulbs. Box b holds five 60-watt bulbs, one 75-watt bulb, and three 120-watt bulbs. One bulb is picked at random out of one of the...
-
Willingness to pay as a measure of a person's value for a particular good measures the maximum a person would be willing to pay requires that payment actually be made depends on the satisfaction that...
-
Give an O(VE)-time algorithm for computing the transitive closure of a directed graph G = (V, E).
-
Consider a hash table of size m = 1000 and a corresponding hash function h(k) = m(kA mod 1) for A = (5 1)/2. Compute the locations to which the keys 61, 62, 63, 64, and 65 are mapped.
-
During the course of an algorithm, we sometimes find that we need to maintain past versions of a dynamic set as it is updated. We call such a set persistent. One way to implement a persistent set is...
-
If the bearing pads at \(A\) and \(B\) support only vertical forces, determine the greatest magnitude of the uniform distributed loading \(w\) that can be applied to the beam. \(\sigma_{\text {allow...
-
The beam is constructed from two boards. If each nail can support a shear force of \(200 \mathrm{lb}\), determine the maximum spacing of the nails, \(s, s^{\prime}\), and \(s^{\prime \prime}\), to...
-
The simply supported beam is composed of two W12 \(\times 22\) sections built up as shown. Determine the maximum uniform loading \(w\) the beam will support if the allowable bending stress is...
Study smarter with the SolutionInn App