GATE CS 2013 · Graph Traversals (BFS & DFS)

MCQ · 1 mark · Problem PROG-GRPH-0083

Which of the following statements are TRUE? 1. The problem of determining whether there exists a cycle in an undirected graph is in P. 2. The problem of determining whether there exists a cycle in an undirected graph is in NP. 3. If a problem A is NP-Complete, there exists a non-deterministic polynomial time algorithm to solve A.
  1. A
    1, 2 and 3
  2. B
    1 and 2 only
  3. C
    2 and 3 only
  4. D
    1 and 3 only

Solve it on GATE DA practice →More Graph Theory & Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1440/gate2013-18

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com