Metraipolis › archive › dc_5f1b91098a03

Bubble sort — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Bubble_sort
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-07T13:03:55.643Z
SHA-256 of the archived text
9e6fd4a83ce1cf306dcde003c476ba517b6062a6c818f02380ff0ee18ad6d7b6
Stable URL of this page
https://metraipolis.com/documento/dc_5f1b91098a03

How to cite

Bubble sort — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Bubble_sort (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_5f1b91098a03 (Metraipolis archive dc_5f1b91098a03, sha256 9e6fd4a83ce1cf306dcde003c476ba517b6062a6c818f02380ff0ee18ad6d7b6)
BibTeX
@misc{dc5f1b91098a03,
  title = {Bubble sort — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Bubble_sort},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_5f1b91098a03; sha256 9e6fd4a83ce1cf306dcde003c476ba517b6062a6c818f02380ff0ee18ad6d7b6},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Bubble_sort. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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.

Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «algorithm»).
Fonte: Wikipedia in inglese, voce «Bubble sort» — https://en.wikipedia.org/wiki/Bubble_sort
Wikidata Q60864 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q60864
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Bubble_sort?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1378651729, consultata il 2026-10-07T12:34:33.986Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: f6562ff2de9ce5fee6633a7d7b8ae9031939049f788133443a35e221a6b4297d