Question

6. The Course Offering Problem is: Given an integer K and a set of n courses and a set of m students and, for each student si

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer to (a):

First to prove the problem is in NP, we need to find a efficient cirtifier for the problem. So there exist a cirtifier such that for any yes instance, the cirtifier will accept that cirtificate. Similiarly the cirtifier will not have any cirtificate for any no instance of the problem. The running time of the cirtificate must be in polynomial time.

Now, given a cirtificate as the set of courses offered to the students, the cirtifier can give a cirtificate depending on the instance. Given a collection of set of courses S, a cirtifier can check if it contains atmost k elements and union of all elements forms the universal set U.

Answer to (b):

The Set Covernf problem states: Given a universal set U and a family S of subsets of U, a cover is a subfamily C\subseteqS of sets whose union is U. The input is a pair (U,S) and an integer k, the question is whether there is a set covering of size k or less.

It is exactly like the Course offering problem. U represents the set of all classes available. The input is instance of courses offered to the students and all the courses. k is a integer such that it is possible to offer k courses.

So the Set Covering problem can be reduced to Course Offering Problem in polynomial time.

So, Course offering problem is also NP Complete.

Add a comment
Know the answer?
Add Answer to:
6. The Course Offering Problem is: Given an integer K and a set of n courses...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1.30 Consider the twelve configurations ci, 1 <i< 12, in Figure 1.38. Draw the digraph D, where V(D) ed...

    1.30 Consider the twelve configurations ci, 1 <i< 12, in Figure 1.38. Draw the digraph D, where V(D) edge of D if it is possible to obtain cy by rotating the configuration c either 90° or 180° clockwise about the midpoint of the checkerboard. {c1, c2,...,C12} and where (ci,c) is a directed D2: Di: Figure 1.37: Digraphs considered twelve configuratione Example 1.3, where we Next, we return to of two coins (one silver, one gold), which were denoted by ci,C2,.....

  • Challenge Problem 09.78 The two lowest energy conformations of pentane are the anti-anti and the anti-gauche...

    Challenge Problem 09.78 The two lowest energy conformations of pentane are the anti-anti and the anti-gauche forms, in terms of arrangements around the two central C-C bonds. A recent study analyzed the conformations of 3-heptyne as an "elongated" analogue of pentane, where a carbon-carbon triple bond is "inserted" between C2 and C3 of pentane (J. Phys. Chem. A. 2007, 111, 3513-3518). Interestingly, the researchers found that in each of the two most stable conformations of 3-heptyne, C1 and C6 are...

  • I'm having trouble beginning this problem. For the following compound Draw a shorthand (Iine/angle) structure, showing...

    I'm having trouble beginning this problem. For the following compound Draw a shorthand (Iine/angle) structure, showing as nearly as possible the actual shape of the molecule (with correct bond angles) The carbon to which the hydroxyl group A>>s attached is carbon 1 Provide a systematic (IUPAC) name for the compound What is the O-C1-H bond angle? What is the C2-C3-C4 bond angle? What is the C5-C6-H bond angle? What is the C3-C4-C5 bond angle? What is the hybridization of each...

  • Hello experts, I need help answering the following question and its sub-questions please. I use M...

    Hello experts, I need help answering the following question and its sub-questions please. I use MINITAB for my data. Please show your work to make it easier for understanding! will upvote! The duration of baseball games in the major league in the 2010 and 2011 seasons is uniformly distributed between 2.76 and 3.22 hours inclusive. We would like to simulate 10,000 samples of 30 game duration time and construct a 90% and 98% confidence interval for the mean duration of...

  • 8. The problem 'SET COVER gives two numbers n, k, and a family of n subsets of (,.. n It asks whe...

    Algorithms 8. The problem 'SET COVER gives two numbers n, k, and a family of n subsets of (,.. n It asks whether it is possible to select k of these subsets such that each number in (1,... ,n) occurs in at least one of the selected subsets. (8.1) Show that the problem 'SET COVER' is in the class NP (8.2) The simplest algorithm to solve set cover just tests all the possible choices of k subsets. How long will...

  • Your friends are involved in a large-scale atmospheric science experiment. They need to get good measurements...

    Your friends are involved in a large-scale atmospheric science experiment. They need to get good measurements on a set S of n different conditions in the atmosphere (such as the ozone level at various places), and they have a set of m balloons that they plan to send up to make these measurements. Each balloon can make at most two measurements. Unfortunately, not all balloons are capable of measuring all conditions, so for each balloon i = 1, ..,..,m, they...

  • A die is a cube with dots on each face. The die 20 times faces have...

    A die is a cube with dots on each face. The die 20 times faces have 1, 2, 3, 4, 5, or 6 dots. The table below is a computer simulation (from the software package Minitab) of the results of rolling a fair 4, 5, or 6 d RoW c1 C2 C3 C4 CS C6 C7 C8 C9 c10 (e) Assume that each number in the table corresponds to Why? the number of dots on the upward face of the...

  • An interconnect circuit is being considered as part of a new logic architecture R1 R3 R4 R6 R7 R9...

    An interconnect circuit is being considered as part of a new logic architecture R1 R3 R4 R6 R7 R9 R10 C3 C4 C6 C7 C9 C10 R2 R5 R8 V(t) C1 C2 C5 C8 Initially, assume unit circuit elements. That is, the capacitors C1,..,C10 F, the resistors R.,..Rio-12m and voltage, V(t)-1 V. At t-0, the switch is closed. The voltages across the capacitors (C[i], here Cl to C10) are represented as x, Hint: V(t) may be seen as an input/control...

  • Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In...

    Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In this scheme, some procedure is used to identify when a deadlock occurs, and then another procedure is used to deal with the blocked processes. One technique to identify a deadlock is to maintain a resource graph that identifies all processes, all resources, and the relationships between them (that is, which processes exclusively own which resources, and which processes are blocked waiting for which...

  • 1. Create a PL/SQL program block that determines the top students with respect to GPA. Assume...

    1. Create a PL/SQL program block that determines the top students with respect to GPA. Assume that the database has four tables. Student(SSN, SName, DOB, Major) , Grade(SSN, CNo, Grade(0,1,2,3,4)) and Course table(CNo,CName, Credit Hour), Prerequisite(CNo, PreCNo); Student and couse data ae given in the following SQL statements a. Accept a number n as user input with SQL*Plus telling top n%. b. In a loop get the SName and GPA of the top n% people with respect to GPA. c....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT