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:

    A man is a method, a progressive arrangement; a selecting principle, gathering his like to him; wherever he goes.
    Ralph Waldo Emerson (1803–1882)

    The government is huge, stupid, greedy and makes nosy, officious and dangerous intrusions into the smallest corners of life—this much we can stand. But the real problem is that government is boring. We could cure or mitigate the other ills Washington visits on us if we could only bring ourselves to pay attention to Washington itself. But we cannot.
    —P.J. (Patrick Jake)

    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)

    The poem has a social effect of some kind whether or not the poet wills it to have. It has kinetic force, it sets in motion ... [ellipsis in source] elements in the reader that would otherwise be stagnant.
    Denise Levertov (b. 1923)