State true or false? Statement: If a problem X is in NP and a polynomial time algorithm for X could also be used to solve problem Y in

State true or false?
Statement: If a problem X is in NP and a polynomial time algorithm for X could also be used to solve problem Y in polynomial time, then Y is also in NP.
A. true
B. false
 
Answer: A
Explanation: This is just a commutative property of NP complexity class where a problem is said to be in NP if it can be solved using an algorithm which was used to solve another NP problem in polynomial amount of time.
 

Tìm kiếm

Back
Top