Question
MUST CODE IN JAVA -DO NOT USE Hashmap FUNCTIONS -CAN USE ARRAYS -CAN USE NODES -Build a Huffman tree based on this string message: 'twas
MUST CODE IN JAVA
-DO NOT USE Hashmap FUNCTIONS
-CAN USE ARRAYS
-CAN USE NODES
-Build a Huffman tree based on this string message: 'twas brillig, and the slithy toves did gyre and gimble in the wabe: all mimsy were the borogoves, and the mome raths outgrabe. "beware the jabberwock, my son! the jaws that bite, the claws that catch! beware the jubjub bird, and shun the frumious bandersnatch!" he took his vorpal sword in hand: long time the manxome foe he sought -- so rested he by the tumtum tree, and stood awhile in thought. and, as in uffish thought he stood, the jabberwock, with eyes of flame, came whiffling through the tulgey wood, and burbled as it came! one, two! one, two! and through and through the vorpal blade went snicker-snack! he left it dead, and with its head he went galumphing back. "and, has thou slain the jabberwock? come to my arms, my beamish boy! o frabjous day! callooh! callay!" he chortled in his joy. 'twas brillig, and the slithy toves did gyre and gimble in the wabe; all mimsy were the borogoves, and the mome raths outgrabe.
-User is prompt to enter a string to be encoded, when user inputs a string, the output value returned is the encoded value of each character BASED on the tree built from the string message given above.
-everything is coded in java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started