| 1 | <?php |
||
| 14 | class Greedy extends BasePartitionAlgorithm implements PartitionAlgorithmInterface { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The greedy algorithm needs the input data to be sorted (desc). |
||
| 18 | * |
||
| 19 | * @return array |
||
| 20 | */ |
||
| 21 | 2 | public function getResult() { |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param \drupol\phpartition\Subset $subset |
||
| 29 | * |
||
| 30 | * @return int|mixed |
||
| 31 | */ |
||
| 32 | 2 | public function getSubsetWeight(Subset $subset) { |
|
| 41 | |||
| 42 | } |