Anonymous user
Sorting algorithms/Bubble sort: Difference between revisions
Correct case
(Add BBC Basic and Cobol versions of bubble sort) |
(Correct case) |
||
Line 202:
LOOP WHILE(NOT changed)</lang>
=={{header|BBC
The Bubble sort is very inefficient for 99% of cases. This subroutine uses a couple of 'tricks' to try and mitigate the inefficiency to a limited extent.
<lang bbcbasic>DEF PROC_BubbleSort(Size%)
|