Consider the following four data structures: array, binary search tree, hash table, and a linked list. Which of the following options arranges them in non-decreasing order of worst case runtime for searching?
- Array, Binary Search Tree, Linked List, Hash Table
- Hash Table, Binary Search Tree, Linked List, Array
- Binary Search Tree, Hash Table, Array, Linked List
- Hash Table, Linked List, Binary Search Tree, Array
I think it will be $O(n)$ for all four of them in the worst cases: Array-unsorted, BST-skewed, Hash Table-mapped to one location only, $LL$ has $O(n)$.