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:

    Surely knowledge of the natural world, knowledge of the human condition, knowledge of the nature and dynamics of society, knowledge of the past so that one may use it in experiencing the present and aspiring to the future—all of these, it would seem reasonable to suppose, are essential to an educated man. To these must be added another—knowledge of the products of our artistic heritage that mark the history of our esthetic wonder and delight.
    Jerome S. Bruner (20th century)

    Traditionally in American society, men have been trained for both competition and teamwork through sports, while women have been reared to merge their welfare with that of the family, with fewer opportunities for either independence or other team identifications, and fewer challenges to direct competition. In effect, women have been circumscribed within that unit where the benefit of one is most easily believed to be the benefit of all.
    Mary Catherine Bateson (b. 1939)

    Who will join in the march to the Rocky Mountains with me, a sort of high-pressure-double-cylinder-go-it-ahead-forty-wildcats- tearin’ sort of a feller?... Git out of this warming-pan, ye holly-hocks, and go out to the West where you may be seen.
    —Administration in the State of Miss, U.S. public relief program (1935-1943)