Lecture and Lab 6
Today
- Exercises with arrays. Must do: 17, 18, 19. Afternoon: move on to 20 - 23. At least 20 must be started in class, to give you
a chance to ask questions.
- Discussion of Hw2.
- Some small Quizes
- Main Topic: Sorting algorithms. Today: Selection Sort
2 Minute Quiz
Quiz 3
Selection Sort
In-class design of Selection Sort, using FindMax and Swap functions.
Check the Selection Sort applet, which illustrates the step-by-step
execution of the algorithm.
Next week:
User-defined Objects and Classes in Java