Uncommon

Bubble sort

Simple sorting algorithm using comparisons

Bubble sort

Uncommon card · No. 95768

Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the input list element by element, comparing the current element with the one after it, swapping their values if needed. These passes through the list are repeated until no swaps have to be performed during a pass, meaning that the list has become fully sorted. The algorithm, which is a comparison sort, is named for the way the larger elements "bubble" up to the top of the list. It performs poorly in real-world use and is used primarily as an educational tool. More efficient algorithms such as quicksort, timsort, or merge sort are used by the sorting libraries built into popular programming languages such as Python and Java.

Read on Wikipedia · Image Pmdumuid, CC0

Open boosters, collect cards and trade them. Free to play.

Play for free
Bubble sort – Uncommon Wikipedia card | Wikiverse TCG