The linear search algorithm inspects each element in an array for a key. In the worst case,
the algorithm can check all elements in a list. The time complexity:
O(N)
Loading bar chart…
linear Search Bar Chart showing 15 bars for value.
Values: index 0: 80.0, index 1: 92.0, index 2: 82.0, index 3: 3.0, index 4: 81.0, index 5: 42.0, index 6: 84.0, index 7: 37.0, index 8: 48.0, index 9: 75.0, index 10: 24.0, index 11: 35.0, index 12: 45.0, index 13: 22.0, and index 14: 72.0.