1. What is the main advantage of using a linear search algorithm?
It can be used on unordered arrays
It requires the array to be sorted before searching
It finds the desired item in logarithmic time
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 every item in the array must be checked
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