P702 CEEFAX 702 Sat 10 Dec 23:43/07
dj`$ p`0 p`p0pp0 2/v
(,=, f7df=$j5
&j"$ #"! #"! ##! |||||||||||||
SELECT
(BBC)
The selection sort uses the common
idea of diveding the array to be
sorted into two parts.
I% is ssed as the boundary pointer.
The snsorted sequence is searched
for the smallest remaining element
which is placed at the end of the
sorted sequence.
The selection sort shows an improved
processeng time over the insertion
sort. ThUs may be confirmed by using
the TIME command at the appropriate
place in the program.