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 government is huge, stupid, greedy and makes nosy, officious and dangerous intrusions into the smallest corners of lifethis 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 debt was the most sacred obligation incurred during the war. It was by no means the largest in amount. We do not haggle with those who lent us money. We should not with those who gave health and blood and life. If doors are opened to fraud, contrive to close them. But dont deny the obligation, or scold at its performance.”
—Rutherford Birchard Hayes (18221893)
“An illustrious individual remarks that Mrs. [Elizabeth Cady] Stanton is the salt, Anna Dickinson the pepper, and Miss [Susan B.] Anthony the vinegar of the Female Suffrage movement. The very elements get the white male into a nice pickle.”
—Anonymous, U.S. womens magazine contributor. The Revolution (August 19, 1869)