Sorting algorithms/Bubble sort: Difference between revisions

Content added Content deleted
(Add BBC Basic and Cobol versions of bubble sort)
(Correct case)
Line 202: Line 202:
LOOP WHILE(NOT changed)</lang>
LOOP WHILE(NOT changed)</lang>


=={{header|BBC Basic}}==
=={{header|BBC BASIC}}==
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.
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%)
<lang bbcbasic>DEF PROC_BubbleSort(Size%)