Vocabulary and Hashtable will be the fastest in the "search", because it is the speed of O (1). There are some problems with dictionaries and Hashtables in that they are not sorted.
Using the binary search tree, you can get an O (Log N) search.
Using an unsorted list, you will have an O (N) speed to search.
Using a sorted list, you get an O (Log N) search, but remember that the list needs to be sorted to add time to the overall speed.
Regarding memory usage, just make sure you initialize the collection size.
Therefore, a dictionary or hash table is the fastest to search.
Speed classification from best to worst O (1) O (log n) On) O (n log n) O (N ^ 2) O (2 ^ n)
n is the number of elements.
Odnxe
source share