27 _size(partition._size),
28 _capacity(partition._size),
29 _setCount(partition._setCount) {
75 for (
size_t i = 0; i <
_size; ++i)
89 for (
size_t i = 0; i <
_size; ++i) {
122 fprintf(file,
"Partition(size=%lu sets:", (
unsigned long)
_size);
123 for (
size_t i = 0; i <
_size; ++i)
size_t getSetCount() const
size_t getSetSize(size_t set) const
void print(FILE *file) const
size_t getSizeOfClassOf(size_t i) const
bool join(size_t i, size_t j)
size_t getRoot(size_t i) const