Linear Search- This searches a list of numbers to find out which position a certain number is in the list. It searches every number in the list until the number indicated is found. After this is achieved the loop finishes and the number’s position is displayed.
Example- if current-number = search-number then
position = current-item position
Count Occurrences- This standard algorithm searches a list of numbers one by one and counts how many times said number appears then outputs the result. It uses a counter and every time the given number is found 1 is added to the counter.
Example- if current_number = occurrences_number then
counter = counter + 1





