$ cd
$ cd cs21/inclass
$ pwd
/home/your_user_name/cs21/inclass
$ mkdir w10-recursion
$ cd w10-recursion
$ pwd
/home/your_user_name/cs21/class/w10-recursion
$ cp ~adanner/public/cs21/w10-recursion/* .
$ ls
mergesort.py recursion.py
We are going to look at the mergeSort code together. Once we understand how the recursive calls work, you are going to come up with an algorithm for merging two sorted lists of size n into a sorted list of size 2n. Your merging algorithm should be iterative (not recursive). Once you have an algorithm, try coding it up in the merge function.