cyclotomy: functions for cyclotomy constructions

cyclotomyCAR Documentation

functions for cyclotomy constructions

Description

cyc provides cyclotomy constructions according to Colbourn (2010), which yield good high strength arrays for v=2,3,4,6 (see Details section); Ncyc and kcyc provide run sizes and maximum numbers of columns for the respective q, v and construction type.

Usage

cyclotomyCA(t, k, v, ...)

cyc(q, v, k=NULL, type=NULL, primitive=NULL)

N_cyc(q, v, type)

k_cyc(q, v, type)

Arguments

t

requested strength (coverage)

k

requested number of columns; for cyc, default NULL for maximum possible

v

number of levels for each column

...

currently not used

q

prime or prime power with q=1(mod v)

type

the construction type ("1","2","3","3a","3b","4a", or "4b"), default implies "1"

primitive

the primitive of the finite field to be used for the construction (specification should not be needed, except for cases that are not adequately covered by the internal data.frame primedat)

Value

cyclotomyCA returns a matrix with k columns and values 0 to v-1 in the number of rows that can be obtained by the cyclotomy construction for strength t;
the matrix has class ca.

cyc returns a matrix with k columns and values 0 to v-1 with the number of runs corresponding to the construction (see Details section). k_cyc and N_cyc return the maximum possible k and the run size N for the given parameters.

Details

Function cyclotomyCA allows to specify t, k and v and to obtain the smallest implemented CA from the cyclotomy construction for this specification (if one exists). This package only automatically implements those CAs that have optimum size as of the state of the Colbourn tables of best bounds of November 2024.

As various mistakes were found in tables of Colbourn (2010), and the package author does not want to take responsibility for the strength of CAs according to those tables from the paper, the tables from Colbourn (2010) were not used for implementing further cyclotomy-based CAs. It is very well possible that there is a smaller CA for the purpose from a cyclotomy construction; users who know that a certain prime power q yields a smaller CA for their requirements can use function cyc for creating that CA.

The implemented constructions include three strength 5 cases attributed to Torres-Jimenez, for which q%%v==2 (and not 1, as required in Colbourn 2010). Limited checks by sampling suggest that these are OK, but no full checks have been conducted, and the implementation trusts that the Colbourn tables are correct (except in one case, which was omitted because the alleged q is not a prime or prime power (13*229), and in three further instances (q=127, 2161, 2311), for which the size found in the Colbourn tables is too small, as it is based on construction 3a, while construction 4a is needed (thanks to Christopher Smolen for highlighting the coverage violation)).

The function cyc is meant for experts and yields designs with columns in v levels based on prime or prime power q as follows:

for N=k=q=1(mod v) prime power (Construction 4.1)
or N=q+v-1, k=q, with q=1(mod v) prime power (Construction 4.2)
(add constant rows with elements 1, 2, ..., v-1
to construction 4.1, as these are missing)
or N=vq, k=q, with q=1(mod v) prime power (Construction 4.3)
(juxtapose vertically A, A+1, ..., A+v-1 (mod v);
this is called developing modulo v)
or 4.3a: k=q+1
(extend A by column of 0s before developing)
or 4.3b: N=vq+v^2-v, k=q+1
(add non-zero constant rows (like in 4.2),
then add column of 0s before developing)
or N=vq+v, k=q, with q=1(mod v) prime power (Construction 4.4)
add constant row of zeroes to A before developing
or 4.4a: k=q+1
also add constant column of zeroes
or 4.4b: N=vq+v^2-v, k=q+1 (same as 3.b)
add to A all nonzero constant rows
and a column of ones, then develop

The parameters have to be specified by the user. They can, e.g., be selected from cyclotomy construction entries of CAs:::colbournBigFrame, or from the Colbourn (2010) paper.

Warning

For valid parameters, function cyc always returns an array, but coverage properties are only guaranteed for well-chosen parameters!

Examples

## the main function for practical use
CA768.3.128.6 <- cyclotomyCA(3, 128, 6)  ## strength 3 CA with 128 columns in 2 levels each
## the best existing CA, though a bit worse than claimed in the Colbourn tables,
## because the construction claimed there does not cover all triples (one of very few mistakes)
dim(CA768.3.128.6)
eCAN(3,128,6)
Ns(3,128,6)

## function cyc for expert use
## construction 1
## 2-level
CA19.3.19.2 <- cyc(19, 2) ## q=19, k=19
coverage(CA19.3.19.2, 3)
coverage(CA19.3.19.2, 4)

# 3-level
CA93.3.32.3 <- cyc(31, 3, type="3a")
coverage(CA93.3.32.3, 3)
dim(CA93.3.32.3)
k_cyc(31,3,"3a")
N_cyc(31,3,"3a")

## reduce k versus the default 32
CA93.3.23.3 <- cyc(31, 3, k=23, type="3a")
dim(CA93.3.23.3)

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