Natural Merge Sort
A natural merge sort is similar to a bottom up merge sort except that any naturally occurring runs (sorted sequences) in the input are exploited. In the bottom up merge sort, the starting point assumes each run is one item long. In practice, random input data will have many short runs that just happen to be sorted. In the typical case, the natural merge sort may not need as many passes because there are fewer runs to merge. For example, in the best case, the input is already sorted (i.e., is one run), so the natural merge sort need only make one pass through the data.
Read more about this topic: Merge Sort
Famous quotes containing the words natural, merge and/or sort:
“Self-esteem creates natural highs. Knowing that youre lovable helps you to love more. Knowing that youre important helps you to make a difference to to others. Knowing that you are capable empowers you to create more. Knowing that youre valuable and that you have a special place in the universe is a serene spiritual joy in itself.”
—Louise Hart (20th century)
“I too but signify at the utmost a little washd-up drift,
A few sands and dead leaves to gather,
Gather, and merge myself as part of the sands and drift.”
—Walt Whitman (18191892)
“Martyrs have harmed the truth.... Even today it only takes the crudest sort of persecution to give an otherwise inherently indifferent sectarianism an honorable name.”
—Friedrich Nietzsche (18441900)