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)

    ...I believed passionately that Communists were a race of horned men who divided their time equally between the burning of Nancy Drew books and the devising of a plan of nuclear attack that would land the largest and most lethal bomb squarely upon the third-grade class of Thomas Jefferson School in Morristown, New Jersey.
    Fran Lebowitz (b. 1950)

    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)