UGC NET Paper 2 (Computer Science)Hard

Which of the following NP-complete problems is only weakly NP-complete, i.e. solvable in pseudo-polynomial time?

  1. A. Subset Sum
  2. B. Vertex Cover
  3. C. 3-Colouring
  4. D. Clique

Correct answer: A. Subset Sum

Subset Sum has a DP solution in O(nS) time, polynomial in the numeric value S but exponential in its bit length; Vertex Cover, 3-Colouring and Clique have no known pseudo-polynomial algorithm.

More UGC NET Computer Science and Applications questions

Exams that ask this topic