(Latest Revision: Fri Feb 1 14:17:45 PST 2002 ) Sample Runs

Sample Runs of a Recursive Selection Sort Program

What the user typed is in boldface below. What the computer typed is in an ordinary teletype font.

Script started on Fri Feb 01 14:13:37 2002
john@sol: recSort

123492

Sorting from 0 to 0.

123492

john@sol: recSort

123  84

Sorting from 0 to 1.
Sorting from 1 to 1.

84      123

john@sol: cat input01
168     335     797     288     142     941     117     884     464     448

john@sol: recSort < input01

Sorting from 0 to 9.
Sorting from 1 to 9.
Sorting from 2 to 9.
Sorting from 3 to 9.
Sorting from 4 to 9.
Sorting from 5 to 9.
Sorting from 6 to 9.
Sorting from 7 to 9.
Sorting from 8 to 9.
Sorting from 9 to 9.

117     142     168     288     335     448     464     797     884     941

john@sol: cat input02
498     491     401     285     614     958     327     346     661     325
634     523     930     683     894

john@sol: recSKort   < input02

Sorting from 0 to 14.
Sorting from 1 to 14.
Sorting from 2 to 14.
Sorting from 3 to 14.
Sorting from 4 to 14.
Sorting from 5 to 14.
Sorting from 6 to 14.
Sorting from 7 to 14.
Sorting from 8 to 14.
Sorting from 9 to 14.
Sorting from 10 to 14.
Sorting from 11 to 14.
Sorting from 12 to 14.
Sorting from 13 to 14.
Sorting from 14 to 14.

285     325     327     346     401     491     498     523     614     634
661     683     894     930     958

john@sol: exit
script done on Fri Feb 01 14:15:15 2002