Watson Data Structures Tutorial


Home
Labs
Tutorials
Known Bugs
Schedule
Archive
Members
Contact Information

Layout of the Array List Data Structure

Below is a screenshot of the Watson Data Structures Lab about array lists. As you can see, the major sections of the lab are numbered and explained below the image.


  1. Watson Control Bar - The common Watson control bar for all applications. This bar contains all the functions to select an activity and get important information about the lab.
  2. Data Set - Contains all the data or information which may be used within an activity.
  3. Array List - An array structure with a fixed maximum length.
  4. Element counter - It keeps up with how many elements are in the array.
  5. Move Button - Moves a value from one element of the array to another one.
  6. Insert Button - Inserts a value into the array from temp variable or the data set.
  7. Expand Button - Increases the size of an array.
  8. Contract Button - Decreases the size of an array.

The move and insert operations on an array list are very useful for moving items around within the array. The animated figure below demonstrates how these two functions work.

Array List 1 Activity

Below is a set of step-by-step instructions on how the example works.

  1. Click on the button labeled 'Activity'.
  2. Select the Array List 1 activity and click on the 'OK' button to begin the program.
  3. Click on the 'OK' button after viewing the activity description for the array list 1 exercise.
  4. Move the cursor over the button labeled 'Move' and click. Then move your cursor to the letter 'F' and click on it.
  5. Next, move your cursor to the empty cell above the number 6 and click in the cell.
  6. Move the cursor over the button labeled 'Move' and click. Then move your cursor to the letter 'E' and click on it.
  7. Next, move your cursor to the empty cell above the number 5 and click in the cell.
  8. Move the cursor over the button labeled 'Move' and click. Then move your cursor to the letter 'D' and click on it.
  9. Next, move your cursor to the empty cell above the number 4 and click in the cell.
  10. Move the cursor over the button labeled 'Move' and click. Then move your cursor to the letter 'C' and click on it.
  11. Next, move your cursor to the empty cell above the number 3 and click in the cell.
  12. Move the cursor over the button labeled 'Move' and click. Then move your cursor to the letter 'B' and click on it.
  13. Next, move your cursor to the empty cell above the number 2 and click in the cell.
  14. Move the cursor over the button labeled 'Insert' and click. Then move your cursor to the 'Data Set' window and click on the letter 'A' and click on it.
  15. Next, move your cursor to the empty cell above the number 1 and click in the cell.
  16. Press any key on the keyboard to answer the questionnaire at the top of the screen.
  17. Choose one of the three choices listed.

<< Back

Back to Tutorials

Next >>



Home | Labs | Tutorials | Known Bugs | Schedule | Archive | Members | Contact Information

For problems or questions regarding this site or the labs, contact the Watson Project.
Last updated: 10/22/03.