Partitions as Disjoint Nonempty Buckets

A partition of a set assigns each item to exactly one nonempty subset and covers the full set.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Check the obligations separately
  2. Interpret empty labels
  3. Check nonempty blocks, disjointness and coverage separately
  4. Distinguish equivalent partitions from named storage buckets

Check the obligations separately

For IDs 1, 2, 3, placing 1 and 3 together and 2 alone gives a partition. Adding 2 to both groups violates disjointness even though all IDs still appear. Subset checks can verify coverage of the declared universe.

Interpret empty labels

A reporting system can show a group with no rows, but the corresponding mathematical partition omits that empty subset. See partitioning records for verifying an implementation's output policy.[1]

Check nonempty blocks, disjointness and coverage separately

Dividing \(U=\{1,2,3,4,5\}\) by parity gives nonempty blocks \(\{1,3,5\}\) and \(\{2,4\}\). Adding an empty block violates the mathematical definition of a partition even though coverage and disjointness survive. See partitioning records by key for a programming application.

Union of the two blocks: U
Intersection of the blocks: empty
Block sizes: 3 and 2
Each of the five elements has one block assignment

Distinguish equivalent partitions from named storage buckets

Swapping the two block names leaves the unlabeled partition the same. In a table, names can carry semantics that matter to consumers. Test that every record has a block, then test that no record occurs twice.

References

  1. Eric Lehman, F. Thomson Leighton and Albert R. Meyer, Mathematics for Computer Science ↩