Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Implement MTFList, TransposeList, and CountOrderList as separate . hpp files. For each node ofthese linked lists, have them hold a letterCount value as their data.
Implement MTFList, TransposeList, and CountOrderList as separate hpp files. For each node ofthese linked lists, have them hold a letterCount value as their data. The CountOrderLists node mayrequire an extra count value for its ordering.Once you have the lists implemented, compare their performance at counting the number of lettersin a text document. All letters in the English alphabet occur at different frequencies. For example,the letter e is far more frequent in English text than q or x Use your lists and count the numberof times each letter occurs in the ADSItesttext.txt document provided.Your data structure should count only the letters az If you encounter an uppercase letter, convertit to lower case. Additionally, have your lists store the number of comparisons when searching for akey. This will be used to compare the lists for their performances.As you analyze the performance, also record the amount of time used for each analysis. After everylist has been tested on the data set, report the following for each list: Output the number of occurrences of every letter Output the number of comparisons made by the data structure Output the total time take to run the analysis.This should all be output for MTFList, TransposeList, and CountOrderList. This means a total of output sections
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