Skip to content

UGC NET CS 2014Data Structures and Algorithms › Complexity TheoryVerified

UGC NET CS 2014 PYQ: Given the following statements : $S_{1}$ : The subgraph-isomorphism problem takes two graphs $G_{1}$ and…

Given the following statements :

$S_{1}$ : The subgraph-isomorphism problem takes two graphs $G_{1}$ and $G_{2}$ and asks whether $G_{1}$ is a subgraph of $G_{2}$ .

$S_{2}$ : The set-partition problem takes as input a set $S$ of numbers and asks whether the numbers can be partitioned into two sets $A$ and $\bar{A}=S-A$ such that

$\begin{matrix} \sum x & & \sum x \\ & = & \\ x \in A & & x \in \bar{A} \end{matrix}$

Which of the following is true ?

  1. A
    $S_{1}$ is $NP$ problem and $S_{2}$ is $P$ problem.
  2. B
    $S_{1}$ is $NP$ problem and $S_{2}$ is $NP$ problem.
    Correct answer
  3. C
    $S_{1}$ is $P$ problem and $S_{2}$ is $P$ problem.
  4. D
    $S_{1}$ is $P$ problem and $S_{2}$ is $NP$ problem.

Answer

(B) $S_{1}$ is $NP$ problem and $S_{2}$ is $NP$ problem.

Approach

Recall the complexity class of subgraph isomorphism and set partition, both classic NP-complete problems.

Reviewed by UGC IQ Editorial Team.