# Costas array

In mathematics, a Costas array can be regarded geometrically as a set of n points lying on the squares of a n×n checkerboard, such that each row or column contains only one point, and that all of the n(n − 1)/2 displacement vectors between each pair of dots are distinct. This results in an ideal 'thumbtack' auto-ambiguity function, making the arrays useful in applications such as sonar and radar. Costas arrays can be regarded as two-dimensional cousins of the one-dimensional Golomb ruler construction, and, as well as being of mathematical interest, have similar applications in experimental design and phased array radar engineering.

Costas arrays are named after John P. Costas, who first wrote about them in a 1965 technical report. Independently, Edgar Gilbert also wrote about them in the same year, publishing what is now known as the logarithmic Welch method of constructing Costas arrays.[1]

## Numerical representation

A Costas array may be represented numerically as an n×n array of numbers, where each entry is either 1, for a point, or 0, for the absence of a point. When interpreted as binary matrices, these arrays of numbers have the property that, since each row and column has the constraint that it only has one point on it, they are therefore also permutation matrices. Thus, the Costas arrays for any given n are a subset of the permutation matrices of order n.

Arrays are usually described as a series of indices specifying the column for any row. Since it is given that any column has only one point, it is possible to represent an array one-dimensionally. For instance, the following is a valid Costas array of order N = 4:

 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 0

There are dots at coordinates: (1,2), (2,1), (3,3), (4,4)

Since the x-coordinate increases linearly, we can write this in shorthand as the set of all y-coordinates. The position in the set would then be the x-coordinate. Observe: {2,1,3,4} would describe the aforementioned array. This makes it easy to communicate the arrays for a given order of N.

## Known arrays

All Costas array orders are known for orders 1 through 29[2][3][4][5] Enumeration is as in the following table.

Order Number
1 1
2 2
3 4
4 12
5 40
6 116
7 200
8 444
9 760
10 2160
11 4368
12 7852
13 12828
14 17252
15 19612
16 21104
17 18276
18 15096
19 10240
20 6464
21 3536
22 2052
23 872
24 200
25 88
26 56
27 204
28 712
29 164

Enumeration of known Costas arrays to order 200,[2] order 500[6] and to order 1030 [7] are available. Although these lists and databases of these Costas arrays are likely near complete, other Costas arrays with orders above 29 that are not in these lists may exist.

## Constructions

### Welch

A Welch–Costas array, or just Welch array, is a Costas array generated using the following method, first discovered by Edgar Gilbert in 1965 and rediscovered in 1982 by Lloyd R. Welch. The Welch–Costas array is constructed by taking a primitive root g of a prime number p and defining the array A by ${\displaystyle A_{i,j}=1}$ if ${\displaystyle j\equiv g^{i}{\bmod {p}}}$, otherwise 0. The result is a Costas array of size p − 1.

Example:

3 is a primitive element modulo 5.

31 = 3
32 = 9 = 4 (mod 5)
33 = 27 = 2 (mod 5)
34 = 81 = 1 (mod 5)

Therefore, [3 4 2 1] is a Costas permutation. More specifically, this is an exponential Welch array. The transposition of the array is a logarithmic Welch array.

The number of Welch–Costas arrays which exist for a given size depends on the totient function.

### Lempel–Golomb

The Lempel–Golomb construction takes α and β to be primitive elements of the finite field GF(q) and similarly defines ${\displaystyle A_{i,j}=1}$ if ${\displaystyle \alpha ^{i}+\beta ^{j}=1}$, otherwise 0. The result is a Costas array of size q − 2. If α + β = 1 then the first row and column may be deleted to form another Costas array of size q − 3: such a pair of primitive elements exists for every prime power q>2.

### Extensions by Taylor, Lempel, and Golomb

Generation of new Costas arrays by adding or subtracting a row/column or two with a 1 or a pair of 1's in a corner were published in a paper focused on generation methods[8] and in Golomb and Taylor's landmark 1984 paper[9]

More sophisticated methods of generating new Costas arrays by deleting rows and columns of existing Costas arrays that were generated by the Welch, Lempel or Golomb generators were published in 1992.[10] There is no upper limit on the order for which these generators will produce Costas arrays.

### Other methods

Two methods that found Costas arrays up to order 52 using more complicated methods of adding or deleting rows and columns were published in 2004[11] and 2007[12]

## Notes

1. ^ Costas (1965); Gilbert (1965); An independent discovery of Costas arrays, Aaron Sterling, October 9, 2011.
2. ^ a b James K Beard, Generating Costas Arrays to Order 200, 2006 40th Annual Conference on Information Sciences and Systems, (CISS) 2006, March 23, 2006, DOI: 10.1109/CISS.2006.286635
3. ^ Konstantinos Drakakis, Scott Rickard, James K Beard, Rodrigo Caballero, Francesco Iorio, Gareth O'Brien and John Walsh, Results of the Enumeration of Costas Arrays of Order 27, IEEE Transactions on Information Theory, Volume: 54, Issue: 10, Oct. 2008, DOI: 10.1109/TIT.2008.928979
4. ^ K Drakakis, F Iorio, S Rickard, The enumeration of Costas arrays of order 28 and its consequences, Adv. in Math. of Comm., 2011
5. ^ K Drakakis, F Iorio, S Rickard, J Walsh, Results of the Enumeration Of Costas Arrays Of Order 29, – Adv. in Math. of Comm., Volume 5, No. 3, 2011, 547–553, DOI: 10.3934/amc.2011.5.547
6. ^ James K Beard, Costas array generator polynomials in finite fields, 42nd Annual Conference on Information Sciences and Systems (CISS 2008), April 20, 2008, DOI: 10.1109/CISS.2008.455870
7. ^ http://jameskbeard.com/jameskbeard/Files.html#CostasArrays
8. ^ Solomon Golomb, Algebraic constructions for Costas arrays, J. Comb. Theory Series A, volume 7 (1984), pp 1143–1163
9. ^
10. ^ Solomon W. Golomb, The T_4and G_4 Constructions for Costas Arrays, IEEE Transactions on Information Theory, volume 38 (1992), pp 1404–1406.
11. ^ Scott Rickard, Searching for Costas Arrays using Periodicity Properties, IMA International Conference on Mathematics in Signal Processing (2004)
12. ^ James K. Beard, Jon C. Russo and Keith G. Erickson and Michael C. Monteleone and Michael T. Wright, Costas array generation and search methodology, IEEE Transactions on Aerospace and Electronic Systems, volume 43 number 2, April 2007, pp 522–538, DOI: 10.1109/TAES.2007.4285351