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-24 10:55:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!ix.netcom.com!nobody From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Beginer problem: variable array size Date: Mon, 23 Sep 2002 19:33:09 -0700 Organization: >> Leaf-Eating Penguins? << Message-ID: <5tioma.nae.ln@ix.netcom.com> References: NNTP-Posting-Host: a5.f7.d1.57 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Server-Date: 24 Sep 2002 17:55:48 GMT User-Agent: KNode/0.6.1 Xref: archiver1.google.com comp.lang.ada:29314 Date: 2002-09-24T17:55:48+00:00 List-Id: tmoran@acm.org fed this fish to the penguins on Monday 23 September 2002 04:09 pm: >> 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. That's even more a case for continuous streaming of measurements... As long as the transmitter is active the ground station is getting measurements. No loss of any up to the moment the transmitter fails. If the largest value came early in the stream, no problem... If it was the last value before meltdown you'd still get it... -- -- > ============================================================== < > wlfraed@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG < > wulfraed@dm.net | Bestiaria Support Staff < > ============================================================== < > Bestiaria Home Page: http://www.beastie.dm.net/ < > Home Page: http://www.dm.net/~wulfraed/ <