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:
“The persons who constitute the natural aristocracy, are not found in the actual aristocracy, or, only on its edge; as the chemical energy of the spectrum is found to be greatest just outside of the spectrum.”
—Ralph Waldo Emerson (18031882)
“We dont know when our name came into being or how some distant ancestor acquired it. We dont understand our name at all, we dont know its history and yet we bear it with exalted fidelity, we merge with it, we like it, we are ridiculously proud of it as if we had thought it up ourselves in a moment of brilliant inspiration.”
—Milan Kundera (b. 1929)
“If the heart has its reasons, perhaps the body
Has its own lumbering sort of carnal spirit,
Felt in the tingling bruises of collision,
And known to captains as esprit de corps.”
—Anthony Hecht (b. 1923)