3 ms·
I think bubble sort is used in beginner CS classes because it's easy to understand the operation and the complexity. It makes a good prologue before moving on t
by mordechai9000 7y ago
I think bubble sort is used in beginner CS classes because it's easy to understand the operation and the complexity. It makes a good prologue before moving on to more efficient sorting algorithms.
I only remember it because a machine language book for the Motorola 6809 used it as an introductory program.