MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

THEORY OF COMPUTATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
How many steps are required to prove that a decision problem is NP complete?
A
1
B
2
C
3
D
4
Explanation: 

Detailed explanation-1: -To prove a problem NP Complete, there are two steps involved: Prove given problem belong to NP Class. All other problems in the NP class can be polynomial time reducible to that problem.

Detailed explanation-2: -We can solve Y in polynomial time: reduce it to X. Therefore, every problem in NP has a polytime algorithm and P = NP. then X is NP-complete. In other words, we can prove a new problem is NP-complete by reducing some other NP-complete problem to it.

Detailed explanation-3: -In order to prove that a problem L is NP-complete, we need to do the following steps: Prove your problem L belongs to NP (that is that given a solution you can verify it in polynomial time) Select a known NP-complete problem L’

Detailed explanation-4: -To prove VC is NP, find a verifier which is a subset of vertices which is VC and that can be verified in polynomial time. For a graph of n vertices it can be proved in O(n2). Thus, VC is NP. Now consider the “clique” problem which is NPC and reduce it into VC to prove NPC.

Detailed explanation-5: -For a decision problem A to be in NP, it is sufficient to show that a certificate (an encoding of a solution to the problem) can be verified to represent a solution to the decision problem in polynomial time.

There is 1 question to complete.