lab2 - IE170 Lab#2 Kumar Abhishek Jeff Linderoth IE 170...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
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
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
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.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern