This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: IE170 Lab #2 Kumar Abhishek & Jeff Linderoth IE 170 – Lab #2: Data Structures Due Date: January 29, 2006. 1PM. 1 Description and Objectives In this lab, we will implement a simple version of some of the data structures, namely LinkedList and ArrayList, and use them to implement a simple sorting algorithm. This exer- cise will help us to explore the effect of data structures on the complexity of the algorithm and also understand the details involved in creating data structures from scratch. Also, we shall implement the same algorithm using Java’s own Collection classes, which implement a more sophisticated version of those data structures. Java’s Collection classes will be very useful in implementing algorithms for this course. We shall use the Eclipse IDE for developing the programs. Lab Objectives 1. Learn how to implement some useful data structures. 2. Understand the effect of data structures on an algorithm’s complexity. 3. Introduce you to Java’s Collection classes. 4. Provide an introduction to Eclipse’s debugging environment and how to use them for removing bugs from your code. 2 Debugging with Eclipse The knowledge of debugging will often be very handy in making large problems work properly. Eclipse provides us with a built-in debugging tool that can be run locally on the machine or also from a remote location. The Eclipse Debugger is a tool that you can use to analyze your program while it’s running. Information about debugging may be obtained by running a search with the debugging in the Help section of Eclipse IDE. You are also encouraged to go to the website Eclipse IDE De- bugger tutorial ( http://www.cs.wisc.edu/ ∼ cs302/resources/EclipseDebugTutorial ) for a detailed tutorial on debugging using Eclipse. You shall also be provided with a hands-on demo of debugging using Eclipse that includes changing the perspective to go to debug mode, setting and removing breakpoints, inspecting variables, stepping into, over and out of a function etc. Problem 3 Page 1 IE170 Lab #2 Kumar Abhishek & Jeff Linderoth 3 Creating a List interface. A list is defined as an ordered collection (also known as a sequence). The user of this interface has precise control over where in the list each element is inserted. The user can access elements by their integer index (position in the list), and search for elements in the list.elements by their integer index (position in the list), and search for elements in the list....
View Full Document
This note was uploaded on 08/06/2008 for the course IE 170 taught by Professor Ralphs during the Spring '07 term at Lehigh University .
- Spring '07
- Systems Engineering