From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,71c743c03ed191fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-23 16:13:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!sn-xit-03!sn-xit-01!sn-xit-04!sn-xit-08!supernews.com!12.120.28.37.MISMATCH!attla2!ip.att.net!attbi_feed3!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Beginer problem: variable array size References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc52.ops.asp.att.net 1032822558 12.234.13.56 (Mon, 23 Sep 2002 23:09:18 GMT) NNTP-Posting-Date: Mon, 23 Sep 2002 23:09:18 GMT Organization: AT&T Broadband Date: Mon, 23 Sep 2002 23:09:18 GMT Xref: archiver1.google.com comp.lang.ada:29295 Date: 2002-09-23T23:09:18+00:00 List-Id: > Given your description as the requirements I'd have to argue at a > design review that it would be more efficient to have the probe NOT > sort the measurements, instead ... This being an imaginary homework assignment, and thus two steps away from reality, let me suppose you really don't know exactly when the system will meltdown, so there is a strong possibility not all data can be sent. Further suppose it's most important to find out the largest values measured, and the distribution, so if any data is to be lost, it should be the small values. A radix sort/histogram would do the job nicely.