DEV Community

Discussion on: Another Post on Bubble Sort

Collapse
 
pentacular profile image
pentacular

Bubble Sort is an interesting case, with some useful properties.

It can be applied incrementally, using atomic operations, and be aborted at any point, leaving the data not less ordered.

Which means it's useful for things that benefit from, but do not require, ordering, and where the time available for sorting is uncontrollabe.

Like when operating within a vertical trace interrupt, when those were a thing.

This makes it an interesting contrast to quicksort & bubble sort, radix sort, and the insertion sort families.

It's well worth studying.

Collapse
 
henrycook profile image
Henry Cook

Very interesting, thank you!