|
|
|
|
|
by obstinate
3281 days ago
|
|
I think you might be a little confused. Even in hash tables with chaining, one does not tend to spend much time traversing linked lists, because the typical bucket will have only one member. This depends on the load factor of the table, but most practical implementations will eventually rebucket and rehash if their load factor grows too high. "Getting the key loaded" -- i.e. finding the memory location that contains the key -- is O(1) on average in all practical hash tables. It does not typically require any traversal at all. You keep on talking about ordered tables like red black trees, as in this comment, which is another sign that makes me wonder if you might be confused. |
|
https://en.wikipedia.org/wiki/Java_hashCode()#The_java.lang....