you recently reply to this question but somehow I can’t access on that account can you resend it
The objectives of this programming assignment are:
For this project, you have to complete two templated classes:
Why would you ever want to build such a thing? I’m not sure you would, but here is a made-up application. Suppose you are a donut baker, and you distribute donuts to many different shops. You have a large number of donut types that you can bake â€” glazed, cinnamon, boston cream, bavarian cream, sprinkle, etc. â€” and lots of customers. Some of the customers are more important to you because they buy more donuts and always pay on time. You would like to record all your orders in the following way:
So, the donut type is the key for hashing purposes. All orders for a particular type will be stored in the same bucket, but the bucket will be a max-heap so that you can always retrieve the highest priority order quickly.
Once you see how the donut example works, it’s not too difficult to think of others. Suppose you want to track the repair priority of highway bridges. You want to search by highway name â€” US50, I97, I695, MD32, etc. â€” and, given the highway name, retrieve the bridge that is most in need of repair. The highway name is the hash key, and each bucket of the hash table is a max-heap using based on the repair priorities.
Since the Heap and HashTable classes are templated, it is easy to test them with either of the two examples given, or an example of your own. See the comments in hash.h for the requirements that the template class must satisfy and donut.h for an implementation of the donut example.
NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.
The post hasmap programing problem appeared first on My Nursing Experts.