add1: function to add a columns

add1CAR Documentation

function to add a columns

Description

increases the number of columns by 1, adding at most bestN(t-2,k-1,v)v(v-1) rows.

Usage

add1CA(t, k, v, ...)

N_add1CA(t, k, v, ...)

add1Column(D, t, v, ...)

Arguments

t

integer: the required strength, or the strength of D (not checked)

k

integer: the required number of columns

v

integer: the required number of levels, or the number of levels of D

...

used for propagating an exclude argument, if needed

D

a strength t CA with v levels in k-1 columns
(integer levels, starting at 0 or 1)

Value

add1Column and add1CA return a CA of strength t in v levels in k columns.
It will have at most bestN(t-2,k-2,v)*v*(v-1) additional rows.
N_add1CA returns the number of runs obtainable by add1CA.

Details

Functions add1CA and N_add1CA are obsolete and are kept for backward compatibility and manual inspection only. The implementation via bestCA, based on Ns_add1 and the internal function N_add1best, is much more powerful and optionally permits to add more than one column (by repeatedly adding one column). Function add1Column is the workhorse function for these more powerful functions.

Function add1CA applies function add1Column to the best available strength t CA at v levels with k-1 columns in the role of D; derive, fuse and add1 constructions are not included in the search for a best ingredient.
The construction relies on appending to D a copy of the last column of D, followed by adding rows that consist of
the best strength t-2 CA at v levels with k-2 columns, repeated v*(v-1) times, in the first k-2 columns,
each combined with one of the v(v-1) distinct level pairs for the last two columns.
For t=2, the best CA is simply a constant row of flexible values.

The construction is not interesting for small CAs, but may be useful, where good large CAs, e.g., ones constructed by cyclotomy, have one less column than needed (and a good CA with strength t-2 for k-1 columns is available).

References

CKRS, Theorem 3.2

Examples

## a case for which this is best
D <- powerCA(3,1331,2)
dim(D)
D2 <- add1Column(D, 3, 2)
dim(D2)
eCAN(3,1331,2)
eCAN(3,1332,2)
N_add1CA(3,1332,2)

dim(add1CA(3,1332,2))


A <- add1CA(6,2504,2)
dim(A)
eCAN(6,2504,2) ## better
Ns(4,2504,2) ## its a bit worse because this ingredient is not optimal
3047 + (288 - 272)*2
eCAN(4,2504,2) ## Colbourn and Zhou power construction not implemented



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