The FASTEST sorting algorithm: Part 3 - Merging runs efficiently
This video from the Tim Sort series focuses on making the intermediate merge operations efficient. The Tim Sort algorithm performance is heavily dependent on merging sorted arrays efficiently. A merge operation uses auxiliary memory equal to the size of the smaller chunk/run. This is an improvement over the standard Merge Sort approach which constructs the sorted array outside the other two arrays being merged. Another optimisation in the algorithm is using a program stack instead of the system stack. This avoids recursive calls and allows us to choose which two runs to merge. The final improvement is to optimise the sizes of the merging arrays. This is done by using invariants in the stack, making the stack sorted in ascending order of lengths downwards. The final video will be on using some artificial intelligence to merge runs even more efficiently! References: Java: http://cr.openjdk.java.net/~martin/we... Article: https://bugs.python.org/file4451/tims... Social links: Facebook: / gkcs0 Quora: https://www.quora.com/profile/Gaurav-... LinkedIn: / gaurav-sen-56b6a941

The FASTEST sorting algorithm: Part 4. Merging runs optimally

The FASTEST sorting algorithm: Part 1 - TimSort

The FASTEST sorting algorithm: Part 2 - Binary Insertion Sort

The Strange Math That Predicts (Almost) Anything

What is Timsort and why it's so popular?

Timsort: A Deep Dive Into the Fastest Sorting Algorithm 😀

What are Bloom Filters? - Hashing

Data Consistency and Tradeoffs in Distributed Systems

What are Distributed CACHES and how do they manage DATA CONSISTENCY?

Sorting Algos Cheat Sheet! Comparison of Properties-Bubble, Selection, Insertion, Merge, Quick, Heap

Trump Threatens to Kill the Men He's Negotiating With

Conan O’Brien Delivers the Commencement Address | Harvard Commencement 2026

Something is jamming GPS over Europe. Here's what we found

FASTEST sorting algorithm. Ever! O(N)

Belgien – Iran Highlights | Gruppe G, FIFA WM 2026 | sportstudio

Merge Sort | For Beginners | Java Placement Course

This Paradox Splits Smart People 50/50

How Much Money my Indie Game Made (After 1 month)

Merge sort in 3 minutes

