Пример #1
0
 /**
  * Constructs a PartitionAsForest
  * with the specified number of elements in its universal set.
  *
  * @param integer $n The size of elements in the universal set.
  */
 public function __construct($n)
 {
     parent::__construct($n);
     $this->array = new BasicArray($this->universeSize);
     for ($item = 0; $item < $this->universeSize; ++$item) {
         $this->array[$item] = new PartitionTree($this, $item);
     }
     $this->count = $this->universeSize;
 }