Question: 3 ( 1 0 pts ) For the Huffman encoding algorithm, use pseudo - code to implement the following. ( a ) Nodes of the
pts For the Huffman encoding algorithm, use pseudocode to implement the following.
a Nodes of the Huffman prefix tree.
The initial nodes store a symbol and its frequency, these are the leaf nodes. The two nodes with
the lowest frequencies are merged into a new node which stores their sum and references to the
two merged nodes, these nodes are the intermediate nodes. Indicate how the values stored in each
node can be retrieved.
b Retrieval and insertion.
Give the data structure for the storage of the nodes and how the two nodes with the lowest
frequencies are retrieved, merged and their merged node inserted.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
