Functions: Unsorted List: 1 Pass: 2 Pass
Functions: Unsorted List: 1 Pass: 2 Pass
Functions
The least element in the unsorted list selects to put on its position
until all elements are on its ordered position.
EXAMPLE:
UNSORTED LIST:
64 32 10 25 44
1ST PASS:
10 32 64 25 44
2ND PASS:
10 25 64 32 44
3RD PASS:
10 25 32 64 44
4TH PASS:
10 25 32 44 64
SORTED LIST:
10 25 32 44 64