ArticleslgStudy

computer science

Barker code

Barker code is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Barker code rather than just read about it. In short: In telecommunication technology, a Barker code or Barker sequence is a finite sequence of digital values with the ideal autocorrelation property. It is used as a synchronising pattern between the sender and receiver of a stream of bits.

Barker code — main illustration
Barker code — illustration

Key takeaways

  • Barker code belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Barker code to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Barker code from memory before moving on to harder problems.

Reference excerpt

In telecommunication technology, a Barker code or Barker sequence is a finite sequence of digital values with the ideal autocorrelation property. It is used as a synchronising pattern between the sender and receiver of a stream of bits. Apart from the trivial sequence of length 1, the known Barker sequences have lengths 2, 3, 4, 5, 7, 11 and 13. It is conjectured that no longer sequence exists; this is proved for odd lengths, while the possible existence of an even Barker sequence longer than 4 remains open.

Explanation A stream of binary digits carries no timing information by itself: the receiver cannot tell where one group of digits ends and the next begins. Transmitting a pre-arranged pattern of digits resolves this, provided the receiver can recognise that pattern reliably. In simple terms it is equivalent to attaching a label to one digit, after which the positions of the remaining digits follow by counting. Such a pattern is useful only if it is unlikely to be imitated by the surrounding data or by noise, and if a partial overlap between the received signal and the stored pattern gives a much weaker response than exact alignment. The relevant measure is the pattern's autocorrelation: the correlation of the pattern with a shifted copy of itself should be large at zero shift and small at every other shift, so that a correlator or matched filter in the receiver produces a sharp, unambiguous indication of the correct position. Barker sequences are the binary patterns for which these off-peak values are as small as possible; they are named after Ronald Hugh Barker, who set out this requirement for group synchronisation in 1953.

Origins and historical development Barker sequences originate in the problem of group synchronisation in early digital communication systems: a receiver presented with a continuous stream of binary digits must establish where each group of digits begins, and does so by recognising a pre-arranged pattern inserted into the stream. In a 1953 chapter on the group synchronising of binary digital systems, Ronald Hugh Barker argued that such a pattern should have an autocorrelation function with very low off-peak values, so that it can be recognised unambiguously by the detector and is unlikely to be imitated by a random series of noise-generated bits. Binary patterns with low off-peak autocorrelation proved useful both for synchronisation in data transmission and telemetry and, as binary phase codes, for pulse compression in radar. The question of which lengths admit such patterns was subsequently recast as a problem about binary sequences, cyclic difference sets and character sums, and was taken up by Richard Turyn, James Storer and later authors.

Definition

A Barker code or Barker sequence is a finite sequence of N values of +1 and −1,

aj for j=1,2,…,N with the ideal autocorrelation property, such that the off-peak (non-cyclic) autocorrelation coefficients

cv=∑j=1N−vajaj+v are as small as possible:

|cv|≤1 for all 1≤v<N. Apart from the trivial sequence of length 1, nine Barker sequences are known when sequences are identified up to negation and reversal, all of length N at most 13. A stricter equivalence that also identifies sequences related by alternating sign changes reduces this to seven representatives. Barker's 1953 chapter instead imposed the stronger, one-sided condition

cv∈{−1,0}. Only four of the known sequences satisfy this stricter condition; these are shown in bold in the table below. Since c0=N trivially, and for v>0 the sum cv consists of N−v terms each equal to +1 or −1, it follows that cv≡N−v(mod2). Consequently the smallest value |cv| can take is 0 when N−v is even and 1 when N−v is odd; a Barker sequence attains this minimum at every nonzero shift. The Barker property is unaffected by negating every term, by reversing the sequence, and (up to a sign change in cv) by alternating negation aj↦(−1)jaj; sequences related by these operations are usually treated as equivalent.

Known Barker codes Here is a table of all known nontrivial Barker codes, where negations and reversals of the codes have been omitted. Their off-peak aperiodic autocorrelations have magnitude no greater than 1. The question whether any further codes exist is discussed in the Barker sequence conjecture section.

Barker codes of length N equal to 11 and 13 are used in direct-sequence spread spectrum and pulse compression radar systems because of their low autocorrelation properties (the sidelobe level of amplitude of the Barker codes is 1/N that of the peak signal). A Barker code resembles a discrete version of a continuous chirp, another low-autocorrelation signal used in other pulse compression radars. The positive and negative amplitudes of the pulses forming the Barker codes imply the use of biphase modulation or binary phase-shift keying; that is, the change of phase in the carrier wave is 180 degrees. Similar to the Barker codes are the complementary sequences, which cancel sidelobes exactly when summed; the even-length Barker code pairs are also complementary pairs. There is a simple constructive method to create arbitrarily long complementary sequences. For the case of cyclic autocorrelation, other sequences have the same property of having perfect (and uniform) sidelobes, such as prime-length Legendre sequences, Zadoff–Chu sequences (used in 3rd- and 4th-generation cellular radio) and 2n−1 maximum length sequences (MLS). Arbitrarily long cyclic sequences can be constructed.

Barker sequence conjecture

The Barker sequence conjecture, often attributed to Richard Turyn, states that no Barker sequence has length greater than 13. The odd-length case has been settled; the remaining question is whether an even Barker sequence of length greater than 4 exists.

Odd lengths Turyn and Storer concluded in 1961 that, apart from the trivial length-1 case, an odd-length Barker sequence must have

N∈{3,5,7,11,13}. In 2014, Jürgen Willms exhibited counterexamples to an intermediate theorem used in their published proof, showing that the proof as written was incomplete. The classification itself remains valid: Peter Borwein and Tamás Erdélyi gave a different proof using Barker polynomials, and Schmidt and Willms later gave a new proof.

Even lengths and exclusion bounds A hypothetical even Barker sequence of length N>4 must have

… excerpt ends here. Continue reading the full article.

Illustrations

Barker code: Autocorrelation function of a Barker-7 code
Autocorrelation function of a Barker-7 code
Barker code: 3D Doppler radar spectrum showing a Barker code of 13
3D Doppler radar spectrum showing a Barker code of 13
Barker code: A Barker code transmitted using binary phase-shift keying
A Barker code transmitted using binary phase-shift keying

Worked examples

Example 1 — a first encounter with Barker code

Start with the simplest possible case. Write down what Barker code claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Barker code before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Barker code ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Barker code

In research
Barker code appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Barker code in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Barker code is common in secondary-school and first-year university syllabi. It links to neighbouring topics Binary sequences, Coding theory, Digital signal processing, so understanding it makes those chapters shorter.
In everyday life
Look for Barker code outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Barker code” →

How to study Barker code in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Barker code means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Barker code out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Barker code in simple terms?

In telecommunication technology, a Barker code or Barker sequence is a finite sequence of digital values with the ideal autocorrelation property. It is used as a synchronising pattern between the sender and receiver of a stream of bits.

Why does Barker code matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Barker code?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Barker code.

Tags

  • Binary sequences
  • Coding theory
  • Digital signal processing
  • Line codes
  • Radar
  • Wireless networking

Keep exploring