[Shootout-list] word-frequency

Nicolas Neuss Nicolas.Neuss@iwr.uni-heidelberg.de
Mon, 20 Jun 2005 00:38:00 +0200


John Skaller <skaller@users.sourceforge.net> writes:

> Unfortunately, changing the test will have absolutely no impact.
> All you do is reverse the polarity of the frequencies by
> storing the value
>
> 	1000000 - n
>
> instead of n :)
>
> Concatenating sort keys is just a Perlish implementation
> of the usual lexicographical ordering of tuples.

Hmm, so Perl&co programmers would still sort this way!?  At least, they
would be punished with some extra operations, because they could not sort
with precisely the same thing which has to be printed.

Nicolas.