C++ Hashing functions?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2007
Posts: 3
Reputation: nitro is an unknown quantity at this point 
Solved Threads: 0
nitro's Avatar
nitro nitro is offline Offline
Newbie Poster

C++ Hashing functions?

 
0
  #1
Nov 2nd, 2007
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....
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 71
Reputation: Belrog is an unknown quantity at this point 
Solved Threads: 4
Belrog's Avatar
Belrog Belrog is offline Offline
Junior Poster in Training

Re: C++ Hashing functions?

 
0
  #2
Nov 2nd, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 62
Reputation: Ptolemy is an unknown quantity at this point 
Solved Threads: 8
Ptolemy's Avatar
Ptolemy Ptolemy is offline Offline
Junior Poster in Training

Re: C++ Hashing functions?

 
0
  #3
Nov 2nd, 2007
>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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC