Algorithm
Linear Search Algorithm:
- Start with an unsorted or sorted array and a target element to search for.
- Traverse the array from the first element to the last element:
- Compare the current element with the target element.
- If they match, return the index of the current element.
- If the target element is not found after traversing the entire array, return "Not Found."
Example:

Fig. 1: Step-by-Step Process of Linear Search
Note: Linear Search is simple but may not be efficient for large arrays.