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-Thread: 103376,bc4137777a63bff X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Help needed for ada package References: <1122305318.728942.304120@f14g2000cwb.googlegroups.com> <2OudnZo-iL1aN3jfRVn-iQ@comcast.com> <1122475184.849564.159870@g44g2000cwa.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <%4WFe.9489$dU3.2220@newsread2.news.pas.earthlink.net> Date: Thu, 28 Jul 2005 00:58:35 GMT NNTP-Posting-Host: 4.240.69.156 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1122512315 4.240.69.156 (Wed, 27 Jul 2005 17:58:35 PDT) NNTP-Posting-Date: Wed, 27 Jul 2005 17:58:35 PDT Xref: g2news1.google.com comp.lang.ada:3811 Date: 2005-07-28T00:58:35+00:00 List-Id: Simon Wright wrote: > You could make Individual.Associate a packed array (1 .. 1_000_000) of > Boolean, set True if there's an Association .. though since > Association is symmetric as far as I can tell it might be better to > have a separate two-dimensional array for this. I'd probably use PragmARC.Skip_List_Unbounded for the collection of rated innocent victims (appox O(log N) for insertion and lookup), each having a list of associates. Then finding the highest rated is O(1), and visiting each of her associates would be approx O(log N). -- Jeff Carter "Why don't you bore a hole in yourself and let the sap run out?" Horse Feathers 49