Jump to content

Sorting algorithms/Bogosort: Difference between revisions

m
Line 1,560:
This is a modified bogo sort.
<br><br>To verify the array is in order, a sequential search is performed.
<br>When ana number is found out of order, two random numbers between
the first number's position and the the position of the last number
checked are swapped.
2,300

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.