| Ns | R Documentation |
The functions extract the number of runs needed for a specified setting according to the Colbourn tables (Colbourn without year) or the more current Smolen tables (Smolen 2026), according to the NIST library of CAs and the Torres-Jimenez library of CAs, as well as according to implemented constructions and available catalogues. Or they extract the number of columns achievable for a specified number of runs.
eCAN(t, k, v, frozen=TRUE)
eCAK(t, N, v, frozen=TRUE)
Ns(t, k, v, exclude=NULL, noderive=FALSE, nofuse=FALSE, maxfuse=NULL,
noadd1=FALSE, maxadd1=1, frozen=TRUE)
Ns_derive(t, k, v, exclude=NULL, nofuse=TRUE, maxfuse=NULL,
noadd1=TRUE, maxadd1=1, Ndirect=NULL, frozen=TRUE)
Ns_add1(t, k, v, maxadd1=1, frozen=TRUE, ...)
Ns_fuse(t, k, v, maxfuse = 1, frozen=TRUE)
N_fuseBoseCA(t,k,v)
N_fuseBushtCA(t,k,v)
Ns_CK_doubling(t=3, k, v, frozen=TRUE)
Ns_productCA(t=2, k, v, frozen=TRUE)
N_NISTcat(t, k, v)
N_TJcat(t, k, v)
N_WKScat(t=6, k, v=2)
N_CKRScat(t, k, v)
N_miscCAcat(t, k, v)
N_DWYERcat(t, k, v)
N_PALEYcat(t, k, v=2)
N_CYCLOTOMYcat(t, k, v)
N_CAEX(t=2, k, v=3)
N_recBoseCA(t=2, k, v, type="PCA")
N_projBoseCA(t=2, k, v, cmax=3)
N_SCA_Busht(t, k, v)
N_dpCA(t=2, k, v)
N_pcaCA(t=2, k, v)
ks(t, N, v, frozen=TRUE)
ks_productCA(t=2, N, v, frozen=TRUE)
k_NISTcat(t, N, v)
k_TJcat(t, N, v)
k_WKScat(t=6, N, v=2)
k_CKRScat(t, N, v)
k_miscCAcat(t, N, v)
k_DWYERcat(t, N, v)
k_PALEYcat(t, N, v=2)
k_CYCLOTOMYcat(t, N, v)
k_CAEX(t=2, N, v=3)
k_fuseBoseCA(t=2, N, v)
k_fuseBushtCA(t,N,v)
k_recBoseCA(t=2, N, v, type="PCA")
k_SCA_Busht(t, N, v)
k_dpCA(t=2, N, v)
k_pcaCA(t=2, N, v)
t |
coverage strength |
k |
number of columns |
v |
number of levels for each column |
exclude |
|
noderive |
logical; if |
nofuse |
logical; if |
maxfuse |
integer number of levels to fuse (i.e., difference between number of levels before and after fusing) |
noadd1 |
logical; if |
maxadd1 |
integer; maximum number of |
frozen |
logical; if |
Ndirect |
|
N |
number of runs |
type |
character string: |
cmax |
integer number: maximum |
... |
allows to propagate arguments to |
Functions eCAN and eCAK provide the current best N for a given k
and vice versa, according to the Colbourn tables, including source information as stated in those tables.
Functions Ns and ks provide the respective run sizes for
a requested number of columns k (Ns) or the affordable numbers
of columns from an affordable run size N (ks). They take into account all available
catalogues and constructions, for which sizes can be easily provided; their
scope will grow with time, and Ns is prioritized over ks, as it is considered
more important for applications.
Ns also contains
the best derived entry (label <construction>:derive, derived
once from the best strength t+1 source with k+1 columns, which itself is neither derived
nor eCAN),
and the best fused entry (label <construction> with ":fuse" appended
for each fuse step, fusing from up to maxfuse more levels; fuse ingredients can be derived,
(label <construction>:derive:fuse, as deriving before fusing is more effective),
#' but not from adding a column, because adding a column is cheaper after fusion)
and the best add1 entry (label <construction> with ":add1" appended
for each application of add1Column, starting from up to maxadd1 fewer columns;
add1 ingredients can be derived or fused nor add1ed).
Entry eCAN is always last. Constructions that need ingredient sizes
call Ns or bestN with noderive=TRUE, nofuse=TRUE, noadd1=TRUE.
Functions Ns_derive, Ns_fuse, Ns_add1, Ns_CK_doubling,
Ns_productCA
provide run sizes from deriving, fusing, doubling or taking the product with
the smallest possible strength 2 CA for the requested v
in comparison to run sizes without applying such techniques. In case of doubling,
the function is restricted to strength $t=3$ (the only strength for which
Chateauneuf-Kreher doubling works) with $v=2,3$, for which a natural choice of a
the strength 2 design D2 for CK_doubling is known (implemented
in functions KSK and CAEX, respectively).
Functions ks_derive and ks_fuse provide affordable
numbers of columns from an affordable run size N;
for doubling, this is more complicated and has not yet been implemented.
Specific functions for run sizes N and
numbers of columns k can also be inspected separately.
The functions typically look for a value of k for at most
N runs, and a value of N for at least k columns.
The functions look for the exact strength t; this implies that a CA for a higher strength may exist,
where none is implemented for a lower strength.
At present, the individual functions,
except for eCAN and eCAK, return a number only.
This may change in the future.
For the TJcat-related functions, a message provides the command for
creating the CA, if a creation from within the package is possible (with one of
functions CAEX or SCA_Bose).
eCAN returns a data frame with the smallest known run size
(empirical CAN, based on the Colbourn table)
and the corresponding source entry (Source),
eCAK does the same with the largest possible number of columns k,
N_NISTcat returns the smallest run size for the requested k of a
catalogued array from the publicly available NIST covering array library,
k_NISTcat returns the maximum column size for the requested N of a
catalogued array from the publicly available NIST covering array library,
and N_TJcat returns the smallest run size for the requested k of a
catalogued array from the Jose Torres-Jimenez library (as of Feb 6 2025, small
selection, which is expected to grow; partly available in this package),
and k_TJcat returns the largest number of columns k for the requested N
of a catalogued array from the Jose Torres-Jimenez library (as of Feb 6 2025, small
selection, which is expected to grow; partly available in this package)
The analogous functionality holds for N_ and k_ functions for
DWYERcat, CKRScat, miscCAcat, WKScat and CYCLOTOMYcat, also for
CS_MS, CS_LCDST, CS_CK and various other constructions.
.
In cases for which there is no entry in the respective
table or library, the returned results are missing values.
Colbourn (without year) and Smolen (2026) for eCAN and eCAK,
many other sources for the specific constructions
eCAN(3, 199, 2)
N_NISTcat(3, 199, 2)
N_CK_doublingCA(3, 199, 2) ## equals the best-known size
N_TJcat(3, 199, 2) ## there is a 43 run array by TJ,
## but it is not stored in the package,
## as unnecessary array storage is avoided
eCAN(4, 199, 2)
N_TJcat(4, 199, 2) ## Colbourn table outdated
bestN(4, 199, 2, exclude="TJ") ## slightly worse than Colbourn table
bestN(4, 199, 2, exclude="TJ", internet=FALSE)
eCAK(2,11,3) ## also obtained by CAEX
k_NISTcat(2,11,3)
bestN(2,5,3)
bestN(2,5,3, exclude="CAEX") ## CS_MS also yields it
k_TJcat(2,11,3) ## equals the best-known array
N_CYCLOTOMYcat(3, 45, 3) ## t=3 and v=3 not implemented
N_CYCLOTOMYcat(4, 45, 3) ## N=669
k_CYCLOTOMYcat(4, 669, 3) ## can accommodate 224 columns
N_CYCLOTOMYcat(4, 5, 3) ## is the smallest *implemented*
## cyclotomy strength 4 CA for 3 levels
N_CYCLOTOMYcat(4, 670, 3) ## the next smallest is for 1051 columns
eCAN(4, 670, 3) ## which is a current optimum
# overview of available constructions
Ns(2, 45, 2) ## function KSK is known to yield the overall optimum
## projBoseCA is very unsuitable, but Ns uses N_projBoseCA with cmax=Inf
N_projBoseCA(2, 45, 2, cmax=25)
N_projectionBose(45, 2)
Ns(2, 16, 11) ## CS_LCDST is the best,
## projBoseCA and CS_MS are competitive
Ns(2, 40, 12) ## pcaCA and dpCA are the best,
Ns(3, 45, 2) ## the best array is in the TJ or the DWYER-catalogue
## CK_doublingCA is close
Ns(3, 400, 2) ## powerCT construction is best
Ns(2, 800, 3) ## function CAEX produces the best available array
Ns(3, 200, 3) ## cphfCA is best implemented
eCAN(3, 200, 3) # not implemented
Ns(4, 150, 3) ## cyclotomy is very competitive
Ns(4, 150, 2) ## TJ is best (function tjCA)
Ns(4, 50, 2) ## Paley and Cyclotomy are the same, and both optimal
Ns(5, 50, 2) ## CS_CK and Paley are optimal
Ns(6, 50, 2) ## WKS is optimal
# WKS_CAs['50']; bestCA(6, 50, 2)
Ns(6, 200, 2) ## CS_CK and Paley are optimal
Ns(4, 50, 3) ## the best easily available CA is
# https://github.com/aadwyer/CA_Database/blob/main/Repository/CA/CA_507_4_53_3.txt
eCAN(4, 50, 3) ## the Torres-Jimenez group
## does not share most of their arrays
Ns(6, 200, 3) ## powerCT is best implemented,
## but far worse than optimum
eCAN(6, 200, 3) ## again, the Torres-Jimenez group
## does not share most of their arrays
Ns_CK_doubling(3, 22, 2)
## with doubling a Paley design for ceiling(22/2) columns,
## the optimum run size can be achieved
## (obtained also directly with CK_doublingCA)
Ns_CK_doubling(3, 12, 3)
## the direct CKRS construction is best (ckrsCA)
Ns(5,7016, 3) ## adding 3 columns would help
Ns(5,7016, 3, maxadd1=3) ## but a good ingredient
## is missing
## run time a bit larger because of larger
## non-prime number of levels
Ns(3, 381, 15)
eCAN(3, 381, 15)
## achieve eCAN by increasing maxfuse
Ns(3, 381, 15, maxfuse=4)
## runs for about a minute on my machine
D <- bestCA(3,381,15,maxfuse=4)
dim(D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.