The worst case running time of a linear search on the self organizing list is ____

The worst case running time of a linear search on the self organizing list is ____
A. O(1)
B. O(logn)
C. O(n)
D. O(n$^{2}$)
 
Answer: c
Explanation: Worst case occurs when the element is located at the very end of list. So n comparisons must be made to the locate element. So the worst case running time of linear search on self organizing list is O(n).
 

Tìm kiếm

Back
Top