Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Faster than the speed of sound (was: When the Best Solution Isn't)

by demerphq (Chancellor)
on Apr 16, 2003 at 23:10 UTC ( [id://251087]=note: print w/replies, xml ) Need Help??


in reply to Faster than the speed of sound (was: When the Best Solution Isn't)
in thread When the Best Solution Isn't

Just for the record this technique is sometimes called a Guttman Rosler Transform.


---
demerphq

<Elian> And I do take a kind of perverse pleasure in having an OO assembly language...
  • Comment on Re: Faster than the speed of sound (was: When the Best Solution Isn't)
  • Download Code

Replies are listed 'Best First'.
Re^2: Faster than the speed of sound
by Aristotle (Chancellor) on Apr 18, 2003 at 11:00 UTC

    Sorry, that’s incorrect.

    1. The point of the GRT is to call upon sort without a callback attached.

      (This is done by packing all the sortkeys and the actual data into a single datum in such a way that a simple $a cmp $b, which is the default sort behaviour, will result in the desired order (hence its alternative name “packed-default sort”).)

    2. The GRT (and the ST alike) directly sorts the elements themselves, with an extra step to extract the payload from each element afterwards.

    The approach I’m using here differs on both counts. It uses a sort callback, unlike the GRT, and sorts indices, unlike both the ST and the GRT.

    Its similarity is in having an extra step before sorting and another after, where the before-sorting step has the same purpose in all cases, i.e. computing the sort key for each element only once. The storage used for the computed keys differs greatly for each approach though, and therefore so do their after-sorting steps.

    Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://251087]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-25 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found