Write an application to test the HuffmanTree class. Your application will need to read a text file and build a frequency table for the characters occurring in that file. Once that table is built, create a Huffman code tree and then a string consisting of ' 0 ' and ' 1 ' digit characters that represents the code string for that file. Read that string back in and re-create the contents of the original file.
In a breadth-first traversal of a binary tree, the nodes are visited in an order prescribed by their level. First visit the node at level 1, the root node. Then visit the nodes at level 2, in left-to-right order, and so on. You can use a queue to implement a breadth-first traversal of a binary tree
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here