{"id":27372688,"url":"https://github.com/technically-php/linear-partitioning","last_synced_at":"2025-04-13T10:15:02.590Z","repository":{"id":57066127,"uuid":"82588406","full_name":"technically-php/linear-partitioning","owner":"technically-php","description":"A simple library to solve linear partitioning problem [O(n²)]","archived":false,"fork":false,"pushed_at":"2022-11-28T11:20:50.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T10:44:47.078Z","etag":null,"topics":["dynamic-programming","linear-parition","php","php7"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/technically-php.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-20T18:18:33.000Z","updated_at":"2023-02-27T09:25:26.000Z","dependencies_parsed_at":"2023-01-22T01:47:04.197Z","dependency_job_id":null,"html_url":"https://github.com/technically-php/linear-partitioning","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technically-php%2Flinear-partitioning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technically-php%2Flinear-partitioning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technically-php%2Flinear-partitioning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technically-php%2Flinear-partitioning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technically-php","download_url":"https://codeload.github.com/technically-php/linear-partitioning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248453198,"owners_count":21106215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dynamic-programming","linear-parition","php","php7"],"created_at":"2025-04-13T10:14:57.466Z","updated_at":"2025-04-13T10:15:02.577Z","avatar_url":"https://github.com/technically-php.png","language":"PHP","readme":"# PHP solution to Linear Partition Problem \n\nBased on a description from [The Algorithm Design Manual](http://www.algorist.com/) book by *Steven S. Skiena*.\n\n* Leverages the Dynamic Programming principle\n* *O(n²)* complexity\n* Fully annotated code\n* Test suite\n* Semver\n\n## Installation\n\n```bash\ncomposer require technically-php/linear-partitioning:^1.0\n```\n\n## Usage\n\n```php\n\nuse \\TechnicallyPhp\\LinearPartitioning\\LinearPartitioning;\n\n$items = [100, 200, 300, 400, 500, 600, 700, 800, 900];\n$ranges = LinearPartitioning::partition($items, 3);\n\nvar_dump($ranges);\n// [ [100, 200, 300, 400, 500], [600, 700], [800, 900] ]\n\n```\n\n## Credits\n\n* Implemented by [Ivan Voskoboinyk](https://github.com/e1himself)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnically-php%2Flinear-partitioning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnically-php%2Flinear-partitioning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnically-php%2Flinear-partitioning/lists"}