Stable sorts | Comparison sorts | Sorting algorithms

Timsort

Timsort is a hybrid, stable sorting algorithm, derived from merge sort and insertion sort, designed to perform well on many kinds of real-world data. It was implemented by Tim Peters in 2002 for use in the Python programming language. The algorithm finds subsequences of the data that are already ordered (runs) and uses them to sort the remainder more efficiently. This is done by merging runs until certain criteria are fulfilled. Timsort has been Python's standard sorting algorithm since version 2.3. It is also used to sort arrays of non-primitive type in Java SE 7, on the Android platform, in GNU Octave, on V8, Swift, and Rust. It uses techniques from Peter McIlroy's 1993 paper "Optimistic Sorting and Information Theoretic Complexity". (Wikipedia).

Timsort
Video thumbnail

The Mandelbrot set is a churning machine

Its job is to fling off the red pixels and hang onto the green ones. Audio by @Dorfmandesign

From playlist mandelstir

Video thumbnail

AWESOME antigravity electromagnetic levitator (explaining simply)

Physics levitron (science experiments)

From playlist ELECTROMAGNETISM

Video thumbnail

Python Programming 13. Sorting a List

This is the 13th in a course of computer science video lessons introducing programming with Python. This lesson follows on from the previous two lessons which introduced Python lists and how to iterate through a list using a loop. In this lesson you will learn how to sort a Python list.

From playlist Python Programming Step by Step

Related pages

Adaptive sort | Hybrid algorithm | Formal verification | Exponential search | Binary search algorithm | Merge sort | Sorting algorithm | KeY | GNU Octave | Insertion sort | Best, worst and average case | Timsort | Linear search