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


    Question

    Which graph traversal technique is commonly used for

    topological sorting?
    A BFS Correct Answer Incorrect Answer
    B DFS Correct Answer Incorrect Answer
    C Dijkstra Correct Answer Incorrect Answer
    D Kruskal Correct Answer Incorrect Answer
    E Prim Correct Answer Incorrect Answer

    Solution

    DFS is used for topological sorting in DAGs by recording the finish times of nodes.

    Practice Next
    ask-question