Re: Let me count the ways...

2002-04-12 Thread Stephen Turner
On 9 Apr 2002, Lars Henrik Mathiesen wrote: > > > -- > > Stephen Turner, Cambridge, UKhttp://homepage.ntlworld.com/adelie/stephen/ > > "This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01 > > I love this quote. It takes a few seconds before you realize what that > s

Re: Let me count the ways...

2002-04-09 Thread Yanick
On Tue, Apr 09, 2002 at 02:09:30PM -, Lars Henrik Mathiesen wrote: > > While we are all in a post-mortem mood, could someone explains > > to me, in simple words of no more than two syllables, why stuff like > > map y|w|y|, sort @a; > > changes the values of @a? > > OK: It just does,

Re: Let me count the ways...

2002-04-09 Thread Lars Henrik Mathiesen
> From: "Keith C. Ivey" <[EMAIL PROTECTED]> > Date: Tue, 9 Apr 2002 09:36:04 -0400 > > Adam Spiers <[EMAIL PROTECTED]> wrote: > > Stephen Turner ([EMAIL PROTECTED]) wrote: > > > > just using it to do things the right > > > number of times without operating on the array -- and here, > > > not eve

Re: Let me count the ways...

2002-04-09 Thread Lars Henrik Mathiesen
> Date: Mon, 8 Apr 2002 23:06:34 -0400 > From: Yanick <[EMAIL PROTECTED]> > > While we are all in a post-mortem mood, could someone explains > to me, in simple words of no more than two syllables, why stuff like > > map y|w|y|, sort @a; > > changes the values of @a? OK: It just do

Re: Let me count the ways...

2002-04-09 Thread Keith C. Ivey
Adam Spiers <[EMAIL PROTECTED]> wrote: > Stephen Turner ([EMAIL PROTECTED]) wrote: > > just using it to do things the right > > number of times without operating on the array -- and here, > > not even the right number of times, just a generous upper > > bound. > > Not always that generous; in fa

Re: Let me count the ways...

2002-04-09 Thread Adam Spiers
Stephen Turner ([EMAIL PROTECTED]) wrote: > By the way, I had some solutions where it was better to add 98 or 99 than 8 > or 9 -- then you can just pick out solutions beginning with a 1. Me too. Although I hadn't spotted the <= 15 rule, so I was working with silly things like 1e9-2.

Re: Let me count the ways...

2002-04-09 Thread Adam Spiers
Stephen Turner ([EMAIL PROTECTED]) wrote: > On Mon, 8 Apr 2002, Adam Spiers wrote: > > > > Lars Henrik Mathiesen ([EMAIL PROTECTED]) wrote: > > > In conclusion: There's more than one way to skin a cat, but still only > > > a finite number. But I was a bit surprised to see that noone else was > > >

Re: Let me count the ways...

2002-04-08 Thread Yanick
While we are all in a post-mortem mood, could someone explains to me, in simple words of no more than two syllables, why stuff like map y|w|y|, sort @a; changes the values of @a? I was under the impression that sort returned the sorted values and no references to the original

Re: Let me count the ways...

2002-04-08 Thread Lars Henrik Mathiesen
> Date: Mon, 8 Apr 2002 21:29:19 +0100 (BST) > From: Stephen Turner <[EMAIL PROTECTED]> > > By the way, I had some solutions where it was better to add 98 or 99 than 8 > or 9 -- then you can just pick out solutions beginning with a 1. Neat. Getting rid of the singleton entries and hash keys is a

Re: Let me count the ways...

2002-04-08 Thread Lars Henrik Mathiesen
> Date: Mon, 8 Apr 2002 17:54:24 +0100 > From: Adam Spiers <[EMAIL PROTECTED]> > > Lars Henrik Mathiesen ([EMAIL PROTECTED]) wrote: > > I've made a quick rundown of the methods used in the solutions that > > got under a score of 80 (as an arbitrary cutoff). > > [snip excellent analysis/summary]

Re: Let me count the ways...

2002-04-08 Thread Stephen Turner
On Mon, 8 Apr 2002, Adam Spiers wrote: > > Lars Henrik Mathiesen ([EMAIL PROTECTED]) wrote: > > In conclusion: There's more than one way to skin a cat, but still only > > a finite number. But I was a bit surprised to see that noone else was > > using the same method as I was. > > I wasn't. It's

Re: Let me count the ways...

2002-04-08 Thread Stephen Turner
On 8 Apr 2002, Lars Henrik Mathiesen wrote: > > Adding 8 or 9 to make all numbers from 2 to 15 into two-digit integers: > By the way, I had some solutions where it was better to add 98 or 99 than 8 or 9 -- then you can just pick out solutions beginning with a 1. -- Stephen Turner, Cambridge,

Re: Let me count the ways...

2002-04-08 Thread Adam Spiers
Lars Henrik Mathiesen ([EMAIL PROTECTED]) wrote: > I've made a quick rundown of the methods used in the solutions that > got under a score of 80 (as an arbitrary cutoff). [snip excellent analysis/summary] Thanks for that. I wonder if there are any other methods with potential. The only other o

Let me count the ways...

2002-04-08 Thread Lars Henrik Mathiesen
I've made a quick rundown of the methods used in the solutions that got under a score of 80 (as an arbitrary cutoff). First off, everybody in this group used a hash to collect anagram sets, generating the key with some moral equivalent of join '', sort split //, $_; the primary trick used h