Top "Hashtable" questions

A hash table in programming is a collection that uses a hash function to map identifying values (keys) to their associated values.

How Do I Choose Between a Hash Table and a Trie (Prefix Tree)?

So if I have to choose between a hash table or a prefix tree what are the discriminating factors that …

algorithm data-structures hashtable trie
Hashtable in C++?

I usually use C++ stdlib map whenever I need to store some data associated with a specific type of value (…

c++ performance map hashtable complexity-theory
Multi-valued hashtable in Java

Is it possible to have multiple values for the same key in a hash table? If not, can you suggest …

java collections map hashtable multimap
What hashing function does Java use to implement Hashtable class?

From the book CLRS ("Introduction to Algorithms"), there are several hashing functions, such as mod, multiply, etc. What hashing function …

java algorithm hashtable hash
Hash table - why is it faster than arrays?

In cases where I have a key for each element and I don't know the index of the element into …

performance algorithm hash hashtable
How can I enumerate a hashtable as key-value pairs / filter a hashtable by a collection of key values

Editor's note: This question has a complicated history, but boils down to this: * To learn how to enumerate the entries …

powershell hashtable
Hashtable with multiple values for single key

I want to store multiple values in single key like: HashTable obj = new HashTable(); obj.Add("1", "test"); obj.Add("1", "Test1"); …

c# hashtable multiple-value
Hash tables in MATLAB

Does MATLAB have any support for hash tables? Some background I am working on a problem in Matlab that requires …

matlab hashtable
How do you pass a hash table to a function in PowerShell?

When passing a hash table to my PowerShell function, it complains that it receives an object. Function ExtendHash(){ param( [hashtable] $…

powershell hashtable
Map list onto dictionary

Is there a way to map a list onto a dictionary? What I want to do is give it a …

python list functional-programming hashtable