Question

Consider two decision problems Q1,Q2Q_1, Q_2 such that Q1Q_1 reduces in polynomial time to 3-SAT and 3-SAT reduces in polynomial time to Q2Q_2. Then which one of the following is consistent with the above statement?

Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2015 answer key

Solution

Apply the definitions of polynomial-time reductions (A≤pBA \le_p B) and NP-completeness.

We are given:

  1. Q1≤p3-SATQ_1 \le_p \text{3-SAT}.
    Since 3-SAT is in NP, any problem that polynomial-time reduces to a problem in NP is also in NP. Hence, Q1∈NPQ_1 \in \text{NP}.
  1. 3-SAT≤pQ2\text{3-SAT} \le_p Q_2.
    Since 3-SAT is an NP-complete problem, any problem to which 3-SAT polynomial-time reduces is at least as hard as 3-SAT. Thus, Q2Q_2 is NP-hard.

Combining both conclusions:
'Q1Q_1 is in NP, and Q2Q_2 is NP-hard.'
This matches option A.

Final answer

A

Common trap

Reversing the direction of reduction (e.g., claiming Q2Q_2 is in NP or Q1Q_1 is NP-hard).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 2
Question
12 of 65, printed as CS Q.2
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.