๐Ÿ“ข 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