943,520 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 13000
  • C++ RSS
Nov 2nd, 2007
0

C++ Hashing functions?

Expand Post »
Can someone plz give me the C++ code for the following:

(1) linear probing
(2) separate chaining
(3) quadratic probing
(4) double hashing

I know the theory behind it but i dont seem to be able to put it into code!
plz help me

P/S: im not asking you to spoon feed me with code but im really not able to figure out how to write these functions....
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nitro is offline Offline
3 posts
since Oct 2007
Nov 2nd, 2007
0

Re: C++ Hashing functions?

Have a go at the design of an algorithm first - after you know what you want the code to do, the actual code will come easier.
Last edited by Belrog; Nov 2nd, 2007 at 8:36 am. Reason: Grammar mistakes
Reputation Points: 11
Solved Threads: 4
Junior Poster in Training
Belrog is offline Offline
71 posts
since Nov 2007
Nov 2nd, 2007
0

Re: C++ Hashing functions?

>I know the theory behind it but i dont seem to be able to put it into code!
Then you don't really know the theory behind it. Not to be rude or anything, but these are all pretty straightforward concepts and the code ends up being very short compared to other data structures. This might help you get a feel for how things work in practice.
Reputation Points: 44
Solved Threads: 8
Junior Poster in Training
Ptolemy is offline Offline
62 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in C++ Forum Timeline: Help
Next Thread in C++ Forum Timeline: Move file pointer to read next file value





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC