Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^4: Another word puzzle with too many permutations

by oiskuu (Hermit)
on Oct 16, 2013 at 16:24 UTC ( #1058492=note: print w/replies, xml ) Need Help??

in reply to Re^3: Another word puzzle with too many permutations
in thread Another word puzzle with too many permutations

I noticed it too, that you score caps only. That said, if you score by length, it works nicely as well.
Another smart thing is to remove impossible words at earliest opportunity.
DOG: for my $dog (@_) { my $remaining = $letters; $remaining =~ s/$_//i or next DOG for split //, $dog; push @remain, $remaining; push @dogs, $dog; } while( my $dog = shift @dogs ) { dogtree( "$tree $dog", shift @remain, @dogs ); }
The given puzzle solves in 1-2 secs, and takes about 3 minutes for a full pass (return instead of exit).
Only one solution exists. A letter set such as
takes some 20 times longer...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058492]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2017-09-21 02:51 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (241 votes). Check out past polls.