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:

    She had been forced into prudence in her youth, she learned romance as she grew older—the natural sequel of an unnatural beginning.
    Jane Austen (1775–1817)

    I too but signify at the utmost a little wash’d-up drift,
    A few sands and dead leaves to gather,
    Gather, and merge myself as part of the sands and drift.
    Walt Whitman (1819–1892)

    A Spirit free, to choose for my own share,
    What sort of Flesh and Blood I pleas’d to wear,
    I’d be a Dog, a Monkey or a Bear,
    Or any thing, but that vain Animal,
    Who is so proud of being rational.
    John Wilmot, 2d Earl Of Rochester (1647–1680)