A difference system of
sets (DSS) with parameters (n, τ0, ..., τq-1,ρ)
is a collection of q disjoint subsets Qi of {1, 2,
..., n}, | Qi| =τi, 0 ≤ i ≤ q-1, such that the
multi-set
M ={ a-b ( mod n) | a in Qi , b in Qj , i≠j}
contains every number i, 1 ≤ i ≤ n-1 at least ρ times. A DSS is perfect if every number i is contained exactly ρ times in the multi-set of differences. A DSS is regular if all subsets Qi are of the same size: τ0 = τ1 = ... = τq-1.To download a C program that finds a DSS with given parameters n, q and ρ click here. The program searches for a DSS for every partition that meets the lower bound on r(n,q,ρ) if one exists.