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)

    “I never knew a writer yet who took the smallest pains with his style and was at the same time readable.”
    —Samuel Butler (1835–1902)

    “Figure him there, with his scrofulous diseases, with his great greedy heart, and unspeakable chaos of thoughts; stalking mournful as a stranger in this Earth; eagerly devouring what spiritual thing he could come at: school-languages and other merely grammatical stuff, if there were nothing better! The largest soul that was in all England.”
    —Thomas Carlyle (1795–1881)

    “A party of order or stability, and a party of progress or reform, are both necessary elements of a healthy state of political life.”
    —John Stuart Mill (1806–1873)