• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Aptitude | GATE-CS-2015 | Question 2

Consider the following two problems of graph. 1) Given a graph, find if the graph has a cycle that visits every vertex exactly once except the first visited vertex which must be visited again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge exactly once. Which of the following is true about above two problems.

(A)

Problem 1 belongs NP Complete set and 2 belongs to P

(B)

Problem 1 belongs to P set and 2 belongs to NP Complete set

(C)

Both problems belong to P set

(D)

Both problems belong to NP complete set

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments