Editorial / Best Answer
hrshksh
It depends on the amount of primary memory one has for the process. If we can store 1 million records in primary memory, then we can very well take a hash table with a consistent hashing scheme for avoiding collisions. It will take O(1).
In most cases however this is not possible. In circumtances like this, there are two ways:
B Trees or Extensible Hashing both of them have interesting time complexities.
Data Structure for one million named objects
Profile Answers by bitsbyter Questions by bitsbyter
Questions by bitsbyter
Editorial / Best Answer
hrshkshProfile Answers by hrshksh Questions by hrshksh
It depends on the amount of primary memory one has for the process. If we can store 1 million records in primary memory, then we can very well take a hash table with a consistent hashing scheme for avoiding collisions. It will take O(1).
Related Answered Questions
Related Open Questions