Skip to content
Official PYQ · 1992

GATE CS 1992 Q02 — Asymptotic Worst Case Time and Space Complexity

Explain with AI

Which of the following problems is not NP\text{NP}-hard?

Choose one option
View worked solution

Answer: C

To determine which of the given problems is not NP\text{NP}-hard, let us analyze each option:

  • Hamiltonian Circuit Problem: This is a classic NP\text{NP}-complete problem. Since every NP\text{NP}-complete problem is also NP\text{NP}-hard, this problem is NP\text{NP}-hard.
  • 0/1 Knapsack Problem: The decision version of the 0/10/1 Knapsack problem is NP\text{NP}-complete, which makes the optimization version NP\text{NP}-hard.
  • Finding Bi-connected Components of a Graph: This problem can be solved in linear time O(V+E)\mathcal{O}(V + E) using Tarjan's depth-first search (DFS) algorithm. Since it has an efficient polynomial-time algorithm, it belongs to class P\text{P} and is not NP\text{NP}-hard (under the standard assumption that P≠NP\text{P} \neq \text{NP}).
  • Graph Coloring Problem: Finding the chromatic number of a graph (or even deciding if a graph is kk-colorable for k≥3k \ge 3) is a well-known NP\text{NP}-hard problem.

Thus, finding bi-connected components is the only problem listed that is not NP\text{NP}-hard.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Asymptotic Worst Case Time and Space Complexity questions