Computers and Technology

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 ? v are designated as populated vertices, and a certain other collection s ? 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 way for the occupants of the populated vertices to "escape" to s without overly congesting any edge in g.(a) given g, x, and s, show how to decide in polynomial time whether such a set of evacuation routes exists.(b) 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. 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).

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 03:50, nakeytrag
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria. what am i?
Answers: 2
image
Computers and Technology, 23.06.2019 22:30, delawdermia27
The output voltage of a power supply is assumed to be normally distributed. sixteen observations are taken at random on voltage are as follows: 10.35, 9.30, 10.00, 9.96, 11.65, 12.00, 11.25, 9.58, 11.54, 9.95, 10.28, 8.37, 10.44, 9.25, 9.38, and 10.85
Answers: 1
image
Computers and Technology, 24.06.2019 20:20, isaiahromero15
Write python code that prompts the user to enter his or her favorite color and assigns the user’s input to a variable named color.
Answers: 1
image
Computers and Technology, 25.06.2019 00:30, jayzelgaspar8005
You are to write a series of steps that anyone could follow to solve the following three problems: 1. even odd a. assume that someone tells you a number (an integer number) b. you hear the number and respond with the word even or odd 2. average a. assume that someone tells you between 3 and 5 numeric values. b. you hear the numbers and respond with the average is some number 3. dog or cat a. explain to a child the differences between a dog and a cat. b. your explanation could be used by a child or anyone to distinguish the difference between a dog and a cat
Answers: 1
Do you know the correct answer?
We define the escape problem as follows. we are given a directed graph g = (v, e) (picture a network...

Questions in other subjects:

Konu
English, 21.08.2020 18:01