Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/17/03 10:59
Read: times


 
#54862 - RE: problem in detailed
Responding to: ???'s previous message
now here we go,


divide your memory space into N buckets(logicall division) where N is a suitable Prime number.i.e. first bucket logically starts from address 0, second bucket from S/N, , tird from 2S/N and so on where S is your total memory space.

when ever a string arrives you divide your customer identification number with N, and store this string to the bucket number k%N where k is customer identification number.

to search a string Ks divide this with N and earch the string in bucket Ks%N. this is how theoritically hashing will work, here we assumed that strings stored have uniformly distributed over the search space. A condition "Bucket overflow occurs when string belonging to same buckets arrive and one buckets becomes full while others are empty. to resolve this many techneques are there. you can refer to ant data structure text book.


abhishek

List of 18 messages in thread
TopicAuthorDate
storing strings on flash            01/01/70 00:00      
   RE: storing strings on flash            01/01/70 00:00      
      RE: storing strings on flash            01/01/70 00:00      
         RE: storing strings on flash            01/01/70 00:00      
            RE: storing strings on flash            01/01/70 00:00      
   RE: storing strings on flash            01/01/70 00:00      
      RE: storing strings on flash            01/01/70 00:00      
      RE: storing strings on flash            01/01/70 00:00      
         Clarification required - Suresh!            01/01/70 00:00      
            RE: Clarification required - Suresh!            01/01/70 00:00      
               RE: Clarification required - Suresh!            01/01/70 00:00      
                  RE: Clarification required - Suresh!            01/01/70 00:00      
                     clarified            01/01/70 00:00      
               RE: Clarification required - Suresh!            01/01/70 00:00      
                  RE: Clarification required - Suresh!            01/01/70 00:00      
                  problem in detailed            01/01/70 00:00      
                     RE: problem in detailed            01/01/70 00:00      
   RE: storing strings on flash            01/01/70 00:00      

Back to Subject List