home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cset21v1.zip
/
IBMCPP
/
TUTORIAL
/
ICLCC
/
TUTOR5
/
SOLUTION
/
SOLUTION.TXT
< prev
Wrap
Text File
|
1993-04-23
|
624b
|
17 lines
Tutorial 5: Providing the right element functions,
exchanging the implementation variants
You want to exchange the implementation variant of the last example
from an AVL tree to a hash table.
1) Modify the file kperson.h to provide a hash function for the person record.
2) Change the include file and the typedef statement to use
a set set based on a hash table.
3) Run the program.
NOTE: Nothing else has to be changed, default size of 100 is provided
for the hash table.
4) Provide an estimated size for the hashtable.
5) Run the program again.
Have a look at the results with your debugger.