reduce_rows_complete: Reducing the number of rows for an SeqCA

View source: R/reduce_rows.R

reduce_rows_completeR Documentation

Reducing the number of rows for an SeqCA

Description

by covering all t-orders that are missing after removing a certain row through rearrangements of redundant elements in other rows

Usage

reduce_rows_complete(A, t, verbose=FALSE, ...)

reduce_rows_iterative_complete(A, t, verbose=FALSE, ...)

Arguments

A

a sequence covering array (SeqCA) with k columns and elements 1,...,k in each row

t

the strength for which the coverage of all permutations of length t must be guaranteed for all combn(k,t) t-element subsets of 1,...,k

verbose

logical; if TRUE, printed output is more detailed

...

currently not used

Value

an SeqCA with attributes

Details

This can likely be made faster by first ordering the rows in decreasing order of the count_effective attribute of coverage.

Use of AI

Claude 4 was heavily involved in the development of these functions.

Examples

# a naive greedy SeqCA
A <- greedySeqCA_naive(6, 4, seed=17)
dim(A)  ## 67 rows
coverageSeqCA(A, 4) ## perfect coverage

  ## somewhat slow (about 60s on my machine)
  Areduced <- reduce_rows_iterative_complete(A, 4)
  dim(Areduced)  ## 42 runs, i.e. reduced by about 1/3
  coverageSeqCA(Areduced,4)   ## still perfect coverage



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