Absorptionsort
Absorptionsort, or absorption sort, is a simple, conceptual sorting algorithm described in some informal texts as a method that builds the sorted sequence by repeatedly absorbing elements from an unsorted pool into a growing output. The metaphor reflects the idea of taking in one item at a time to extend the sorted region.
In a typical description, the algorithm starts with all items in an unsorted region and an empty
Time complexity for a straightforward in-place variant is commonly O(n^2) in the average and worst cases, since
Absorptionsort is primarily of interest as a teaching or theoretical example rather than a practical sorting
See also: sorting algorithms, selection sort, insertion sort, bubble sort.