[SOLVED] Priority_queue to simulate a Binary_Tree

15.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab.zip (12.3 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)
Use a Priority_queue to simulate a Binary_Tree
Techniques/Structures: Polymorphism, SmartPointers, Priority_Queue, Lambdas
Step1: Create a frequency table of ascii characters based on the frequency of characters in a text file. After processing the file, generate a character frequency table for all characters with a frequency greater than zero.
Step2: Using an STL Priority_Queue, create a frequency table with the highest frequency characters at the front.

Step3: Using the PriorityQueue-Tree algorithm as illustrated in class, encode the Speech.txt file in the Lab/data folder. This step will produce an encrypted binary file.Step4: Decrypt your encrypted binary file by using the PriorityQueueTree and demonstrate it decrypts the characters back to the original text.

  • Lab.zip