Mr Gregson's Linear Search Visualiser

Watch how linear search checks each element one by one to find the target value

Ready to Search
Position: -
Comparisons: 0
Searching for:
?
1. Start at the first element (index 0)
2. Compare current element with target
3. If match found, return the index
4. If no match, move to next element
5. Repeat until found or end of array
Enter a target value and click "SEARCH STEP" to begin the linear search