Describe purpose of truth table
To show all possible inputs and appropiate outputs
Describe steps of binary search
-Split through midpoint of number see if number match
-if not check number which is larger or smaller
-discard the side with the wrong number sizes
- repeat until match found
How to improve maintainabmoty
Add comments, sensible variable name, add indentations, use decomposition, debugging
Difference between insertion and merge sort
Insertion starys woth smallest value as first index value whereas merge sort places the smallest pairs of items in the smallest indexes