| DHHF2CA | R Documentation |
Function to construct a larger CA by replacing levels of a DHHF with columns of smaller CAs
DHHF2CA(P, Dlist, v = max(Dlist[[1]]) + 1, ...)
P |
an M x k DHHF of strength t for partition size p=min(t,v) with several blocks of rows, where the ith block has w_i levels (a PHHF is the case with partition size t) |
Dlist |
a list of N_i x w_i CAs of strength t with |
v |
number of levels of all elements of |
... |
further arguments to function |
a CA(chi + sum_i=1^c (N_i-rho_i)*u_i, t, k, v)
(matrix, not of class ca, as there are no
guarantees regarding the strength, because guarding this is left to the user or to calling functions).
A PHHF is a perfect heterogeneous hash family, a DHHF a distributed heterogeneous hash family
(weaker condition); heterogeneity means that there are c blocks with different numbers of levels,
w_1,...,w_c, and there are u_i rows for the ith block, with u_1 +...+ u_c = M.
Function DHHF2CA yields a CA(chi + sum_i=1^c (N_i-rho_i)u_i, t, k, v) from
replacing the levels of the DHHF with the columns of the corresponding CA from
Dlist,
leaving out the rho_i constant rows of the ith CA and adding a few (chi) constant rows back
in, if needed, where chi = max(0, v - sum_i=1^c u_i(v - rho_i)).
The construction is from Theorem 2.3 of Colbourn and Torres-Jimenez (2010).
The function uses function maxconstant to maximize the constant rows of the CAs.
There may be (likely rare) situations with many different numbers of levels in the DHHF for which the function's handling of constant rows could be slightly improved; for these cases, the result will not have the minimum number of rows possible from the construction, but one or very few more rows.
The function does not check for the properties of the ingoing arrays. Hence, it is the users responsibility to ensure that these are as needed.
Colbourn and Torres-Jimenez (2010), Ji and Yin (2010) for the example
#########################################
## DHHF2CA
#########################################
## the Ji and Yin (2010) strength 3 OA in six 12-level columns (Lemma 3.5 with Corollary 3.3)
## available in this package as oa1728.12.6
P <- t(oa1728.12.6[,1:5])
P <- Tred(P, 4:5, 1)
## two columns reduced to 11 levels each
dim(P)
eCAN(3, 12, 2) ## 15 runs, in TJ2level_CAs
eCAN(3, 11, 2) ## 12 runs, paleyCA also yields this
D <- DHHF2CA(P,
list(bestCA(3,12,2), bestCA(3,11,2)))
dim(D)
eCAN(3, 1452, 2) ## optimal, this construction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.