The document describes Shellsort, a sorting algorithm developed by Donald Shell in 1959. It is an improvement on insertion sort. Shellsort works by sorting elements first with large gaps between elements, then reducing the gaps and sorting again until the final gap is 1, completing the sort. It takes advantage of insertion sort being most efficient on nearly sorted lists. The time complexity is O(n^r) for 1 < r < 2, better than O(n^2) of insertion sort but generally worse than O(n log n) of quicker algorithms.