About 80 results
Open links in new tab
  1. Why use binary search trees when hash tables exist?

    Mar 17, 2018 · 5 Hash tables perform lookup, insertion, and deletion in O (1) time (expected and amortized) while the different variants of binary search tree (BST) - treap, splay, AVL, red-black - …

  2. (When) is hash table lookup O (1)? - Computer Science Stack Exchange

    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, every item

  3. Why is it best to use a prime number as a mod in a hashing function?

    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. TL;DR: a hash …

  4. terminology - What exactly (and precisely) is "hash?" - Computer ...

    Apr 5, 2016 · A hash table is a data structure that associates values with other values typically referred to as keys. It does this by using a hash function on the key to produce a fixed-sized hash value that it …

  5. 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 number of items …

  6. Time complexity analysis for Searching in a Hash table

    Sep 21, 2022 · I want to analyse the time complexity for Unsuccesful search using probabilistic method in a Hash table where collisions are resolved by chaining through a doubly linked list. And the doubly …

  7. 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 of length K …

  8. For what kind of data are hash table operations O (1)?

    Hash table techniques that pick-a-new-function-and-rehash in order to guarantee O (1) lookups, even in the worst case, include: cuckoo hashing guarantees that each key lookup succeeds with at most 2 …

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

    So you're saying hash tables are created with an estimated potential size and the items are only relocated when you need to increase the size... So it doesn't matter if a hash function has uniform …

  10. Is it possible for a hash table's load factor to exceed 100%?

    Using probing, is it possible for for a hash table's load factor to exceed 100%? I don't too much about Hash Tables. Is this possible?