What is a Linear Search and how does it work?
Finds an item unsorted and sorted lists, starts at first item in the line and checks each 1 by 1 effective for small data sets not large ones
Pseudocode for Linear Search
Found = False Index = 0 While found == False and index < items. Lenth If items[index] == item_to_find then Found = True Else Index = Index + 1 End if End While
What is Binary Search
Efficient algorithm finding item in sorted data set, starts in the middle and repeatedly divides itself in half best for large data sets