πŸ“’ 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 BFS Correct Answer Incorrect Answer
      B DFS Correct Answer Incorrect Answer
      C Dijkstra Correct Answer Incorrect Answer
      D Prim Correct Answer Incorrect Answer
      E Kruskal Correct Answer Incorrect Answer

      Solution

      DFS with a recursion stack is used to detect cycles in directed graphs.

      Practice Next
      ask-question