General Remarks on Various Methods

Average Performance Complexity of the Major Storage-and-Retrieval Approaches
contiguous
unsorted
(vector)
contiguous
sorted
(vector)
non-contiguous
unsorted
(linked sequence)
non-contiguous
sorted
(linked sequence)
binary search tree
(balanced)
hash table
(perfect
hash function)
insert O(1) O(n) O(1) O(n) O(log n) O(1)
delete O(n) O(n) O(n) O(n) O(log n) O(1)
search/find O(n) O(log n) O(n) O(n) O(log n) O(1)
overall
performance
O(n) O(n) O(n) O(n) O(log n) O(1)