ELI5: Explain Like I'm 5

Lander–Green algorithm

Imagine you have a lot of numbers that you want to put in order, from smallest to biggest. Now, you could just look at each number one at a time and figure out where it belongs in the list. But that could take a long time if you have a lot of numbers.

The Lander-Green algorithm is a way to put those numbers in order quickly. It works like this: first, you split the numbers into two groups. Then you put each group in order by itself, but you don't worry about putting the two groups together yet.

Once you have each group in order, you compare the first number in each group. Whichever number is smaller, you put it in the final list first. Then you compare the second number in each group, and whichever is smaller, you put it in the list next. You keep doing this until you've put all the numbers in order.

This way of sorting is called a "divide and conquer" method because you break the problem up into smaller parts and solve each part before putting it all back together. The Lander-Green algorithm is especially good for large sets of numbers because it's very efficient and doesn't take too long to complete.