Timsort
A stable, adaptive hybrid sorting algorithm that combines merge sort and insertion sort, optimized for real-world partially ordered data. Its worst-case time complexity is O(n log n), and it approaches O(n) on partially ordered input. It is widely used in Python, Java, Android, and the V8 engine.
Timeline (last 90 days)
Timsort was designed by Tim Peters for Python in 2002.
Timsort is a stable adaptive hybrid sorting algorithm that combines characteristics of merge sort and insertion sort.
Since Python 2.3, Timsort has been the default implementation of list.sort() and sorted().
Timsort has been widely adopted by Java (since Java 7 for object array sorting), the Android platform, and the V8 engine, among others.
All Facts (4)
Timsort was designed by Tim Peters for Python in 2002.
50%UnverifiedTimsort is a stable adaptive hybrid sorting algorithm that combines characteristics of merge sort and insertion sort.
50%UnverifiedSince Python 2.3, Timsort has been the default implementation of list.sort() and sorted().
50%UnverifiedTimsort has been widely adopted by Java (since Java 7 for object array sorting), the Android platform, and the V8 engine, among others.
50%