Flowchart INDEX,
Help
This illustrates the selection sort.
A function finds the position of the smallest from 0 to 5.
The
number in small is swapped with the number in position 0.
On the next pass it finds the smallest from 1 to 5 and that is swapped into position
1, etc.
Notice that swap is called using pass by reference.
Click next to step through the algorithm one step at a
time.