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: a07f3367d7,56525db28240414a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.86.72 with SMTP id n8mr112683paz.24.1342759776252; Thu, 19 Jul 2012 21:49:36 -0700 (PDT) Received: by 10.68.191.137 with SMTP id gy9mr802559pbc.6.1342759776155; Thu, 19 Jul 2012 21:49:36 -0700 (PDT) Path: b9ni11064511pbl.0!nntp.google.com!q4no4754948pbi.1!news-out.google.com!p10ni11618197pbh.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!news-hub.siol.net!news.mi.ras.ru!goblin1!goblin.stu.neva.ru!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Efficient Sequential Access to Arrays Date: Mon, 16 Jul 2012 15:43:54 -0400 Organization: The Wasteland Message-ID: References: <01983f1c-f842-4b1f-a180-bcef531dad4c@googlegroups.com> <44f2bfd0-75ed-4b9c-982e-61d5308f9c01@googlegroups.com> <1s8rnmtyqnrr$.1o78f1qaxeulh$.dlg@40tude.net> <1lgvwexsx8ovd.xdbvohz8eowp.dlg@40tude.net> <4c86d54d-dfeb-44f1-9638-3c416ea51d74@googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: 2012-07-16T15:43:54-04:00 List-Id: In article <4c86d54d-dfeb-44f1-9638-3c416ea51d74@googlegroups.com>, Keean Schupke wrote: > > On Mon, 16 Jul 2012 03:16:09 -0700 (PDT), Keean Schupke wrote: > > > > > On Monday, 16 July 2012 08:47:01 UTC+1, Dmitry A. Kazakov wrote: > > > > On Sun, 15 Jul 2012 13:03:12 -0700 (PDT), Keean Schupke wrote: > > > > > > > > Absolute figures tell little. How big is the relative difference? > > > > > > About 25% (30k with indexing, 40k with relative addressing) > > > > Which itself looks like a problem. It takes no less than 25% of > > overall performance for mere shuffling data in a task unrelated to > > stuff like recoding etc. This looks wrong to me. I would look for a > > better algorithm/structure. > > I find this comment puzzling and does not match my experience. What > sort of algorithms do you work with. What algorithm for disjoint-set > do you suggest I use? Have a read of this: > > http://www.cs.princeton.edu/~rs/AlgsDS07/01UnionFind.pdf Apropos to this, may I impose on you to elaborate on your previous decision not to use WQUPC? In particular, is your application lookup dominated due in some part to the choice of algorithm itself? Sorry if I've overlooked an intervening clarification. > Can you come up with a faster algorithm? Until you have read it I > don't think you can comment on the quality of algorithm I am using. -- John B. Matthews trashgod at gmail dot com