Questions: Complexity Class NP: Nondeterministic Polynomial Time

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A student claims: 'The Traveling Salesman Problem is in NP, which means it definitely cannot be solved in polynomial time.' What is wrong with this reasoning?

ANothing is wrong — being in NP means a problem is outside P by definition
BThe reasoning confuses NP with 'non-polynomial.' NP means solutions can be verified in polynomial time; whether NP problems can also be solved in polynomial time is exactly the open P vs NP question
CThe Traveling Salesman Problem is not actually in NP
DNP problems can always be solved in polynomial time — the student has the definition of P wrong
Question 2 Multiple Choice

For the CLIQUE problem (does graph G contain a complete subgraph of k vertices?), what serves as a polynomial-size certificate for a 'yes' instance?

AA complete enumeration of all subsets of vertices, confirming that at least one of size k is a clique
BA specific list of k vertices that can be checked in polynomial time to confirm every pair is connected by an edge
CThe full adjacency matrix of G, which encodes all edge information
DA proof that no efficient algorithm can determine k-clique membership
Question 3 True / False

Every problem in P is also in NP.

TTrue
FFalse
Question 4 True / False

NP is the class of problems that can seldom be solved in polynomial time.

TTrue
FFalse
Question 5 Short Answer

Why would a proof that P = NP be catastrophic for modern cryptography?

Think about your answer, then reveal below.