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 32.402.343 Times

Math::Combinatorics 0.09

  Date Added: July 06, 2010  |  Visits: 882

Math::Combinatorics

Report Broken Link
Printer Friendly Version


Product Homepage
Download (136 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  -  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  
Libraries  -  Inline::C 0.44
Inline::C is a Perl module that can Write Perl Subroutines in C. Inline::C is a module that allows you to write Perl subroutines in C. Since version 0.30 the Inline module supports multiple programming languages and each language has its own...
92.16 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
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