home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!cs.utexas.edu!torn!nott!emr1!jagrant
- From: jagrant@emr1.emr.ca (John Grant)
- Subject: is it possible to find max & next smallest in one pass?
- Message-ID: <1993Jan24.040702.6193@emr1.emr.ca>
- Organization: Energy, Mines, and Resources, Ottawa
- Date: Sun, 24 Jan 1993 04:07:02 GMT
- Lines: 12
-
- Given an array of values, is it possible to find the maximum of
- the array and the next smallest value in a single pass? The reason
- I want it in one pass, is that the array is actually a data file
- of a million float values.
-
- If so, I guess the same single pass could also find the min and next
- highest value too?
-
- --
- John A. Grant jagrant@emr1.emr.ca
- Airborne Geophysics
- Geological Survey of Canada, Ottawa
-