About 110,000 results
Open links in new tab
  1. How do I create a hash table in Java? - Stack Overflow

    What is the most straightforward way to create a hash table (or associative array...) in Java? My google-fu has turned up a couple examples, but is there a standard way to do this?

  2. What are the differences between a HashMap and a Hashtable in …

    HashTable and HashMap are member of the Java Collections Framework (since Java 2 platform v1.2, HashTable was retrofitted to implement the Map interface). HashTable is considered …

  3. java - The fundamentals of Hash tables? - Stack Overflow

    The point of using a hash table over an array is performance. Iterating through an array would typically take anywhere from O (1) to O (x) where x is the number of items in the array.

  4. java - How do HashTables deal with collisions? - Stack Overflow

    Hash tables deal with collisions in one of two ways. Option 1: By having each bucket contain a linked list of elements that are hashed to that bucket. This is why a bad hash function can …

  5. data structures - How does a hash table work? - Stack Overflow

    Instead of using the key directly, a hash table first applies a mathematical hash function to consistently convert any arbitrary key data to a number, then using that hash result as the key.

  6. What hashing function does Java use to implement Hashtable class?

    Feb 20, 2012 · The integer returned by hashCode () is the real key for Hashtble, then Hashtable uses a hashing function to hash the hashCode (). What this answer implies is that Java give …

  7. How does Java implement hash tables? - Stack Overflow

    Oct 29, 2009 · 17 Does anyone know how Java implements its hash tables (HashSet or HashMap)? Given the various types of objects that one may want to put in a hash table, it …

  8. Hash table runtime complexity (insert, search and delete)

    126 Why do I keep seeing different runtime complexities for these functions on a hash table? On wiki, search and delete are O (n) (I thought the point of hash tables was to have constant …

  9. java - Hash : How does it work internally? - Stack Overflow

    A Hash Set is a set of unique values. Getting an item from a hashtable is constant-time with regard to the size of the table. Computing a hash is not necessarily constant-time with regard …

  10. sorting - How to sort a Java Hashtable? - Stack Overflow

    Dec 2, 2010 · Hash table and linked list implementation of the Map interface, with predictable iteration order. This implementation differs from HashMap in that it maintains a doubly-linked …