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 (18031882)
“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 (18171862)
“Because it is in the nature of things that they become extreme, we have passed down from manliness to cruelty. If I had been told when I was 20 that there was a tavern in the town where the brave and the cruel were gathered together, I would have run all the way and I would have gone up to the largest and leatheriest of the denizens and said: If you truly love me, kill the bartender.”
—Quentin Crisp (b. 1908)
“In verse one can take any damn constant one likes, one can alliterate, or assone, or rhyme, or quant, or smack, only one MUST leave the other elements irregular.”
—Ezra Pound (18851972)