Searching |
Best performance is O(N) because the list must be searched sequentially even if it is ordered. |
Best performance is O(log N) if the list is ordered because a binary search can be used. |
Insertion/deletion |
Performance is O(1) no matter how big the list is. At most, two elements are affected (see Lesson AB30). |
Performance is O(N) because many elements of the list may have to be moved. |