Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Wordfeud racks

by Anonymous Monk
on Jul 30, 2013 at 14:24 UTC ( [id://1047043]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Wordfeud racks (Math::Combinatorics)
in thread Wordfeud racks

ok, I see what's what now after I look inside , its much like choroba wrote , %seen
sub next_multiset { my $self = shift; if ( ! $self->{frequency} ) { print STDERR "must use next_combination() if 'frequency' argument +not passed to constructor\n"; return (); } my $data = $self->data(); my $compare = $self->compare(); while ( my @combo = $self->_next_combination ) { my $x = join '', map {scalar($$_)} sort @$data; my $y = join '', map {scalar($_) } sort @combo; next if $self->{'cache_multiset'}{$y}++; return @combo; } $self->{'cache_multiset'} = undef; return (); }

so Algorithm::Combinatorics doesn't appear to support that(%seen) out of the box (I see no cache, no hv)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-26 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found