hash table *clueless* help :)
hey, i'm curious about hash tables...what do you use them for? how do they work? how do you use them? does anyone know of a good tutorial that will answer my previously stated questions? i saw the FAQ about binary search trees..but i dont know if that helps.
i'm curious about this because my friend has an assignment in java where he has to use a hash table to read in a text file, produce statistics for it (like how many times "the" occurs in the file, and then output some random babble based on the statistics of the file, such as if 'the' and 'quick' are next to each other 80% of the time, in the random babble 'the' and 'quick' are still next to each other 80% of the time) and he has to use hash tables in it....i have his java code, but i dont know java and i'm sufficiently tired so trying to interpret it isn't working well. and i thought it would be a fun program to make using the win32 api and i wrote the gui and the load file functions.. i just have to complete the analyze function and the function for creating the babble, lol.
also - this is annoying me. like, i have an edit box...it has a [Browse] button for the user to browse for a text file to select for analyzing / babbling purposes... it ALWAYS has a horizontal scrollbar >:O i want it to be able to scroll horizontally but A. i dont want it to have the scrollbar OR B. i dont want the scrollbar to exist when its not needed.. i know this is more for the windows programming forum, but i figured while we're on the topic... O=)
but if someone could help my understanding of hash tables.. and binary searches, and binary search trees (for some reason the FAQ isn't 'clicking') then that would be wonderful :)