Advertisements
Advertisements
Question
What is linear search?
Short Answer
Advertisements
Solution
Linear Search is a simple search algorithm that finds a target value by checking each element of an array sequentially from start to finish until a match is found. It requires a single loop and works on both sorted and unsorted data, making it highly flexible but slower for large datasets.
shaalaa.com
Is there an error in this question or solution?
Chapter 8: Arrays - Sort & Search - Exercises [Page 197]
