write a program that reads in a body of text and inserts the text into a binary tree class that you write from scratch based on alphabetical order. You should keep an instance count for each word in the text. Each time a duplicate word is added you should be able to update the instance count for that word. At the end of the text insertion you will show statistics for the run. Details The purpose of this exercise is to give you familiarity with Binary Trees. You will read in a lengthy text file; Bram Stokers Dracula as text from guttenberg.org http://www.gutenberg.org/ebooks/345.txt.utf-8. If you have problems search for 345 on Gutenberg.org, and select the Plain Text UTF-8 link. As you read the text you will map all words to lower case, and remove all punctuation characters (Only numbers or letters should remain) removed characters should be eaten, NOT replaced with a space. (Use the parser I will provide, it does all this). Once the words are pre-processed you will insert them into a binary tree. Each item must be answered programmatically.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here