home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / programm / 3559 < prev    next >
Encoding:
Text File  |  1993-01-24  |  748 b   |  22 lines

  1. Newsgroups: comp.programming
  2. Path: sparky!uunet!cs.utexas.edu!torn!nott!emr1!jagrant
  3. From: jagrant@emr1.emr.ca (John Grant)
  4. Subject: is it possible to find max & next smallest in one pass?
  5. Message-ID: <1993Jan24.040702.6193@emr1.emr.ca>
  6. Organization: Energy, Mines, and Resources, Ottawa
  7. Date: Sun, 24 Jan 1993 04:07:02 GMT
  8. Lines: 12
  9.  
  10. Given an array of values, is it possible to find the maximum of
  11. the array and the next smallest value in a single pass?  The reason
  12. I want it in one pass, is that the array is actually a data file
  13. of a million float values.
  14.  
  15. If so, I guess the same single pass could also find the min and next
  16. highest value too?
  17.  
  18. -- 
  19. John A. Grant                        jagrant@emr1.emr.ca
  20. Airborne Geophysics
  21. Geological Survey of Canada, Ottawa
  22.