-
Notifications
You must be signed in to change notification settings - Fork 0
Generate all integer partitions of an integer
License
dland/Integer-Partition
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The file is the README for Integer::Partition version 0.05 INSTALLATION perl Makefile.PL make make test make install TESTING This module requires the following module for thorough testing: Test::More The following test modules are optional: Test::Exception Test::Pod Test::Pod::Coverage It can also make use of Devel::Cover if available. UNINSTALLATION This is a pure-Perl module. The following one-liner should print out the canonical path of the file: perl -MInteger::Partition -le 'print $INC{"Integer/Partition.pm"}' Just delete this file. There is also the question of the man page. Finding that is left as an exercise to the reader. USAGE use Integer::Partition; my $i = Integer::Partition->new(6); while (my $p = $i->next) { print join( ' ', @$p ), $/; } # prints: 6 5 1 4 2 4 1 1 3 3 3 2 1 3 1 1 1 2 2 2 2 2 1 1 2 1 1 1 1 1 1 1 1 1 1 IMPLEMENTATION This module implements the Zoghbi and Stojmenovic ZS1 and ZS2 algorithms for generating integer partitions. See http://www.site.uottawa.ca/~ivan/F49-int-part.pdf for more information. STATUS This module is under active development. AUTHOR David Landgren COPYRIGHT This module is copyright (C) David Landgren 2007-2013. All rights reserved. LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
About
Generate all integer partitions of an integer
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published