Unsorted Arrays vs Binary Search
1. How is a linear search performed?
2. In the worst case, what is the time complexity of linear search on an array of size ?
3. In the best case, what is the time complexity of linear search?
4. How is linear search disadvantageous compared with search methods that exploit additional structure such as sorted order?
5. For an ordered linear search, is the worst-case time complexity. An ordered linear search is a linear search on an array that is already sorted.
6. What is the best-case number of comparisons for a linear search when the target is the first element of the array?
7. Consider the array [7, 14, 3, 25, 10]. If linear search is used to find 25 from left to right, how many elements are examined?
8. Which statement about linear search on an unsorted array is correct?
9. Suppose an unsorted array contains elements and the target is not present. What is the number of elements that a standard linear search may need to examine?