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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!