Re: [algogeeks] Hash Table

2011-09-03 Thread sukran dhawan
good material On Sat, Sep 3, 2011 at 1:59 PM, payal gupta wrote: > this might be hlpful... > Regards, > PAYAL GUPTA > > > On Sat, Sep 3, 2011 at 10:44 AM, Rahul Verma wrote: > >> I am facing some difficulty in the implementation of Hash Table. Anyone >> can please share the good resources for Ha

Re: [algogeeks] Hash Table ( A hashtable class in c++)

2011-09-02 Thread Aj G
#include #include #include #include using namespace std; // It is not advisable to list all elements in this hash table. #define HASH_SIZE 51439 class HashTable { public: vector< map > table; HashTable() { table = vector< map >(HASH_SIZE); } int hashF(long long key) { if( ke

Re: [algogeeks] Hash Table Objective Question

2011-08-11 Thread manvir siyo
please help me.. can u tell me regarding written test of De shaw company.. please if anyone knows please tell me.. please On Thu, Aug 11, 2011 at 10:58 PM, paul suganthan wrote: > if the hash function evaluates to 3 or 4 , collision occurs and by linear > probing they are put into 5(nearest free

Re: [algogeeks] Hash Table Objective Question

2011-08-11 Thread paul suganthan
if the hash function evaluates to 3 or 4 , collision occurs and by linear probing they are put into 5(nearest free entry). Also 5 and 6 are empty. But if the hash value points to 7,8,9,10 or 1 , they will be put into 2(nearest free entry). On Thu, Aug 11, 2011 at 10:53 PM, Mani Bharathi wrote: >

Re: [algogeeks] Hash Table Objective Question

2011-08-11 Thread Mani Bharathi
how do u say that they will lead to 2? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/d9eo_cbjCvwJ. To post to this group, send email to algogeeks@googlegr

Re: [algogeeks] Hash Table Objective Question

2011-08-11 Thread paul suganthan
Total number of entries=10 The entries that may lead to 2 are 7,8,9,10,1,2 So its 6/10 = 0.6 Paul On Thu, Aug 11, 2011 at 10:33 PM, Mani Bharathi wrote: > how? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To view this discussio

Re: [algogeeks] Hash Table Objective Question

2011-08-11 Thread Mani Bharathi
how? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/cDA2OA_0FnAJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this

Re: [algogeeks] Hash Table Objective Question

2011-08-11 Thread bagaria.ka...@gmail.com
0.6 is the answer i blv On 8/11/11, Mani Bharathi wrote: > > > *A hash table can store a maximum of 10 records, currently there are records > in location 1, 3,4,7,8,9,10. The probability of a new record going into > location 2, with hash functions resolving collisions by linear probing is* > > a

Re: [algogeeks] hash table

2011-08-05 Thread saurabh singh
How can the element be regained from hash table? On Sat, Aug 6, 2011 at 2:41 AM, mohit verma wrote: > yes you can... for randomness , the key value will be key=rand() and now > implement your hash function with this key. > > > On Fri, Aug 5, 2011 at 4:53 PM, Kamakshii Aggarwal > wrote: > >> can

Re: [algogeeks] hash table

2011-08-05 Thread mohit verma
yes you can... for randomness , the key value will be key=rand() and now implement your hash function with this key. On Fri, Aug 5, 2011 at 4:53 PM, Kamakshii Aggarwal wrote: > can we implement random() function on a hash table in O(1) . > > -- > Regards, > Kamakshi > kamakshi...@gmail.com > > --