Question: 5 . ConsiderasetA = { a 1 , . . . , an } and a collection B 1 , B 2 , . .
ConsiderasetAaanand a collection BBBm ofsubsetsof A ie Bi A for each i
We say that a set H A is a hitting set for the collection BBBm if H contains at least one element from each Bithat is if H cap Bi is not empty for each i so H hits all the sets Bi
We now define the Hitting Set Problem as follows. We are given a set Aaan a collection BBBm of subsets of A and a number
k We are asked: Is there a hitting set H A for BBBm so that the size of H is at most k
Prove that Hitting Set is NPcomplete. Hintsdirection: There are two runtimes that need to be discussed when proving a problem NPComplete.
First, we want to argue the verification algorithm is able to check a certificate for the yesinstance. Start by saying what a certificate would be for a yesinstance, as that will be the input to your verifier since that is the thing you are verifying. Again you can refer to sample solutions from last HW for help with making this more concrete. Also see the HW hints I posted last week that referred to places in the textbook that gave examples of this.
Second, we want to prove that some alreadyknowntobe NPhard problem is polytime reducible to whatever textbook problem you are working on Verification algorithm run time points
Reduction algorithm points
Proof of correctness of reduction points
Runtime analysis of reduction points Vertex Cover would work well for showing Hitting Set is NPhard
Remember you are starting with VC and building a Hitting Set input from it
Some people had the right idea for the proofs but left out basic info such as explaining each node in the vertex cover graph which is the input you start with corresponds to an element in the set A in the hitting set instance which is what you are building Steps like this are crucial in proving how you know a solution for the vertex cover problem corresponds to a solution in the hitting set instance.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
