Algorithm Search⌘K

Definitioncore

Barker code

Also called Barker sequence.

A binary sequence whose aperiodic autocorrelation sidelobes are at most 1 in magnitude. Barker codes exist for lengths 2, 3, 4, 5, 7, 11 and 13, and no longer one is known.

A Barker code is a sequence of +1+1 and −1-1 whose aperiodic autocorrelation has every sidelobe equal to 0 or of magnitude 1, the least possible for a binary sequence. As a binary phase-coded waveform, it gives pulse compression with sidelobes 20log⁡10(1/N)20\log_{10}(1/N) below the peak, −22.28-22.28 dB for the longest known code, of length 13. Barker codes exist for the lengths 2, 3, 4, 5, 7, 11 and 13. No Barker code of odd length above 13 exists, and none of even length between 14 and 4×10334 \times 10^{33}. The polyphase Frank code and the frequency hopping Costas array are codes of other kinds, chosen for longer lengths and for Doppler.

Definition

Barker sequence. A sequence a0,…,aN−1a_0, \dots, a_{N-1} with every an∈{+1,−1}a_n \in \{+1, -1\} is a Barker sequence if its aperiodic autocorrelation

r[k]=∑n=0N−1−kan+k anr[k] = \sum_{n=0}^{N-1-k} a_{n+k}\, a_n

satisfies ∣r[k]∣≤1|r[k]| \le 1 for 1≤k≤N−11 \le k \le N - 1.

Parity. r[k]r[k] is a sum of N−kN - k terms equal to ±1\pm 1, so it has the parity of N−kN - k. So in a Barker sequence r[k]=0r[k] = 0 when N−kN - k is even and r[k]=±1r[k] = \pm 1 when N−kN - k is odd, and r[N−1]=aN−1a0=±1r[N-1] = a_{N-1} a_0 = \pm 1 always. No binary sequence of length N≥2N \ge 2 has a peak sidelobe below 1, so Barker sequences are the best possible.

Equivalence. Negating every term, reversing the order, and multiplying ana_n by (−1)n(-1)^n all keep ∣r[k]∣|r[k]|, so they map Barker sequences to Barker sequences.

The known codes. Up to these operations:

NN Code r[0],r[1],…,r[N−1]r[0], r[1], \dots, r[N-1] Peak sidelobe Merit factor
2 +−+ - 2,−12, -1 −6.02-6.02 dB
3 ++−+ + - 3,0,−13, 0, -1 −9.54-9.54 dB 4.5
4 ++−++ + - + 4,−1,0,14, -1, 0, 1 −12.04-12.04 dB 4.0
4 +++−+ + + - 4,1,0,−14, 1, 0, -1 −12.04-12.04 dB 4.0
5 +++−++ + + - + 5,0,1,0,15, 0, 1, 0, 1 −13.98-13.98 dB 6.25
7 +++−−+−+ + + - - + - 7,0,−1,0,−1,0,−17, 0, -1, 0, -1, 0, -1 −16.90-16.90 dB 8.17
11 +++−−−+−−+−+ + + - - - + - - + - 11,0,−1,0,−1,…,−111, 0, -1, 0, -1, \dots, -1 −20.83-20.83 dB 12.1
13 +++++−−++−+−++ + + + + - - + + - + - + 13,0,1,0,1,…,113, 0, 1, 0, 1, \dots, 1 −22.28-22.28 dB 14.08

The merit factor is N2/(2∑k≥1r[k]2)N^2 / (2\sum_{k \ge 1} r[k]^2). The value 14.08 of the code of length 13 is the largest known for any binary sequence. An exhaustive search over all 2N2^N sequences of each length N≤16N \le 16 finds 4 Barker sequences of each length 2, 3, 5, 7, 11 and 13, 8 of length 4, and none of the other lengths.

Which lengths exist (theorems). Turyn and Storer proved in 1961 that no Barker sequence of odd length above 13 exists. A Barker sequence of even length N>4N > 4 must have N=4u2N = 4u^2 for an odd uu, and number theoretic conditions on uu, checked by computer, rule out every such length up to 4×10334 \times 10^{33}. It is conjectured, but not proved, that no Barker sequence longer than 13 exists.

Examples and non-examples

Barker 13 in a radar. Thirteen chips of 1 µs with phases 0 and π form a pulse of 13 µs with a bandwidth of about 1 MHz. The matched filter output has a peak of 13, sidelobes of magnitude 1 at −22.28-22.28 dB, a range resolution of about ctc/2=149.9c t_c/2 = 149.9 m, and a compression ratio of 13.

Doppler. A Doppler shift ν\nu turns the phase by 2πνT2\pi\nu T across the pulse. Computed with one sample per chip, the code of length 13 keeps a peak of 0.90 and a peak sidelobe of −10.63-10.63 dB below it at νT=0.25\nu T = 0.25, and a peak of 0.64 with sidelobes only 2.992.99 dB lower at νT=0.5\nu T = 0.5. Barker codes are for targets with νT\nu T well below 1/41/4.

Periodic use. Repeated without gaps, the code of length 13 has the periodic autocorrelation 13,1,1,…,113, 1, 1, \dots, 1. Its periodic sidelobes are all 1, which is not as good as the −1-1 of a maximal length sequence of length 2m−12^m - 1.

Compound Barker codes. The Kronecker product of two Barker codes, each chip of one code replaced by the whole other code with its sign, is a longer binary code. The product of the codes of length 13 and 13 has 169 chips and a peak sidelobe of 13, the same −22.28-22.28 dB as the code of length 13. The product of the codes of lengths 5 and 13 has 65 chips and a peak sidelobe of 13, which is −13.98-13.98 dB. Compound codes give more energy and more compression, not lower sidelobes.

Non-example: a maximal length sequence of length 15. It is binary and has ideal periodic autocorrelation, but its aperiodic peak sidelobe is 3 at best over its cyclic shifts, so it is not a Barker sequence.

Non-example: polyphase codes. A sequence of complex numbers of magnitude 1 with sidelobes at most 1 is a generalized or polyphase Barker sequence. Such sequences exist for many lengths above 13, but they are not binary.

Non-example: a length of 6. No binary sequence of length 6 is a Barker sequence. Every sequence of length 6 has some ∣r[k]∣≥2|r[k]| \ge 2.

  • Phase-coded waveform. The Barker code is the best known binary phase-coded waveform for short pulses.
  • Mismatched filter. A mismatched filter of 39 taps lowers the sidelobes of the code of length 13 from −22.28-22.28 dB to −38.47-38.47 dB at a loss of 0.204 dB.
  • Spread spectrum. The code of length 11 is the spreading code of the 1 and 2 Mbit/s rates of IEEE 802.11 direct sequence spread spectrum, where its low sidelobes help symbol timing.
  • Frank code. The Frank code reaches lower peak sidelobes at lengths of 16 and more, with more than two phases.
  • Costas array. A Costas array is the frequency hopping analog: a permutation whose two-dimensional autocorrelation has sidelobes of at most 1.

References

  1. R. H. Barker, Group synchronizing of binary digital systems, pp. 273 to 287 (binary sequences whose aperiodic autocorrelation sidelobes are 0 or of magnitude 1, used as synchronization words)
  2. R. Turyn and J. Storer, On binary sequences, Proceedings of the American Mathematical Society 12(3), 1961, pp. 394 to 399 (no Barker sequence of odd length greater than 13 exists)
  3. Peter Borwein and Michael J. Mossinghoff, Wieferich pairs and Barker sequences, II, LMS Journal of Computation and Mathematics 17(1), 2014, pp. 24 to 32 (the computation that rules out the remaining lengths of Barker sequences up to a very large bound)
  4. Kai-Uwe Schmidt, Sequences with small correlation, Designs, Codes and Cryptography, 2016, the section on Barker sequences (the necessary form 4u squared of a longer Barker sequence and the bound of 4 times 10 to the 33 for its length)
  5. Nadav Levanon and Eli Mozeson, Radar Signals, Wiley, 2004, Chapter 6, Phase-Coded Pulse (the Barker codes and their ambiguity functions)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/5QPDZX/text.yaml