Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.541.263 Times

Math::Combinatorics 0.09

  Date Added: July 06, 2010  |  Visits: 836

Math::Combinatorics

Report Broken Link
Printer Friendly Version


Product Homepage
Download (133 downloads)



Math::Combinatorics is a Perl module that can perform combinations and permutations on lists. SYNOPSIS Available as an object oriented API. use Math::Combinatorics; my @n = qw(a b c); my $combinat = Math::Combinatorics->new(count => 2, data => [@n], ); print "combinations of 2 from: ".join(" ",@n)."n"; print "------------------------".("--" x scalar(@n))."n"; while(my @combo = $combinat->next_combination){ print join( , @combo)."n"; } print "n"; print "permutations of 3 from: ".join(" ",@n)."n"; print "------------------------".("--" x scalar(@n))."n"; while(my @permu = $combinat->next_permutation){ print join( , @permu)."n"; } output: Or available via exported functions permute, combine, and factorial. use Math::Combinatorics; my @n = qw(a b c); print "combinations of 2 from: ".join(" ",@n)."n"; print "------------------------".("--" x scalar(@n))."n"; print join("n", map { join " ", @$_ } combine(2,@n)),"n"; print "n"; print "permutations of 3 from: ".join(" ",@n)."n"; print "------------------------".("--" x scalar(@n))."n"; print join("n", map { join " ", @$_ } permute(@n)),"n"; Output: combinations of 2 from: a b c ------------------------------ a b a c b c permutations of 3 from: a b c ------------------------------ a b c a c b b a c b c a c a b c b a Output from both types of calls is the same, but the object-oriented approach consumes much less memory for large sets..

Requirements: No special requirements
Platforms: Linux
Keyword: B C Combinations Combinations And Permutations Libraries Mathcombinatorics Perl Module Permutations Print Programming
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


MATH::COMBINATORICS RELATED
Libraries  -  PermComb 1.0.0
PermComb is pure perl module for performing permutations and combinations of an arbitrary list. Algorithm::Permute permutes only n out of n and requires compilation. This mod is pure perl and supports permutations and combinations taken R at a...
9.22 KB  
Libraries  -  B::C 5.8.8
B::C is Perl compilers C backend. SYNOPSIS perl -MO=C[,OPTIONS] foo.pl This compiler backend takes Perl source and generates C source code corresponding to the internal structures that perl uses to run your program. When the generated C...
12.2 MB  
Libraries  -  Fcntl 5.8.8
Fcntl is a Perl module to load the C Fcntl.h defines. SYNOPSIS use Fcntl; use Fcntl qw(:DEFAULT :flock); This module is just a translation of the C fcntl.h file. Unlike the old mechanism of requiring a translated fcntl.ph file, this uses...
12.2 MB  
Libraries  -  Date::Formatter 0.09
Date::Formatter Perl module is a simple Date and Time formatting object. SYNOPSIS use Date::Formatter; # create a Date::Formatter object with the current date and time. my $date = Date::Formatter->now(); # create a formatter routine for...
12.29 KB  
Libraries  -  Image::ExifTool 6.42
Image::ExifTool is a Perl module that can read and write meta information. SYNOPSIS use Image::ExifTool ImageInfo; # ---- Simple procedural usage ---- # Get hash of meta information tag names/values from an image $info = ImageInfo(a.jpg);...
1024 KB  
Libraries  -  HTML::Widget 1.09
HTML::Widget is a Perl module with HTML Widget And Validation Framework. SYNOPSIS use HTML::Widget; # Create a widget my $w = HTML::Widget->new(widget)->method(get)->action(/); # Add a fieldset to contain the elements my $fs =...
67.58 KB  
E-Mail Tools  -  amavisd-new 2.5.2
amavisd-new is a high-performance and reliable interface between mailer (MTA) and one or more content checkers: virus scanners, and/or Mail::SpamAssassin Perl module. amavisd-new is written in Perl, ensuring high portability, reliability and...
819.2 KB  
Education  -  A-B-C Learner 1.0
"A-B-C Learner" apps is fun and learn based app for kids. identify words and explode balloons in a sequence which can help kids to remember words and increase IQ level. "A-B-C Learner" is like having preschool right on your...
3 MB  
Education  -  English Test Level (A,B,C) 2.0.0
Learn, Test English ANYWHERE, ANY TIME The Test English Level is a collection of question test in level A,B,C . It contains about 4000 English lessons (20 questions per test plus answer keys) covering a wide variety of topics and...
13.3 MB  
Education  -  Learn the A B C with Kito 1.8
Learn the A B C letters! Trip with a spaceship to the 7 continents! America, Asia, Australia, South America, Europe, Antarctica and Africa! A B C trip is an Educational learning and fun game for kids and toddlers. A visitor from another...
46.4 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB