ArticleslgStudy

computer science

Forney algorithm

Forney 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 Forney algorithm rather than just read about it. In short: In coding theory, the Forney algorithm (or Forney's algorithm) calculates the error values at known error locations. It is used as one of the steps in decoding BCH codes and Reed–Solomon codes (a subclass of BCH codes).

Key takeaways

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

Reference excerpt

In coding theory, the Forney algorithm (or Forney's algorithm) calculates the error values at known error locations. It is used as one of the steps in decoding BCH codes and Reed–Solomon codes (a subclass of BCH codes). George David Forney Jr. developed the algorithm in 1965.

Procedure Need to introduce terminology and the setup... Code words look like polynomials. By design, the generator polynomial has consecutive roots αc, αc+1, ..., αc+d−2. Syndromes Error location polynomial

Λ(x)=∏i=1ν(1−xXi)=1+∑i=1νλixi The zeros of Λ(x) are X1−1, ..., Xν−1. The zeros are the reciprocals of the error locations Xj=αij. Once the error locations are known, the next step is to determine the error values at those locations. The error values are then used to correct the received values at those locations to recover the original codeword. In the more general case, the error weights ej can be determined by solving the linear system

s0=e1α(c+0)i1+e2α(c+0)i2+⋯ s1=e1α(c+1)i1+e2α(c+1)i2+⋯ ⋯ However, there is a more efficient method known as the Forney algorithm, which is based on Lagrange interpolation. First calculate the error evaluator polynomial

Ω(x)=S(x)Λ(x)(modx2t) Where S(x) is the partial syndrome polynomial:

S(x)=s0x0+s1x1+s2x2+⋯+s2t−1x2t−1. Then evaluate the error values:

ej=−Xj1−cΩ(Xj−1)Λ′(Xj−1) The value c is often called the "first consecutive root" or "fcr". Some codes select c = 1, so the expression simplifies to:

ej=−Ω(Xj−1)Λ′(Xj−1)

Formal derivative

Λ'(x) is the formal derivative of the error locator polynomial Λ(x):

Λ′(x)=∑i=1νi⋅λixi−1 In the above expression, note that i is an integer, and λi would be an element of the finite field. The operator ⋅ represents ordinary multiplication (repeated addition in the finite field) which is the same as the finite field's multiplication operator, i.e.

iλ=(1+…+1)λ=λ+…+λ. For instance, in characteristic 2, iλ=0,λ according as i is even or odd.

Derivation Lagrange interpolation Gill (n.d., pp. 52–54) gives a derivation of the Forney algorithm.

Erasures Define the erasure locator polynomial

Γ(x)=∏(1−xαji) Where the erasure locations are given by ji. Apply the procedure described above, substituting Γ for Λ. If both errors and erasures are present, use the error-and-erasure locator polynomial

Ψ(x)=Λ(x)Γ(x)

See also BCH code Reed–Solomon error correction

References

Forney, G. (October 1965), "On Decoding BCH Codes", IEEE Transactions on Information Theory, 11 (4): 549–557, doi:10.1109/TIT.1965.1053825, ISSN 0018-9448 Gill, John (n.d.), EE387 Notes #7, Handout #28 (PDF), Stanford University, pp. 42–45, archived from the original (PDF) on June 30, 2014, retrieved April 21, 2010 W. Wesley Peterson's book

Worked examples

Example 1 — a first encounter with Forney algorithm

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

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

How to study Forney algorithm in 20 minutes

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

Frequently asked questions

What is Forney algorithm in simple terms?

In coding theory, the Forney algorithm (or Forney's algorithm) calculates the error values at known error locations. It is used as one of the steps in decoding BCH codes and Reed–Solomon codes (a subclass of BCH codes).

Why does Forney 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 Forney 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 Forney algorithm.

Tags

  • Coding theory
  • Error detection and correction

Keep exploring