| MTVTRouxtypeCA | R Documentation |
based on Section 4 of Martirosyan and van Trung (2004). The functions obtain a strength 4 or strength 5 CA in 2k columns at v levels each from several smaller arrays.
MTVTRouxtypeCA(t, k, v, method=NULL, ...)
N_upper_MTVTRouxtypeCA(t, k, v, method=NULL, theoretical=FALSE, ...)
t |
4 or 5: strength of the CA |
k |
positive integer: number of columns in the result |
v |
positive integer: number of levels |
method |
|
... |
currently not used |
theoretical |
logical: if TRUE, N is calculated from the best known CAs, not from the best implemented ones |
Function MTVTRouxtypeCA returns a strength t CA with k columns at v levels each, as requested.
N_upper_MTVTRouxtypeCA returns the size of the constructed CA before removing duplicates.
The constructions are based on a strength t CA A, a strength t-1 CA B, a strength t-2 CA C
and, for one of the strength 4 constructions (with Theorem 4.3) as well as for the strength 5 construction,
a strength 2 CA D.
These ingredient CAs have c columns at v levels, where c=ceiling(k/2), except
for Theorem 4.3, where D has v columns at v levels.
The construction for strength 4 is based on Theorem 4.13 (default) or on request on Theorem 4.3 (may be better for large k).
The construction for strength 5 is based on Theorem 4.13 (default) or on request on Theorem 4.11 (may be better for large k).
Function MTVTRouxtypeCA implements the constructions of Section 4 from Martirosyan and van Trung (2004).
It uses internal workhorse functions that correspond to the different theorems of the section.
Note that the constructions are of the so-called Roux type, i.e., recursive with several
CA ingredients. Such constructions are competitive for very large scenarii only, and when
they get good ingredients.
WARNING: Many ingredients for large situations in this package are (at present) quite poor,
and it is easy to bring the computer to the brink of crash or beyond by naively requesting
a CA of strength 5 for 2000 columns. If in doubt,
check the expected size with N_upper_MTVTRouxtypeCA; on the author's Windows machine,
the creation of a CA(172792, 5, 1000, 4) by the command MTVTRouxtypeCA(5, 1000, 4)
was successful after 10 minutes (about half of which were used for the creation of the
largest ingredient with the command powerCA(5, 500, 4)) and produced an object
of size 1.4GB, with large RAM usage during the slow array generation.
Furthermore, note that the creation of many or even most large arrays requires
an internet connection, as arrays from the NIST (2008) library are involved as
ingredients (in the above case, as ingredients to the powerCA construction;
without an internet connection, the ingredient size would more than double).
Large arrays are not a priority of this package, so that this situation may remain
unchanged for a long time.
Martirosyan and van Trung (2004), NIST (2008)
dim(D <- MTVTRouxtypeCA(4, 12, 3))
N_upper_MTVTRouxtypeCA(4,12,3) ## two duplicates were removed
N_upper_MTVTRouxtypeCA(4,12,3, theoretical=TRUE) ## ingredients are optimal
coverage(D, 4)
Ns(t=4, k=12, v=3) ## D is far from optimal
## the method is not part of Ns
## the other method is worse for small k
dim(Dworse <- MTVTRouxtypeCA(4,12,3, method="large"))
N_upper_MTVTRouxtypeCA(4,12,3, method="large") ## 32 duplicates were removed
coverage(Dworse, 4)
dim(D5 <- MTVTRouxtypeCA(5, 10, 4))
N_upper_MTVTRouxtypeCA(5, 10, 4) ## 48 duplicates were removed
caverify::ca_verify(D5, 5)
Ns(t=5, k=10, v=4) ## run size of D5 is far from optimal
dim(D6 <- MTVTRouxtypeCA(5, 10, 4, method="large"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.