# Chapter 45 merge sort def mergeSort(alist): if len(alist)>1: # print("Splitting ",alist) mid = len(alist)//2 # performs integer division lefthalf = alist[:mid] # left half of alist put into lefthalf print ("left half ",lefthalf) righthalf = alist[mid:] # right half of alist put into righthalf print ("right half ",righthalf) mergeSort(lefthalf) mergeSort(righthalf) i=0 j=0 k=0 while i