why we used greedy algorithm? by Md.Armanul Islam (192-15-2842) - Monday, 30 November 2020, 10:39 AM Number of replies: 0 A greedy algorithm is used to construct a Huffman tree during Huffman coding where it finds an optimal solution. In decision tree learning, greedy algorithms are commonly used, however they are not guaranteed to find the optimal solution. 38 words Permalink