Merge Sort - Natural Merge Sort

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:

    My darling girl, Unfortunately this earth is not ... a fairy- land, but a struggle for life, perfectly natural and therefore extremely harsh. All the same, or precisely for this reason, it is happiness and comfort for us men to have a precious sweetheart—and I have the most precious, the dearest and best of all!
    Martin Bormann (1900–1945)

    We don’t know when our name came into being or how some distant ancestor acquired it. We don’t understand our name at all, we don’t 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)

    And since the average lifetime—the relative longevity—is far greater for memories of poetic sensations than for those of heartbreaks, since the very long time that the grief I felt then because of Gilbert, it has been outlived by the pleasure I feel, whenever I wish to read, as in a sort of sundial, the minutes between twelve fifteen and one o’clock, in the month of May, upon remembering myself chatting ... with Madame Swann under the reflection of a cradle of wisteria.
    Marcel Proust (1871–1922)