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


    Question

    Which of the following is NOT a greedy

    algorithm?
    A Kruskal Correct Answer Incorrect Answer
    B Prim Correct Answer Incorrect Answer
    C Huffman coding Correct Answer Incorrect Answer
    D MergeSort Correct Answer Incorrect Answer
    E Dijkstra Correct Answer Incorrect Answer

    Solution

    MergeSort is divide-and-conquer; greedy algorithms build a solution step by step making locally optimal choices.

    Practice Next
    More Algorithms Questions
    ask-question