CS 178 Programming with Multimedia Objects

Array Example: Se lection Sort

For use during Lecture on October 1 7 , 2004

What will you learn (in addition to what you already know about applets):

  • How to perform selection sort and a few array operations (exchange, find ning minimum):
    • Array initialization
    • Finding the min and max amongst all elements in an array.
    • Adding elements to an array.
    • Sorting in acsending and descending order using bubble sort and selection sort.

Array: Sorting (Source).

Prepared by: Aditya Mathur, Oct 17, 2004