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