2017 © Pedro Peláez
 

library linear-partitioning

A simple library to solve linear partition problem with Dynamic Programming approach

image

technically-php/linear-partitioning

A simple library to solve linear partition problem with Dynamic Programming approach

  • Monday, February 12, 2018
  • by e1himself
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP solution to Linear Partition Problem

Based on a description from The Algorithm Design Manual book by Steven S. Skiena., (*1)

  • Leverages the Dynamic Programming principle
  • O(n²) complexity
  • Fully annotated code
  • Test suite
  • Semver

Installation

composer require technically-php/linear-partitioning:^1.0

Usage


use \TechnicallyPhp\LinearPartitioning\LinearPartitioning; $items = [100, 200, 300, 400, 500, 600, 700, 800, 900]; $ranges = LinearPartitioning::partition($items, 3); var_dump($ranges); // [ [100, 200, 300, 400, 500], [600, 700], [800, 900] ]

Credits

The Versions

12/02 2018

dev-master

9999999-dev

A simple library to solve linear partition problem with Dynamic Programming approach

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Ivan Voskoboinyk

20/02 2017

1.0.1

1.0.1.0

A simple library to solve linear partition problem with Dynamic Programming approach

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Ivan Voskoboinyk

20/02 2017

1.0

1.0.0.0

A simple library to solve linear partitioning problem with Dynamic Programming approach

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Ivan Voskoboinyk