pros+cons of bubble sort
-efficient for small datasets
-easy to implement
~inefficient on large sets
pros+cons of insertion sort
-efficient on sorted sets
-easy to implement
~inefficient on randomly arranged datasets
pros+cons of merge
-efficient
~complex to implement
pros+cons of linear
-easy to implement
~inefficient
~slow
pros+cons of binary
-efficient
~needs to be ordered
how to perform a binary search
-order list
-add positions starting from 0
-find midpoint (highest-lowest)
-if target found, end and state this
-if lower than target, <= mid discarded
-if higher than target >= mid discarded
-explain the above steps
-repeat until found
how to perform linear search
-add positions from 0
-compare to target and state if found end program and state
-if not found increment position by 1
-repeat until found
insertion sort
-2 lists
-1 unordered, 1 ordered
merge sort
-divided 8,4,2,1
-2 ordered
-4 ordered
-8 ordered
bubble sort
-compares the adjacent values