note
merlyn
<blockquote><i>I suppose I've always thought of it as a variation on the ST: precalculating the sort keys using map, sorting based upon those keys, and finally, another map to extract the actual data again. I never realized that the ST specified explicitly creating anonymous arrays.</i></blockquote>
And I agree with you, but I'm not willing to fight for that belief being universal
(that the GRT is really just a specialization of the ST). I've got other issues to fight.
<p>
In case you were curious. {grin}
<p>
Another way to look at it is that I made "map-sort-map" popular in the Perl
community, by issuing one specific use of it which some have come to know
as the ST. The GRT gang came up with another use that is harder to generalize,
but can produce better results for a subrange of problems. I don't believe that
the GRT can be sufficiently generalized in any practical sense to cover all problems,
hence knowing both manifest map-sort-map strategies (and inventing others)
is probably the best meta-strategy.
<p>-- <a href="http://www.stonehenge.com/merlyn/">Randal L. Schwartz, Perl hacker</a></p>
145659
146217