CS 261 Lab L - The CS Detectives and The Case of the Scrambled Sorts!

Due Wed May 08 at 9:00am

Overview

"Oh no! In developing a program to demonstrate the efficiency of different sorting algorithms, the algorithms have gotten all mixed up! I have a program that graphically displays the number of comparisons, the number of swaps, and the total runtime for all of our sorting algorithms... but some dastardly villain has erased the labels on the program's interface. I need you, CS Detectives, to figure out which button is which sorting algorithm. Will you take the case?"

This lab will be completed in pairs. Review the pair programming guidelines. Don't check in with other groups though! Try do this just as a pair.

Objectives

Necessary Files

You will need to a copy of the SortingLab.zip file. This file contains the provided program as an executable jar. You should be able to run this file by double-clicking it (once it has been extracted). Note that if you want to run the .jar from the command-line to see the terminal output, you can use the command:

java -jar Sorter.jar
You should use this technique if you have problems running the file (double-clicking wasn't always working for me on lab machines...)

Details

Submitting

Submit your written report (a Word document would be preferable) to the LabL submission folder on hedwig. Make sure you upload your work to the correct folder! The lab is due at the start of class on the day after the lab.

Remember to fill out your lab partner evaluation!

Extensions

No extensions on this one! If you're looking for other things to do, try browsing the Wikipedia list of sorting algorithms. Figuring out different algorithms can be fun!.

Alternatively, make sure you're caught up on your homework and/or use the time to work on Homework 7.

Grading

This assignment will be graded based on approximately the following criteria: