2017 © Pedro Pelรกez
 

library combinatorics

Mathematical algorithms concerning the study of finite or countable discrete structures.

image

kevinsimard/combinatorics

Mathematical algorithms concerning the study of finite or countable discrete structures.

  • Wednesday, January 3, 2018
  • by kevinsimard
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

Combinatorics

Build Status, (*1)

Usage

You may add new elements to the list by using the add method:, (*2)

$instance = new Combinatorics(["foo", "bar"]);

$instance->add("baz");
$instance->add("qux");

// ["foo", "bar", "baz", "qux"]

You may also want to reset the list of elements by calling the reset method:, (*3)

$instance = new Combinatorics(["foo", "bar"]);

$instance->reset();

// []

Permutations


$elements = ["foo", "bar", "baz"]; $instance = new Combinatorics($elements); foreach ($instance->permutations() as $value) { ... } // OR foreach (Combinatorics::permutations($elements) as $value) { ... } // [ // ["foo", "bar", "baz"], // ["bar", "foo", "baz"], // ["bar", "baz", "foo"], // ["foo", "baz", "bar"], // ["baz", "foo", "bar"], // ["baz", "bar", "foo"] // ]

Structure

โ”œโ”€โ”€ src
โ”‚ย ย  โ””โ”€โ”€ Combinatorics.php
โ”œโ”€โ”€ tests
โ”‚ย ย  โ””โ”€โ”€ CombinatoricsTest.php
โ”œโ”€โ”€ .editorconfig
โ”œโ”€โ”€ .gitattributes
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .travis.yml
โ”œโ”€โ”€ LICENSE.md
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ composer.json
โ”œโ”€โ”€ composer.lock
โ””โ”€โ”€ phpunit.xml

License

This package is open-sourced software licensed under the MIT license., (*4)

The Versions

03/01 2018

dev-master

9999999-dev

Mathematical algorithms concerning the study of finite or countable discrete structures.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Kevin Simard

algorithms mathematical permutations

07/04 2016

v1.0.5

1.0.5.0

Mathematical algorithms concerning the study of finite or countable discrete structures.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Kevin Simard

algorithms mathematical permutations