CS2851 -- Lab 2: Benchmarking

Winter 2005-2006
Outcomes Addressed
Procedure

You are to explore the impact of selecting various data structures on the exectution time of various operations. You will need to write very little code. Instead, the focus of this assignment is on the analysis of the benchmarking results.

Containers

You should compare the following containers: ArrayList<Integer>, SortedArrayList<Integer> (found here), and LinkedList<Integer>. All of these containers implement the List<Integer> interface.

Operations

You should compare the time it takes to complete the following operations on each container type:

Size of N

You should run all of the tests for a number of values of N. The size of N and the number of specific values of N that you choose to test should be selected so that you are able to accurately predict the growth rate of the operations under examination.

Benchmarker class

A Benchmarker class has been provided to help expedite your analysis. The class includes the follow methods:

Lab report (due 11:00pm, Wednesday, December 21, 2005)

Here is a template file to use as a starting point for this report.

Your report should include:

As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the XML help video and/or sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost.

If you have any questions, consult your instructor.

Acknowledgment

This assignment was originally developed by Dr. Chris Taylor.

Last Updated: Friday, 16-Dec-2005 08:05:42 CST