ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Where is linear searching used?
Correct Answer: D — When the list has only a few elements and When performing a single search in an unordered list
It is practical to implement linear search in the situations mentioned in When the list has only a few elements and When performing a single search in an unordered list, but for larger elements the complexity becomes larger and it makes sense to sort the list and employ binary search or hashing.