You are given a list of characters and their corresponding f…

You are given a list of characters and their corresponding frequencies. Your task is to construct a Huffman Tree to minimize the number of bits required to encode the characters. Write pseudocode to generate the Huffman Tree using a priority queue (min-heap). You are required to use a greedy algorithm. Here is a smaller set of characters and frequencies: (A, 2), (B, 3), (C, 6), (D, 8), and (E, 10).