Hartman74: Construction in Hartman Theorem 7.4

View source: R/Hartman74.R

N_Hartman74R Documentation

Construction in Hartman Theorem 7.4

Description

The number of columns of an N x k design A can be squared; the design size is usually not optimal.

Usage

Hartman74(A, v, t, B=NULL, ...)

N_Hartman74(N_A, k_A, v, t, ...)

k_Hartman74(N_A, k_A, v, t, ...)

Turan(t, v)

Arguments

N_A

run size of the matrix A (called N above)

k_A

number of columns of the matrix A (called k above)

v

the number of levels (or the number of parts for Turan)

t

the strength (or the number of vertices for Turan)

...

currently not used

A

an N x k CA of strength t with columns in v levels each, denoted as 0 to v-1 or 1 to v

B

NULL, or a strength 2 CA in at least Turan(t,v) columns with levels from 1 to k (levels from 0 to (k-1) are acceptable too). If not specified by the user, the Bose construction from createBose is used, which yields at most k+1 columns, for a prime power k. If k is not a prime power or k+1 columns are not enough, the user must provide a suitable B or an A with more columns (may not be easy, at least not for achieving acceptable run sizes).

Value

function Hartman74 returns a strength t CA with k^2 columns (matrix of class ca),
the identical functions N_Hartman74 and k_Hartman74 return a named vector with the run size N, the number of columns k, the strength t and the number of levels v
from using an N_A x k_A matrix A of strength t in v levels,
assuming this matrix and a suitable B exists (warning, if this is not the case for the Bose construction for prime power k),
and function Turan returns the maximum number of edges in a v-partite graph with t vertices, which is used in the construction.

Details

The construction vertically stacks Turan(t,v) copies of column selections from A,
where the ith copy is obtained by picking the A columns according to the elements of the ith column of B.
Eventually, duplicate rows are removed.

The construction requires that the number of columns of B is at least Turan(t,v), which may be impossible if A has too few columns. Sometimes, it can be possible to increase the number of columns for A (see examples).

References

Hartman (2005)

Examples

# Turan numbers (minimum number of columns needed for B)
Turanvec <- Vectorize(Turan)
TuranTable <- outer(1:13, 2:7, function(X, Y) Turanvec(X, Y))
dimnames(TuranTable) <- list(t=1:13, v=2:7)
TuranTable
## the first seven rows remain constant for larger values of v

A <- lhs::createBusht(4,5,3,bRandom=FALSE) ## 64 x 5
D <- Hartman74(A, v=4, t=3)
coverage(D, 3)
dim(D)
eCAN(3,25,4) ## D is far from optimal (roughly factor 1.6)

A <- lhs::createBusht(3,4,4,bRandom=FALSE) ## 81 x 4
A5 <- derive(DoE.base::L243.3.6-1)         ## 81 x 5
     ## optimal CA for strength 4 in 5 3-level columns according to Colbourn tables
# D <- Hartman74(A, v=3, t=4) ## would yield an error, too few columns in Bose design
D <- Hartman74(A5, v=3, t=4)
# coverage(D, 4)  ## commented out because of check time
dim(D)
eCAN(4,25,3) ## D is far from optimal (roughly factor 1.44)


CAs documentation built on Nov. 29, 2026, 1:06 a.m.