1. What is the main advantage of using a linear search algorithm?
It finds the desired item in logarithmic time
It requires the array to be sorted before searching
It is the most efficient search algorithm for large datasets
It can be used on unordered arrays
2. In what scenario is a binary search algorithm more efficient than a linear search?
When searching for an item in a large, ordered array
When the items in the array are randomly distributed
When the array is small and unordered
When every item in the array must be checked