Selection Algorithm - Selecting K Smallest or Largest Elements

Selecting K Smallest or Largest Elements

Another fundamental selection problem is that of selecting the k smallest or k largest elements, which is particularly useful where we want to present just the "top k" of an unsorted list, such as the top 100 corporations by gross sales. This is also commonly called partial sorting.

Read more about this topic:  Selection Algorithm

Famous quotes containing the words selecting, smallest, largest and/or elements:

    But compared with the task of selecting a piece of French pastry held by an impatient waiter a move in chess is like reaching for a salary check in its demand on the contemplative faculties.
    Robert Benchley (1889–1945)

    The universe is not rough-hewn, but perfect in its details. Nature will bear the closest inspection; she invites us to lay our eye level with the smallest leaf, and take an insect view of its plain. She has no interstices; every part is full of life.
    Henry David Thoreau (1817–1862)

    The debt was the most sacred obligation incurred during the war. It was by no means the largest in amount. We do not haggle with those who lent us money. We should not with those who gave health and blood and life. If doors are opened to fraud, contrive to close them. But don’t deny the obligation, or scold at its performance.
    Rutherford Birchard Hayes (1822–1893)

    The popularity of that baby-faced boy, who possessed not even the elements of a good actor, was a hallucination in the public mind, and a disgrace to our theatrical history.
    Thomas Campbell (1777–1844)