ArticleslgStudy

science

Justesen code

Justesen code is a 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 Justesen code rather than just read about it. In short: In coding theory, Justesen codes form a class of error-correcting codes that have a constant rate, constant relative distance, and a constant alphabet size. Before the Justesen error correction code was discovered, no error correction code was known that had all of these three parameters as a constant.

Key takeaways

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

Reference excerpt

In coding theory, Justesen codes form a class of error-correcting codes that have a constant rate, constant relative distance, and a constant alphabet size. Before the Justesen error correction code was discovered, no error correction code was known that had all of these three parameters as a constant. Subsequently, other ECC codes with this property have been discovered, for example expander codes. These codes have important applications in computer science such as in the construction of small-bias sample spaces. Justesen codes are derived as the code concatenation of a Reed–Solomon code and the Wozencraft ensemble. The Reed–Solomon codes used achieve constant rate and constant relative distance at the expense of an alphabet size that is linear in the message length. The Wozencraft ensemble is a family of codes that achieve constant rate and constant alphabet size, but the relative distance is only constant for most of the codes in the family. The concatenation of the two codes first encodes the message using the Reed–Solomon code, and then encodes each symbol of the codeword further using a code from the Wozencraft ensemble – using a different code of the ensemble at each position of the codeword. This is different from usual code concatenation where the inner codes are the same for each position. The Justesen code can be constructed very efficiently using only logarithmic space.

Definition The Justesen code is the concatenation of an (N,K,D)qk outer code Cout and different (n,k,d)q inner codes Cini, for1≤i≤N. More precisely, the concatenation of these codes, denoted by Cout∘(Cin1,...,CinN), is defined as follows. Given a message m∈[qk]K, we compute the codeword produced by an outer code Cout: Cout(m)=(c1,c2,..,cN). Then we apply each code of N linear inner codes to each coordinate of that codeword to produce the final codeword; that is, Cout∘(Cin1,..,CinN)(m)=(Cin1(c1),Cin2(c2),..,CinN(cN)). Look back to the definition of the outer code and linear inner codes, this definition of the Justesen code makes sense because the codeword of the outer code is a vector with N elements, and we have N linear inner codes to apply for those N elements. Here for the Justesen code, the outer code Cout is chosen to be Reed Solomon code over a field 𝔽qk evaluated over 𝔽qk−{0} of rate R, 0 < R < 1. The outer code Cout have the relative distance δout=1−R and block length of N=qk−1. The set of inner codes is the Wozencraft ensemble {Cinα}α∈𝔽qk∗.

Property of Justesen code As the linear codes in the Wonzencraft ensemble have the rate 12, Justesen code is the concatenated code C∗=Cout∘(Cin1,Cin2,..,CinN) with the rate R2. We have the following theorem that estimates the distance of the concatenated code C∗.

Theorem Let ε>0. Then C∗ has relative distance of at least (1−R−ε)Hq−1(12−ε).

Proof In order to prove a lower bound for the distance of a code C∗ we prove that the Hamming distance of an arbitrary but distinct pair of codewords has a lower bound. So let Δ(c1,c2) be the Hamming distance of two codewords c1 and c2. For any given

m1≠m2∈(𝔽qk)K, we want a lower bound for Δ(C∗(m1),C∗(m2)). Notice that if Cout(m)=(c1,⋯,cN), then C∗(m)=(Cin1(c1),⋯,CinN(cN)). So for the lower bound Δ(C∗(m1),C∗(m2)), we need to take into account the distance of Cin1,⋯,CinN. Suppose

Cout(m1)=(c11,⋯,cN1)Cout(m2)=(c12,⋯,cN2) Recall that {Cin1,⋯,CinN} is a Wozencraft ensemble. Due to "Wonzencraft ensemble theorem", there are at least (1−ε)N linear codes Cini that have distance Hq−1(12−ε)⋅2k. So if for some 1⩽i⩽N,ci1≠ci2 and the code Cini has distance ⩾Hq−1(12−ε)⋅2k, then

Δ(Cini(ci1),Cini(ci2))⩾Hq−1(12−ε)⋅2k. Further, if we have T numbers 1⩽i⩽N such that ci1≠ci2 and the code Cini has distance ⩾Hq−1(12−ε)⋅2k, then

Δ(C∗(m1),C∗(m2))⩾Hq−1(12−ε)⋅2k⋅T. So now the final task is to find a lower bound for T. Define:

S={i : 1⩽i⩽N,ci1≠ci2}. Then T is the number of linear codes Cini,i∈S having the distance Hq−1(12−ε)⋅2k. Now we want to estimate |S|. Obviously |S|=Δ(Cout(m1),Cout(m2))⩾(1−R)N. Due to the Wozencraft Ensemble Theorem, there are at most εN linear codes having distance less than Hq−1(12−ε)⋅2k, so

T⩾|S|−εN⩾(1−R)N−εN=(1−R−ε)N. Finally, we have

Δ(C∗(m1),C∗(m2))⩾Hq−1(12−ε)⋅2k⋅T⩾Hq−1(12−ε)⋅2k⋅(1−R−ε)⋅N. This is true for any arbitrary m1≠m2. So C∗ has the relative distance at least (1−R−ε)Hq−1(12−ε), which completes the proof.

Comments We want to consider the "strongly explicit code". So the question is what the "strongly explicit code" is. Loosely speaking, for linear code, the "explicit" property is related to the complexity of constructing its generator matrix G. That in effect means that we can compute the matrix in logarithmic space without using the brute force algorithm to verify that a code has a given satisfied distance. For the other codes that are not linear, we can consider the complexity of the encoding algorithm. So by far, we can see that the Wonzencraft ensemble and Reed-Solomon codes are strongly explicit. Therefore, we have the following result: Corollary: The concatenated code C∗ is an asymptotically good code(that is, rate R > 0 and relative distance δ > 0 for small q) and has a strongly explicit construction.

An example of a Justesen code The following slightly different code is referred to as the Justesen code in MacWilliams/MacWilliams. It is the particular case of the above-considered Justesen code for a very particular Wonzencraft ensemble: Let R be a Reed-Solomon code of length N = 2m − 1, rank K and minimum weight N − K + 1. The symbols of R are elements of F = GF(2m) and the codewords are obtained by taking every polynomial ƒ over F of degree less than K and listing the values of ƒ on the non-zero elements of F in some predetermined order. Let α be a primitive element of F. For a codeword a = (a1, ..., aN) from R, let b be the vector of length 2N over F given by

𝐛=(a1,a1,a2,α1a2,…,aN,αN−1aN) and let c be the vector of length 2N m obtained from b by expressing each element of F as a binary vector of length m. The Justesen code is the linear code containing all such c. The parameters of this code are length 2m N, dimension m K and minimum distance at least

∑i=1ℓi(2mi), where ℓ is the greatest integer satisfying ∑i=1ℓ(2mi)≤N−K+1. (See MacWilliams/MacWilliams for a proof.)

See also Concatenated error correction code Linear code Reed-Solomon error correction Wozencraft ensemble

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Justesen code

Start with the simplest possible case. Write down what Justesen code claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In 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 Justesen 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 Justesen 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 Justesen code

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

How to study Justesen code in 20 minutes

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

Frequently asked questions

What is Justesen code in simple terms?

In coding theory, Justesen codes form a class of error-correcting codes that have a constant rate, constant relative distance, and a constant alphabet size. Before the Justesen error correction code was discovered, no error correction code was known that had all of these three parameters as a const…

Why does Justesen code matter?

Because it connects several 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 Justesen 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 Justesen code.

Tags

  • Coding theory
  • Error detection and correction
  • Finite fields

Keep exploring