Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Understanding the Schwartzian transform.

by Anonymous Monk
on Jul 22, 2013 at 06:59 UTC ( #1045604=note: print w/ replies, xml ) Need Help??


in reply to Re: Understanding the Schwartzian transform.
in thread Understanding the Schwartzian transform.

...and its associated size in bytes

s/associated size in bytes/modification time/;


Excellent. Thanks all for the help. Is this the canonical form of the Schwartzian Transform or a variant?


Comment on Re^2: Understanding the Schwartzian transform.
Download Code
Replies are listed 'Best First'.
Re^3: Understanding the Schwartzian transform.
by Laurent_R (Monsignor) on Jul 22, 2013 at 07:29 UTC

    Is this the canonical form of the Schwartzian Transform or a variant?

    Yes, it can be considered as the canonical form of the Schwartzian Transform. The original ST that appeared in a newsgroup more than 15 years ago might not have worked on fila age (I don't remember), but, definitely, the "output_array = map {block} sort {block} map {block} input array" is the canonical form of the Schwartzian Transform.

      but, definitely, the "output_array = map {block} sort {block} map {block} input array" is the canonical for of the Schwartzian Transform.

      Sorry, that is like the generic form of Guttman-Rosler Transforms (see links) except without the secret ingredient :)(normalize/restore)

      Schwartzian is

      my @sorted = map { restore_from_cache } sort { by_cached_expensive } map { store_cache_expensive } @original;

        Sorry, but except that I did not detail what goes into the code blocks (as this has been detailed well enough the the previous posts), I do not see any difference between your version of the Schwartzian Transform and mine.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2015-07-31 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls