Assignment #6
Question 1 (a): Is it the case that Interval Scheduling ≤p Vertex Cover?
Yes. The Interval Scheduling problem can be solved in time O(nlogn) without calling a function to solve the Vertex Cover problem. Therefore, the problem can be solved in a number of computations and a number of calls to the function (both polynomial) that returns the result for Vertex Cover problem. Hence, we can conclude that Interval Scheduling ≤p Vertex Cover.
Question 1 (b): Is it the case that Independent Set ≤p Interval Scheduling?
Unknown, because it would resolve the question of whether P = NP. Let’s suppose Y ≤p X. If X requires polynomial time to be constructed, then Y can be also be constructed in similar time. Now, Interval Scheduling can
…show more content…
Suppose there is a set of counselors “k”. Now, we can verify in polynomial time that at least one counselor from this subset of counselors is skilled in all of the sports. Suppose a graph G and some number k. We assign every counselor to a node and each sport to some edge. For every sport a counselor is skilled in, the sport edge meets its node. We call the function for Efficient Recruiting to figure out if there exists a subset of counselors k who are qualified for each of the sports.
The function will return true if a subset of counselors skilled in each sport is found. So every sport edge meets one node (at least) in the subset of counselors. This set, therefore, is a vertex cover of k size.
We are aware that the Vertex Cover problem also returns true because a vertex cover with size k is found on the graph G. So, each sport edge meets one node (at least) in the vertex cover for the counselor subset assigned to the nodes within the vertex cover.
We also know that the Vertex Cover problem, in order to build the problem as Efficient Recruiting Problem, takes polynomial time. Hence, Vertex Cover ≤p Efficient Recruiting. We already know that Y ≤p X. If Y is NP-complete, then X is also NP-complete. Therefore, we can conclude that the Efficient Recruiting problem is
…show more content…
First, we prove that the problem is in NP. Let’s assume there is a set of processes k, we compute in time O(k2m) (polynomial) that no resource requested by one of the processes is required by any other. We have processes n1 to nk loop over all k2 set of resources. For each of the sets, we say that ni and nj loop over all m resources to make sure that no resource is requested by both ni and nj at the same time. The solution is then correct if there is no such resource spread across all combinations of sets of processes. Otherwise, it is invalid.
Question 4 (b): The special case of the problem when k = 2.
When k = 2, we can solve the given problem with a polynomial time brute-force algorithm. For every set of n2 processes, we loop over m resources to determine if there are any resources in common between them. If they don’t, there are no sets of k = 2 processes with such resources. If they do, then there is a set of k = 2 processes with such resources.
Question 4 (d): The special case of the problem when each resource is requested by at most 2 processes.
This problem is a special case of (a) with each resource being requested by at most two processes. Therefore, the resource that is requested only by the vertices on the graph it is placed on. Hence we can say that it remains the same and problem is
Support the system constraint by placing everything else in the process in subordination to it.
2. Process: At first when I saw this problem, I thought it was a joke because the answer seemed
Please choose from one (1) of the scenarios below. Note: The scenario that you choose in this assignment will be the one (1) with which you continue for Assignment 2.
Vertex Cover ≤P Efficient Recruiting: Suppose we have a black box for Efficient Recruiting and want to solve an instance of Vertex Cover. For our Vertex Cover Problem, we have a graph G=(V,E) and a number k, and need to find out if G contains a vertex cover of size (at most) k. We need to reduce the Vertex Cover Problem to an Efficient Recruiting Problem. We do this by assigning each counselor to a node and each edge represents some sport. Each counselor is qualified in the sports for which the sports edge is incident on their corresponding
(3 marks) c) Determine the optimal number of bus and train travelers. (2 marks) d) Say a train strike significantly reduced the number of trains available. By how much would the train capacity constraint have to fall for the optimal solution to be altered? (2 marks)
Use the network diagram below and the additional information provided to answer the corresponding questions. [15 points]
A) max 8 pts combined (4 pts max each part – Part a is looking for “copy and distribute”)
2. A disadvantage of the contention approach for LANs is the capacity wasted due to multiple stations attempting to access the channel at the same time. Suppose that time is divided into discrete slots, with each stations attempting to transmit with probability p during each slot. What fraction of slots are wasted due to multiple simultaneous transmission attempts?
1.19)Ans.The interrupts are used to indicate events like change in events or if any error occurs or freeing of resources or I/o
17) A graph that plots the total resources needed per period vs. time is called a(n) ________.
Sports participation is something that is looked at closely in todays society because of the amount of participants there are in sports today. Social classes and participation is heavily influenced by the way people live their lives, where they live, what country they live in , and perhaps most importantly, the socioeconomic class they may fall into. In some understatements, sports may serve as an identifier of what social class a family or individual may fall into, simply by looking at who we are dealing with and what sport this individual may play. As a student in a sport sociology class we find trends in countries worldwide when comparing certain sport involvement and social class. Throughout this essay I will have three arguments that will support my point about social class and participation in sports. My first point will be how economic resources affect the middle-class, second will be how social capital affects middle-class sports, and lastly lower-class and participation in sports.
What is the social role of sport? To what extent does social structure influence the practice and experience of sport? Discuss in relation to two of the following: gender, class, ethnicity or Aboriginality, or region. Illustrate your answer with at least three examples from sporting contexts (local or international).
The two projects, Merseyside and Rotterdam, are mutually exclusive because accepting one project will result in a higher level of output at that plant, but will incur a loss at the other plant. By accepting both projects the company, Diamond Chemicals, would achieve a 14% increase in output. However, based on forecasted demand by strategic analysts, the 14% increase does not make sense, but an increase of 7% does. Therefore both these projects seem to be mutually exclusive because each would attain the 7% increase.
8) __________ are used to display the amount of resources required as a function of time on a graph.
d) The opportunity cost should be calculated as the resource cost of producing the input.