Computer Science 261

Assignment # 8

Due: 

Purpose:


Part 1:  Quicksort and Shellsort:  

Add routines to VariousSorts.java to sort an integer array using Quicksort and ShellSort (including keeping track of comparisons and data moves), and modify the main routine to include tests of these two sorts in the same way that the main routine already tests bubble, insertion, and selection sorts. Make sure that you report on the number of comparisons, number of data moves, and total time in sorting.


Part 2:  Lisp-like linked lists.

Write a LispLinkObject to store a list of general objects. Include the following methods:

(Note: to be more compatable with Lisp, the operators cons and rest would return new lists and not alter the old lists, but the above is sufficient for this exercise).

Implement this in any way you like, so long as you directly manipulate linked lists (i.e., don't use the Java built-in classes for this)

I'll provide a main() method for this shortly.

Questions?  Please ask!