Provide again a polynomial time algorithm

Assignment Help Computer Engineering
Reference no: EM132141247

Suppose we are given a directed graph G = (V, E), a set of nodes A V (denoted as people) and a set of nodes B V (denoted as exit). Assume A and B are disjoint. We want to find a schedule such that every person can escape to an exit node. More specifically, a schedule is a set of paths in G so that:

Every path contains exactly one node in A.

Each node in A is the first node of the corresponding path.

For each path, the last node is an exit node.

All the paths are edge-disjoint.

Given G, A, B, provide a polynomial time algorithm that decides whether such a schedule exists.

Suppose the third condition is changed to: All the paths are node-disjoint.

Provide again a polynomial time algorithm that decides whether such a schedule exists. Provide an example with the same G, A, B such that in this instance, the answer is "yes" to part (a) but "no" to part (b).

Reference no: EM132141247

Questions Cloud

Compare the time for a query and response for a complete : Compare the time for a query and response for a complete DNS query and response (to all required nameservers) if M=1, M=2, and M=3.
How much will it cost to provide disk space : At contemporary memory pricing of $7 / GB, how much will it cost to fill the machine? Knowing what you know about virtual memory.
How this special computer can be used to sort the given n : Suppose you are given n positive integers to sort on a special computer which has access to special memory containing p slots.
Create an algorithm for telling if l and m store the same : Create an algorithm for telling if L and M store the same sequence of elements (but perhaps with different starting points).
Provide again a polynomial time algorithm : Suppose we are given a directed graph G = (V, E), a set of nodes A V (denoted as people) and a set of nodes B V (denoted as exit).
What is the running time of your algorithm : Give a bottom-up dynamic programming algorithm based off your recursive definition. What is the running time of your algorithm?
How many total packets are sent with stop-and-wait : Assume that ACKs are never lost. How many total packets (including retransmissions) are sent with stop-and-wait.
Design an algorithm to update the minimum spanning tre : Design an algorithm to update the minimum spanning tree when the weight of a single edge e is increased.
What speedup is possible with pipelining : What is the maximum execution rate without pipelining? What speedup is possible with pipelining?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Compute the statistics requested

The data must be stored in an array. Compute the statistics requested above. Use a function for each task as well as a function to read.

  Write a java program that prints all real solutions

make a class QuadraticEquation whose constructor receives the coefficients a, b, c of the quadratic equation. Supply methods getSolution1 and getSolution2 that get the solutions, using the quadratic formula, or 0 if no solution exists. The getSolu..

  Discuss the pros and cons of the synthesis approach

This approachis the antithesis of the layered approach, in which the path through the kernel is extended so that building the operating system is made easier. Discuss the pros and cons of the Synthesis approach to kernel design and to system-perfo..

  Design a web page named taxes.html

design a Web page named taxes.html and enter the IncomeTax function into the HEAD (enclosed in SCRIPT tags). In the BODY of the page, prompt the user to enter values representing his or her income and itemized deduction. The page should call the I..

  What has he done to encourage diversity in computing

What argument did he make regarding a liberal education? Look up Richard Tapia on the Web. What has he done to encourage diversity in computing?

  What would be the effect on the program

Suppose the type of the cansPerPack variable in Volume1.java was changed from int to double. What would be the effect on the program?

  What will u-factor be when wind velocity outside is doubled

The overall U-factor of a fixed wood-framed window with double glazing is given by the manufacturer to be U = 2.76 W/m2.K under the conditions of still air.

  Explain the social engineering concerns in detail

Imagine a scenario where Jane, an administrative employee of a company, receives a call from James, the company's security administrator.

  Explain using a computer program and programming a computer

Suppose you have a random sequence of colored marbles. Explain the difference between using a computer program and programming a computer.

  What would be problem with using one of other architectures

Which of the types of storage architectures discussed in this section would you expect. What would be the problem with using one of the other architectures in the data center environment?

  What commands would you use to change the priority

What commands would you use to change the priority of the first distribution switch? Completely explain why you chose this priority.

  What implication does the given observation have for client

Measurements have shown that many files have an extremely short lifetime. What implication does this observation have for client caching policy?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd