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)

    ... it seems to have been my luck to stumble into various forms of progress, to which I have been of the smallest possible use; yet for whose sake I have suffered the discomfort attending all action in moral improvements, without the happiness of knowing that this was clearly quite worth while.
    Elizabeth Stuart Phelps (1844–1911)

    The eager fate which carried thee
    Took the largest part of me:
    For this losing is true dying;
    This is lordly man’s down-lying,
    This his slow but sure reclining,
    Star by star his world resigning.
    Ralph Waldo Emerson (1803–1882)

    There surely is a being who presides over the universe; and who, with infinite wisdom and power, has reduced the jarring elements into just order and proportion. Let speculative reasoners dispute, how far this beneficent being extends his care, and whether he prolongs our existence beyond the grave, in order to bestow on virtue its just reward, and render it fully triumphant.
    David Hume (1711–1776)