ArticleslgStudy

computer science

BCJR algorithm

BCJR algorithm 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 BCJR algorithm rather than just read about it. In short: The Bahl-Cocke-Jelinek-Raviv (BCJR) algorithm is an algorithm for maximum a posteriori decoding of error correcting codes defined on trellises (principally convolutional codes). The algorithm was introduced in 1974 by Lalit R.

Key takeaways

  • BCJR algorithm 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 BCJR algorithm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of BCJR algorithm from memory before moving on to harder problems.

Reference excerpt

The Bahl-Cocke-Jelinek-Raviv (BCJR) algorithm is an algorithm for maximum a posteriori decoding of error correcting codes defined on trellises (principally convolutional codes). The algorithm was introduced in 1974 by Lalit R. Bahl, John Cocke, Frederick Jelinek and Josef Raviv, whose surnames give it its name. It applies to both linear block codes and convolutional codes. BCJR-based decoders provide soft outputs, which express the relative probabilities of possible symbol values. They are used as component decoders in iterative turbo decoding.

Algorithm The algorithm combines a forward pass and a backward pass through the trellis. Let Sk denote the encoder state at time k, and y1N=(y1,…,yN) the received sequence. Its metrics are

αk(s)=P(Sk=s,y1k),βk(s)=P(yk+1N∣Sk=s),γk(s′,s)=P(Sk=s,yk∣Sk−1=s′). For continuous observations, the corresponding probability densities are used. The branch metric γk incorporates the channel observation and the prior probability of the transition. The forward and backward recursions are

αk(s)=∑s′αk−1(s′)γk(s′,s), βk−1(s′)=∑sγk(s′,s)βk(s). Initialisation reflects the available information about the encoder's initial and final states. The posterior probability of a transition is proportional to

P(Sk−1=s′,Sk=s∣y1N)∝αk−1(s′)γk(s′,s)βk(s). Summing over transitions associated with a particular input symbol and normalising gives that symbol's posterior probability.

Steps involved Based on the trellis:

Compute forward probabilities α Compute backward probabilities β Compute smoothed probabilities based on other information (i.e. noise variance for AWGN, bit crossover probability for binary symmetric channel)

Variations

SBGT The simplified Berrou-Glavieux-Thitimajshima (SBGT) algorithm retains the structure of the BGT formulation while removing redundant divisions from its forward and backward recursions.

Log-MAP and Max-Log-MAP The Log-MAP algorithm performs the BCJR calculations in the logarithmic domain. This replaces probability multiplications with additions and reduces numerical difficulties associated with very small probabilities. When evaluated exactly, Log-MAP is equivalent to the probability-domain MAP algorithm. Max-Log-MAP simplifies the calculations further by approximating a logarithm of a sum of exponentials with the largest exponent; this approximation can reduce decoding accuracy. The distinction is expressed by the identity

ln⁡(ex+ey)=max⁡(x,y)+ln⁡(1+e−|x−y|). Log-MAP retains the correction term ln⁡(1+e−|x−y|), whereas Max-Log-MAP omits it.

Windowed BCJR A modified version that processes the trellis in segments to reduce computational complexity and memory requirements. This approach is particularly useful for very long sequences where full trellis storage becomes impractical. The windowed version maintains near-optimal performance while significantly lowering latency and hardware resource utilization in implementations.

Implementations Susa framework implements BCJR algorithm for forward error correction codes and channel equalization in C++.

See also Forward–backward algorithm Maximum a posteriori (MAP) estimation Hidden Markov model

References

External links The online textbook: Information Theory, Inference, and Learning Algorithms, by David J.C. MacKay, discusses the BCJR algorithm in chapter 25. The implementation of BCJR algorithm in Susa signal processing framework

Worked examples

Example 1 — a first encounter with BCJR algorithm

Start with the simplest possible case. Write down what BCJR algorithm 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 BCJR algorithm 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 BCJR algorithm 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 BCJR algorithm

In research
BCJR algorithm 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 BCJR algorithm 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
BCJR algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Algorithms and data structures stubs, Error detection and correction, so understanding it makes those chapters shorter.
In everyday life
Look for BCJR algorithm 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 “BCJR algorithm” →

How to study BCJR algorithm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what BCJR algorithm 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 BCJR algorithm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is BCJR algorithm in simple terms?

The Bahl-Cocke-Jelinek-Raviv (BCJR) algorithm is an algorithm for maximum a posteriori decoding of error correcting codes defined on trellises (principally convolutional codes). The algorithm was introduced in 1974 by Lalit R.

Why does BCJR algorithm 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 BCJR algorithm?

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 BCJR algorithm.

Tags

  • Algorithms and data structures stubs
  • Error detection and correction

Keep exploring