encyclopegia.org

Adaptive sort

A sorting algorithm falls into the adaptive sort family if it takes advantage of existing order in its input. It benefits from the presortedness in the input sequence – or a limited amount of disorder for various definitions of measures of disorder – and sorts faster. Adaptive sorting is usually performed by modifying existing sorting algorithms.

A sorting algorithm falls into the adaptive sort family if it takes advantage of existing order in its input. It benefits from the presortedness in the input sequence – or a limited amount of disorder for various definitions of measures of disorder – and sorts faster. Adaptive sorting is usually performed by modifying existing sorting algorithms. for j = 1 to length(X) - 1 do t ← X[j] i ← j while i > 0 and X[i - 1] > t do X[i] ← X[i - 1] i ← i - 1 end X[i] ← t end The performance of this algorithm can be described in terms of the number of inversions in the input, and then will be roughly equal to , where is the number of inversions. Using this measure of presortedness – being relative to the number of inversions – insertion sort takes less time to sort the closer the array of data is to being sorted. Other examples of adaptive sorting algorithms are adaptive heap sort, adaptive merge sort, patience sort, Shellsort, smoothsort, splaysort, Timsort, and Cartesian tree sorting.

References

  1. Heapsort - Adapted for Presorted Files · retrieved 2026-11-17 · rev 1376833342
    Cite this reference

    MLA "Heapsort - Adapted for Presorted Files." Levcopoulos, Christos; Petersson, Ola (1989). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Heapsort - Adapted for Presorted Files." Levcopoulos, Christos; Petersson, Ola (1989). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Levcopoulos, Christos; Petersson, Ola (1989). (2026). Heapsort - Adapted for Presorted Files. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  2. Chandramouli, Badrish; Goldstein, Jonathan (2014). Patience is a Virtue: Revisiting Merge and Sort on Modern Processors (PDF) . SIGMOD/PODS. Wikipedia revision 1376833342, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1376833342
    Cite this reference

    MLA "Chandramouli, Badrish; Goldstein, Jonathan (2014). Patience is a Virtue: Revisiting Merge and Sort on Modern Processors (PDF) . SIGMOD/PODS. Wikipedia revision 1376833342, retrieved 2026-11-18." Chandramouli, Badrish; Goldstein, Jonathan (2014). 2026-11-17. https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/patsort-sigmod14.pdf. Accessed 24 November 2026.

    Chicago "Chandramouli, Badrish; Goldstein, Jonathan (2014). Patience is a Virtue: Revisiting Merge and Sort on Modern Processors (PDF) . SIGMOD/PODS. Wikipedia revision 1376833342, retrieved 2026-11-18." Chandramouli, Badrish; Goldstein, Jonathan (2014). 2026-11-17. https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/patsort-sigmod14.pdf.

    APA Chandramouli, Badrish; Goldstein, Jonathan (2014). (2026). Chandramouli, Badrish; Goldstein, Jonathan (2014). Patience is a Virtue: Revisiting Merge and Sort on Modern Processors (PDF) . SIGMOD/PODS. Wikipedia revision 1376833342, retrieved 2026-11-18. Retrieved November 24, 2026, from https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/patsort-sigmod14.pdf

  3. A survey of adaptive sorting algorithms · retrieved 2026-11-17 · rev 1376833342
    Cite this reference

    MLA "A survey of adaptive sorting algorithms." Estivill-Castro, Vladmir; Wood, Derick (December 1992). 2026-11-17. https://en.wikipedia.org/wiki/Derick_Wood. Accessed 24 November 2026.

    Chicago "A survey of adaptive sorting algorithms." Estivill-Castro, Vladmir; Wood, Derick (December 1992). 2026-11-17. https://en.wikipedia.org/wiki/Derick_Wood.

    APA Estivill-Castro, Vladmir; Wood, Derick (December 1992). (2026). A survey of adaptive sorting algorithms. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Derick_Wood

Cite this article

MLA

"Adaptive sort." encyclopegia.org, 2026, https://encyclopegia.org/wiki/adaptive-sort. Accessed 24 November 2026.

Chicago

"Adaptive sort." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/adaptive-sort.

APA

encyclopegia.org. (2026). Adaptive sort. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/adaptive-sort

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Adaptive Multi-Rate Wideband

stub · references available

Adaptive Selling

stub · references available

adaptive system

stub · references available

Multivariate adaptive regression splines

stub · references available

Adaptive Design Association

stub · references available

Adaptive beamformer

stub · references available

adaptive heap sort

stub · references available

Adaptive participatory integrated approach

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1376833342 · 0.5 · snapshot enwiki-001376833342

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.