Anonymous user
Sorting algorithms/Bubble sort: Difference between revisions
m
→version 3, random integers, horizontal list, with interim plots: added comments to the REXX section header concerning the annotation to the plot progress (snapshots).
m (→{{header|REXX}}: aligned comments, optimized bSort subroutine.) |
m (→version 3, random integers, horizontal list, with interim plots: added comments to the REXX section header concerning the annotation to the plot progress (snapshots).) |
||
Line 3,998:
Note that the command to clear the terminal screen is hard-coded as: '''CLS'''
Also note that only four snapshots of the sort-in-progress is shown here, the REXX program will show a snapshot of ''every''
<br>sorting pass; the ''at (about) nnn% sorted'' was added after-the-fact.
<lang rexx>/*REXX program sorts an array (of any kind of numbers) using the bubble─sort algorithm.*/
parse arg N seed . /*obtain optional size of array from CL*/
|