Why are hash maps better than trie maps?
问题 By trie map I mean an associative array, where the payloads are stored in a trie instead of a hash table. When I'm using a hash map/table, the keys I use are typically strings. What are the advantages of a hash map over some trie based map? I have read that a hash map is faster - but it seems to me that a consistent hash functions would have to check each element of the (char) array for the final hash - iterating over the array once. In a trie you would similarly have to iterate over the