Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Wednesday, January 22, 2020

Given two problems X and Y, Y is NP complete and X reduces

Given two problems X and Y, Y is NP complete and X reduces to Y in polynomial time. Which of the following is a valid statement ?
AX is NP hard
BX is NP complete
CX is an NP, but not necessarily NP complete
DIf X can be solved in polynomial time, so also can Y.

Answer : X is NP complete

Explanation:

A decision problem C is NP-complete if:
i.) C is in NP, and
ii.) Every problem in NP is reducible to C in polynomial time.

C can be shown to be in NP by demonstrating that a candidate solution to C can be verified in polynomial time.

Note that a problem satisfying condition 2 is said to be NP-hard, whether or not it satisfies condition 1.
Reference:https://en.wikipedia.org/wiki/NP-completeness

Nithin K
answered Dec 7 '2016 at 21:38

All Comments

Post your answers here:

Post

Post your comments here:

Post

Categories