Why we used greedy algorithm??? by Masud Parvez Pyiash 192-15-2827 - Sunday, 18 October 2020, 12:29 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