GATE Exam  >  GATE Questions  >  Which of the following statements are TRUE?(1... Start Learning for Free
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.
  • a)
    1,2 and 3
  • b)
    1 and 2 only
  • c)
    2 and 3 only
  • d)
    1 and 3 only
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
Which of the following statements are TRUE?(1) The problem of determin...
1. Cycle detection using DFS:  O(V+ E) = O(V2) and it is polynomial problem
2. Every P-problem is NP(since P
NP)
3. NP − complete
 NP
Hence, NP-complete can be solved in non-deterministic polynomial time
 
View all questions of this test
Most Upvoted Answer
Which of the following statements are TRUE?(1) The problem of determin...
1. Cycle detection using DFS:  O(V+ E) = O(V2) and it is polynomial problem
2. Every P-problem is NP(since P
NP)
3. NP − complete
 NP
Hence, NP-complete can be solved in non-deterministic polynomial time
 
Free Test
Community Answer
Which of the following statements are TRUE?(1) The problem of determin...
1.We can either use BFS or DFS to find whether there is a cycle in an undirected graph. 
example.
Given an undirected graph, how to check if there is a cycle in the graph? For example, the following graph has a cycle 1-0-2-1.
2. If a problem is in P, then it is definitely in NP (can be verified in polynomial time).
Explore Courses for GATE exam

Similar GATE Doubts

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 timealgorithm to solve A.a)1,2 and 3b)1 and 2 onlyc)2 and 3 onlyd)1 and 3 onlyCorrect answer is option 'A'. Can you explain this answer?
Question Description
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 timealgorithm to solve A.a)1,2 and 3b)1 and 2 onlyc)2 and 3 onlyd)1 and 3 onlyCorrect answer is option 'A'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about 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 timealgorithm to solve A.a)1,2 and 3b)1 and 2 onlyc)2 and 3 onlyd)1 and 3 onlyCorrect answer is option 'A'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for 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 timealgorithm to solve A.a)1,2 and 3b)1 and 2 onlyc)2 and 3 onlyd)1 and 3 onlyCorrect answer is option 'A'. Can you explain this answer?.
Solutions for 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 timealgorithm to solve A.a)1,2 and 3b)1 and 2 onlyc)2 and 3 onlyd)1 and 3 onlyCorrect answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of 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 timealgorithm to solve A.a)1,2 and 3b)1 and 2 onlyc)2 and 3 onlyd)1 and 3 onlyCorrect answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of 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 timealgorithm to solve A.a)1,2 and 3b)1 and 2 onlyc)2 and 3 onlyd)1 and 3 onlyCorrect answer is option 'A'. Can you explain this answer?, a detailed solution for 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 timealgorithm to solve A.a)1,2 and 3b)1 and 2 onlyc)2 and 3 onlyd)1 and 3 onlyCorrect answer is option 'A'. Can you explain this answer? has been provided alongside types of 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 timealgorithm to solve A.a)1,2 and 3b)1 and 2 onlyc)2 and 3 onlyd)1 and 3 onlyCorrect answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice 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 timealgorithm to solve A.a)1,2 and 3b)1 and 2 onlyc)2 and 3 onlyd)1 and 3 onlyCorrect answer is option 'A'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev