# Covering arrays in plain words

## The question

If a machine has many switches, how few tests are enough so that every on/off pattern of any four switches shows up in at least one test?

## Why it matters

Each row of a covering array is one test run, so fewer rows mean a cheaper test plan with the same coverage.

## What answering it would help with

Knowing the terms lets a reader check any array in this book, or one of their own, without trusting us.

## What our research shows

A binary covering array of strength four is a table of 0s and 1s in which any four columns show all 16 patterns; a computer can check this by looking at every choice of four columns.

Suppose a machine has 200 switches, each on or off, and you want to test it. Trying every setting is impossible: there are 2 to the power 200 of them. A cheaper aim is this: whatever four switches you pick, every one of their 16 on/off patterns should show up in at least one test.

A **binary covering array of strength four** is a table that does exactly that.

- Each **row** is one test. The number of rows is the cost; we call it the number of runs.
- Each **column** is one switch. The number of columns is the width.
- Each entry is 0 or 1.
- **Strength four** means: in any four columns, all 16 patterns of 0s and 1s appear among the rows.

For a table with k columns there are k(k-1)(k-2)(k-3)/24 choices of four columns. For 325 columns that is 456,326,325 choices, each with 16 patterns to find. A computer can check this by enumeration. No one needs to trust the table; anyone can write the check.

The aim is few rows for a given width. A wider array gives a narrower one by deleting columns, so run counts never rise as the width falls. Nobody knows the fewest rows possible at these widths. Counting arguments give lower limits on the number of rows, but they do not settle the smallest possible number.

The main collection of this family holds 29 arrays of strength four, one for each width from 200 to 206, for width 223 and for each width from 325 to 345. Chapter 5 says where they come from: all grow from Paley's 1933 construction. Chapters 5 to 16 add the theory of adding one more column to a finished table, and chapters 14 and 15 describe further arrays and small exact cases.

### Yesterday, today, tomorrow

**Yesterday.** Counting bounds for the exact-coverage relatives of covering arrays, called orthogonal arrays, go back to Rao (1947), and Kleitman and Spencer (1973) gave lower-bound inequalities for binary covering arrays, as surveyed by Lawrence, Kacker, Lei, Kuhn and Forbes (2011). These bounds do not settle the smallest possible numbers of rows, which remain unknown.

**Today.** The terms are explained above, and recipe 2 of the check guide runs the check by enumeration. I supply 29 arrays, for widths 200 to 206, 223 and 325 to 345, that anyone can check this way, and anyone may share them (CC BY 4.0).

**Tomorrow.** A reader with no special background can write the check and see the result for themselves. The question of the fewest rows possible at these widths stays open for anyone to work on.

## Check it yourself

Recipe 2 of the [check guide](../VERIFY.md) tests every choice of four columns of an array; recipe 1 checks the fingerprints.

## Where to go next

- Where do the 29 arrays come from, and may I share them? [Chapter 5: room for one more column](05-room-for-one-more-column.md).
- Can a finished table take one more column? [Chapter 5: room for one more column](05-room-for-one-more-column.md).
