Assignment 5

Due: 28 Nov 2012

Educational objectives:

Statement of work: Implement a good hash function for strings, where the strings are words, using the STL tr1/unordered_set container. Also implement another efficient data structure for storing these words. Compare the performances of of (i) STL set, (ii) STL tr1/unordered_set with the default hash function, (iii) STL tr1/unordered_set with your hash function, and (iv) your data structure. You will be graded on the performance and correctness of your code. So, please use good compiler optimization flags in your makefile. You may also use OpenMP to improve the performance of your code.

Deliverables:

Requirements:

Note:

  1. We will test your MyDS class on a piece of code that we will write. So it is important for this class to be exactly as specified.

Bonus points (5):

You may get up to 50 additional points if your code is correct and the fastest in class. You may get up to 25 bonus points if MyDS or an unordered_set with your hash function works correctly and is faster that the two STL containers. (The speed of the STL containers will be determined by a piece of single-threaded code that we write, in determining bonus points).

Copyright: Ashok Srinivasan, Florida State University.


Last modified: 8 Nov 2011