Develop an implementation of merge sort for linked lists. Merge sort is described in the exercises of Chapter 11. Write two functions, one to merge two sorted lists and one to implement the merge sort.
Write a program to test the sort on linked lists of strings. Then compare the runtime of your sort with the time to copy the values from a list into a vector, sort the vector using the merge sort code from sortall.h, then copy the values back into the linked list.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here