Types of Searches and Sorts Flashcards
Linear Search
Linear Search is checking each element of the list one by one until you find the element you are looking for
Binary Search
Binary Search is an efficient algorithm that works by repeatedly dividing in half the portion of the list that could contain the item, until you’ve narrowed down the possible locations to just one.
Bubble Sort
Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order.
Merge Sort
Merge Sort is a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves.
Insertion Sort
Insertion sort is a simple sorting algorithm that works the way we sort playing cards in our hands.