About 163,000 results
Open links in new tab
  1. Why is it best to use a prime number as a mod in a hashing …

    But since the probe increment is itself a hash value, it is uniformly distributed over the size of the hash table which eliminates the clustering you get with other collision resolution algorithms. …

  2. How are hash table's values stored physically in memory?

    The Wikipedia article on hash tables says that the "index" is computed as such: hash = hashfunc(key) index = hash % array_size So in my example, the indices would be: 0 % 3 = 0 …

  3. Time complexity of Hash table lookup - Computer Science Stack …

    Apr 21, 2020 · Suppose I have a hash table which stores the some strings. Let the index/key of this hash table be the length of the string. what is the time complexity of checking if the string …

  4. Understanding hashtable performance in the worst-case

    In the worst case however, all your elements hash to the same location and are part of one long chain of size n. Then, it depends on the data structure used to implement the chaining. If you …

  5. Hash tables versus binary trees - Computer Science Stack Exchange

    When implementing a dictionary ('I want to look up customer data by their customer IDs'), the typical data structures used are hash tables and binary search trees. I know for instance that …

  6. Why do hash tables have no access/indexing complexity but have …

    Hash table does not support index/access since the idea behind them is to "systematically scatter" elements in the structure to prevent/reduce collision, and with that, we do not expect to use …

  7. (When) is hash table lookup O (1)? - Computer Science Stack …

    It is often said that hash table lookup operates in constant time: you compute the hash value, which gives you an index for an array lookup. Yet this ignores collisions; in the worst case, …

  8. data structures - How to resize a large, distributed hash table ...

    Nov 16, 2015 · 5 Many hash table implementations found in programming languages (such as Java's HashMap or Python's dict) dynamically increase the size of the hash table once the …

  9. Determining an appropriate number of buckets for a hash function

    Nov 14, 2018 · I would like to select an appropriate number of buckets in my hash table for this scenario: A hash table with collision resolved is required to hold about 10000 records. Each …

  10. How are hash tables O (1) taking into account hashing speed?

    Hash tables are said to be amortized $\\Theta(1)$ using say simple chaining and doubling at a certain capacity. However, this assumes the lengths of the elements are constant. Computing …