Recall & Review
beginner
What is the main idea behind the Linear Search Algorithm?
Linear Search checks each item in a list one by one until it finds the target or reaches the end.
Click to reveal answer
beginner
What is the time complexity of Linear Search in the worst case?
The worst-case time complexity is O(n), where n is the number of items in the list.
Click to reveal answer
intermediate
In which scenario is Linear Search preferred over other search algorithms?
When the list is small or unsorted, Linear Search is simple and effective.
Click to reveal answer
beginner
What happens if the target element is not found in Linear Search?
The algorithm checks all items and returns a special value (like -1) to show the target is missing.
Click to reveal answer
intermediate
How does Linear Search differ from Binary Search?
Linear Search checks items one by one without needing order; Binary Search requires a sorted list and divides the search space.
Click to reveal answer
What does Linear Search do when it finds the target element?
✗ Incorrect
Linear Search stops immediately when it finds the target and returns its position.
What is the best case time complexity of Linear Search?
✗ Incorrect
If the target is the first element, Linear Search finds it immediately in constant time O(1).
Which of these lists is Linear Search most suitable for?
✗ Incorrect
Linear Search works well on small unsorted lists because it is simple and fast enough.
If the target is not in the list, what does Linear Search return?
✗ Incorrect
Linear Search returns -1 or another special value to show the target is missing.
Which of these is NOT true about Linear Search?
✗ Incorrect
Linear Search does NOT require the list to be sorted; it works on any list.
Explain how Linear Search works step-by-step on a list of numbers.
Think about checking items one by one like looking for a name in a phone book without order.
You got /5 concepts.
Describe when and why you would use Linear Search instead of other search methods.
Consider situations where sorting or complex algorithms are too much work.
You got /4 concepts.