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...
-
Mariam Kmal wishes to select the better of two 10-year annuities, C and D. Annuity C is an ordinary annuity of US$2,500 per year for 10 years. Annuity D is an annuity due of US$2,200 per year for 10...
-
Benjamin and Mia both work at the Grease Fire diner, a local eatery. Benjamin has every 4th day off, and Mia has every 6th day off. How many days pass until they have another day off together?
-
Hays, Bush, and King signed a lease agreement with Big Pink, the owner of the mineral rights. Big Pink received a 1/7 royalty interest. The companies working interests are 50%, 30%, and 20%,...
-
1. What is the Influence of history and values on Unilevers strategy? 2. How can we judge Unilevers performance before 2009? 3. Why do you think Unilever decided to hire an outsider? 4. Why might...
-
Lucy Co. sold equipment that cost $205,000 and had a book value of $95,000 for $104,000. Data from Lucy's comparative balance sheets are: Machinery Accumulated depreciation 12/31/22 12/31/21 $935,000...
-
List supplier id, name, and city of any supplied food with its price is more than a nested query to find food items in the FOOD table that the price are more than Use a subquery or also called a...
-
QUESTION THREE 3.1 Create an ERD for each of the following descriptions 3.3.1 3.2 EMP N O 215 216 QUESTIONS FOUR Using the Employee table below, write the rational schema and draw it's dependency...
-
Is there a cluster of physical ecological circumstances that can be identified as relevant to all stakeholders? List and relate them to the respective stakeholders.
-
Which cost is not recorded as part of the cost of a building? a. Construction materials, labor, and overhead b. Annual building maintenance C. Real estate commission paid to buy the building d....
-
The scandals associated with the 2002 Salt Lake City Olympics (the bribery involved in the site location process and the judging practices used to award the figure skating medals, among others)...
-
Uber Technologies Inc. is a tech startup that provides ride-sharing services by connecting independent contractors (drivers) and riders with the use of an app. Uber has expanded its operations to 674...
-
Which item(s) appears as a reconciling item(s) to the bank balance in a bank reconciliation? a. Outstanding checks b. Deposits in transit C. Both a and b d. None of the above
-
On January 1, 2013, Company P owns 100% of Company S that reports a Stockholders' Equity of$500,000 and 20,000 shares of $1 par value common stock outstanding. This acquisition was made at book...
-
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...
-
An administrator at Riverview Hospital is considering how to use some space made available when the outpatient clinic moved to a new building. She has narrowed her choices as follows: a. Use the...
-
A BMW executive in Germany is trying to decide whether the company should continue to manufacture an engine component or purchase it from Hanover Corporation for 25.56 Euros (EUR) each. Demand for...
-
Lake Superior Electronics Company paid $7 million in cash four years ago to acquire a company that manufactures CD-ROMs. This company operates as a division of Lake Superior and has lost $500,000...
Study smarter with the SolutionInn App