📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

      Which algorithm is used to detect cycles in a directed graph?

      A Prim’s Correct Answer Incorrect Answer
      B DFS Correct Answer Incorrect Answer
      C BFS Correct Answer Incorrect Answer
      D Dijkstra’s Correct Answer Incorrect Answer
      E Kruskal’s Correct Answer Incorrect Answer

      Solution

      Depth-First Search detects cycles by tracking visited nodes and recursion stack.

      Practice Next
      ask-question