csnotes/370/notes/2.md
Medium Fries ea2aa8d2a6 yote
2019-03-15 01:26:26 -07:00

14 lines
348 B
Markdown

# Divide and Conquer
Make big problem into smaller problems to solve
## Merge Sort
_yote_
1. find midpoint of list
2. split into two smaller lists
3. keep splitting smaller lists until we have a bunch of 1/2 size lists
4. sort each using the _smaller_ already sorted values against each other into a new sub-list
5. combine and sort each thing