Assignment Description

Help Tank find Morpheus and the others in The Matrix by creating a dictionary to automate the deciphering of known symbols in code!

Real world matrix: Why does sorting characters work in a BST? What would the binary encoding of your text file look like?

Your tasks are:

1.to write the MyMap functions

2.to write a function, getletterfrequency(), that accepts an arbitrary number of characters from standard input and builds a MyMap containing the number of occurrences for each character in the input, i.e., if the letter 'a' occurs 43 times in the input, map['a'] should return 43. An example of the behavior of this function is at the end of pa06.cpp, which expects \< sample_input.txt

Assignment Notes

You will implement a dictionary (abstract data type) using a binary search tree data structure that will have similar functionality to std::map.

https://en.cppreference.com/w/cpp/container/map

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.