paley: Paley constructions

conference_paleyR Documentation

Paley constructions

Description

Functions to construct Paley-based CAs as well as to construct further objects related to a Paley construction

Usage

paleyCA(t, k, ...)

paleyHad(q)

show_paleyHad(minN=NULL, maxN=NULL)

paley_mat(q)

conference_paley(q)

Arguments

q

prime or odd prime power

k

integer number: number of columns of the CA

t

integer number: strength of the CA, 3 to 6

minN, maxN

bounds for the run size N. Without specified bounds, the returned data frame has more than 1000 rows.

...

currently not used

Value

Function paleyCA returns a matrix of class ca with levels 0 and 1 in k columns and N_PAYLEYcat(t, k, 2) rows.
Function conference_paley returns a conference matrix, function paleyHad a Hadamard matrix of the Paley construction (matrix) in q or 2q+1 2-level columns (see Section Details). Function show_paleyHad returns a data frame with columns N, k, q, constr, CAN, Source (source entry in the Colbourn tables for the design with fewest possible runs), and N_NISTcat for q up to 10009. Most of the arrays listed can be created; exceptions are q that are powers of primes larger than 50.

Background on Paley-based covering arrays

Function paleyCA uses numerical experiments of Colbourn (2015) to provide the smallest possible strength t CA for 2-level columns that can be obtained using a Paley construction. Results are based on numeric searches of Paley constructions regarding coverage properties of Paley matrices with or without adding a row of ones, as well as doubled such matrices, where doubling a matrix M means vertically stacking M and 1-M, and adding an indicator column for the two halves.
Colbourn (2015) worked out the minimum numbers of replicates for each t-tuple, and where these exceed 1, proposed to remove rows without deteriorating coverage. This package contains a data.frame PALEYcat, which contains an executable code string from processing the results of Colbourn (2015). For strength 3, only constructions without doubling are included, as CAs from doubling are very uncompetitive (small corrections to Colbourn's Table 1 were needed for primes 7, 13 (strength 3 not possible) and 17 (no row can be removed)).

Details

Function paleyCA provides a covering array of strength t for 2-level columns.
Function N_PALEYcat shows the CA run sizes that can be obtained with the paley construction using function paleyCA,
function k_PALEYcat shows the number of columns that can be accommodated in N runs using function paleyCA.

Function conference_paley yields a q x q conference matrix, while function paley yields a q x q Paley matrix that is derived from the conference matrix by replacing the "-1" values with zeroes.

Based on finite fields and conference matrices, function paleyHad yields OAs in numbers of levels a multiple of 4. Hadamard constructions depend on the value of q %% 4, which can either be 1 or 3:
For q %% 4 = 3, a (q+1) x q OA is obtained,
q %% 4 = 1 yields a (2q+2) x (2q+1) OA.

show_paleyHad shows the Hadamard matrix run sizes that can be obtained with the constructions, and the corresponding values of k and q, as well as the smallest number for a strength 3 array in the same number of 2-level columns according to the Colbourn tables (currently-known upper bound for CAN) with the corresponding source entry.

References

Colbourn (2015), Colbourn and Keri (2009)

Examples

## examples for paleyCA

## Paley-based CA that is optimal
D <- paleyCA(t=4, k=67)
dim(D)
caverify::ca_verify(D, 4)
eCAN(4, 67, 2)
# as good as the optimum cyclotomy construction
# (and actually the same)

## other Paley-related functions
# conference matrix (square q x q matrix with diagonal 0)
conference_paley(5)
# paley matrix (square q x q matrix with diagonal 0)
paley_mat(5)

## Hadamard matrix based OAs
# paley construction I for N=12
D12I <- paleyHad(11)
# paley construction II for N=12
D12II <- paleyHad(5)
# they are not the same
table(D12I - D12II)
# but they have the same coverage properties
coverage(D12I, 3)
coverage(D12I, 4)
coverage(D12II, 3)
coverage(D12II, 4)
# paleyHad(13) of construction II
# and paleyHad(27) of construction I for N=28
# have different coverage properties
# for t=4

show_paleyHad(maxN=36)
  # there is no paley construction for N=16
  # but there is a CA(3,14,2) in 16 runs based on a
  # Hadamard matrix in 16 runs, which can be obtained
  # from package FrF2 as pb(16, nfactors=14)
show_paleyHad(minN=100, maxN=150)


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