Introsort
Introsort is a hybrid, comparison-based sorting algorithm that combines quicksort, heapsort, and insertion sort to achieve fast average performance with a guaranteed worst-case running time. It was introduced by David Musser in 1997 as part of the design of the C++ standard library's sorting routines.
The algorithm starts by performing quicksort partitioning on the input array. It tracks the recursion depth
Introsort is not a stable sort. Its in-place, recursive approach has a space complexity of O(log n)
In modern standard libraries, introsort is used for the primary sort routine, notably in the C++ standard