highest is a program that finds the highest numbers in a sequence of lines containing numbers.


  • Usage:
  • A comparison of some different methods of finding the largest files; n is the number of files checked, and m is the number of files desired in the report. Typically, n will be quite a bit larger than m.

    Here is a pair of graphs (in PDF format) describing how the various datastructures perform. As a quick reminder, we're looking at n numbers, and keeping the m best values (lines):

  • Portions of this software are owned by The University of California, Irvine - and are not under any version of the GPL. GPL is a fine series of licenses, but the partial owners of the software need it to be distributed under these terms.
  • See also recent, which is more a more practical way of doing this for recent files.

    Hits: 11328
    Timestamp: 2024-04-20 13:47:43 PDT

    Back to Dan's tech tidbits

    You can e-mail the author with questions or comments: