See the assignment turn-in page (last modified on 23 February 2010) for instructions on turning in your assignment.
The absolute deadline for turning-in Assignment 2 is Friday, 26 March at 11:30 p.m.. It is not possible to turn-in Assignment 2 after the absolute deadline.
[ 1, 1, 2, 3, 3, 3 ]
is three sorted, while the array
[ 3, 1, 2, 3, 3, 1 ]
is not.
/export/home/class/cs-305-503/pa2/ThreeSorters.java
The methods should be part of a class called ThreeSorting
.
ThreeSorting
may contain other methods, although other methods will be
ignored by the assignment code, and you may define any other classes you think
necessary.
Any code you write for three-sorting should be your own; you should not rely on any Java library algorithms to implement the three-sorters.
You can test your code by running the jar file
/export/home/class/cs-305-503/pa2/pa2.jarusing the command
$ java -classpath /export/home/class/cs-305-503/pa2/pa2.jar:. main options
If no output results, then everything worked; otherwise error messages are
written to std-err. options
may be one or more of the
following:
-p
: plot the timing data; the default is to do no plotting.
-v
: run verbosely; the default is to
print nothing except error messages while running.
$ java -classpath /export/home/class/cs-305-503/pa2/pa2.jar:. main -v -p
prints informative messages and, assuming no errors occurred, plots the timing data:
This page last modified on 14 March 2010. |