Commit graph

1 commit

Author SHA1 Message Date
Sunpoet Po-Chuan Hsieh
0ae8a455c3 - Add p5-Algorithm-Pair-Best2 2.035
Algorithm::Pair::Best2 is a re-write of Algorithm::Pair::Best. The interface is
simplified and the implementation is significantly streamlined.

After creating an Algorithm::Pair::Best2 object (with->new), add items to the
list of items (i.e: players) to be paired. The final list must contain an even
number of items or picking the pairs will throw an exception.

Algorithm::Pair::Best2->pick explores all combinations of items and returns the
pairing list with the best (lowest) score.

WWW: http://search.cpan.org/dist/Algorithm-Pair-Best2/

Feature safe:	yes
2011-11-23 17:12:04 +00:00