Algorithm-SetCovering

 view release on metacpan or  search on metacpan

SetCovering.pm  view on Meta::CPAN

        unless exists $options{columns};

    my $self = {
        mode     => "greedy",
        @options,
        rows     => [],
        prepared => 0,
        combos   => [],
    };

    bless $self, $class;
}

##############################################
sub add_row {
##############################################
    my($self, @columns) = @_;

    if($self->{columns} != scalar @columns) {
        die "add_row expects $self->{columns} columns" .
            "but received " . scalar @columns . "\n";



( run in 0.306 second using v1.01-cache-2.11-cpan-de7293f3b23 )