Does the fact that the keys are usually strings, make it more useful for collections of string
data? I know that a hash table uses less space, because it has a chunk of memory allocated to it, rather than for each character of each string.
In terms of search, O(m) is the worst case, where m is the length of a key. Binary tree search is O(log n), so I guess I should compare which is more efficient depending on a situation?
P.S. Before you vote to close, this not an opinion question. I need real facts regarding data structures to make the optimal choice.
Thank you