Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (Exercise 8.4 from Kleinberg & Tardos) Suppose you're consulting for a group that manages a high-performance real-time system in which asynchronous processes make use

image text in transcribed

1. (Exercise 8.4 from Kleinberg & Tardos) Suppose you're consulting for a group that manages a high-performance real-time system in which asynchronous processes make use of shared resources. Thus the system has a set of n processes and a set of m resources. At any given point in time, each process specifies a set of resources that it requests to use. Each resource might be requested by many processes at once; but it can only be used by a single process at a time. Your job is to allocate resources to processes that request them. If a process is allocated all the resources it requests, then it is active; otherwise it is blocked. You want to perform the allocation so that as many processes as possible are active. Thus we phrase the Resource Reservation Problem as follows: Given a set of processes and resources, the set of requested resources for each process, and a number k, is it possible to allocate resources to processes so that at least k processes will be active? Consider the following list of problems, and for each problem either give a polvnomial-time algorithm or prove that the problem is NP-complete. (a) (4 points) The general Resource Reservation Problem defined above. (b) (4 points) The special case of the problem when k-2. (c) (4 points) The special case of the problem when there are two types of resoruces say, people and equipment _ and each process requires at most one resource of each type. (In other words, each process requires one specific person and one specific piece of equipment.) (d) (4 points) The special case of the problem when each resource is requested by at most two processes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

List the typical components of direct e-mails and memos?

Answered: 1 week ago

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago