ArticleslgStudy

computer science

Zemor's decoding algorithm

Zemor's decoding 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 Zemor's decoding algorithm rather than just read about it. In short: In coding theory, Zemor's algorithm, designed and developed by Gilles Zémor, is a recursive low-complexity approach to code construction. It is an improvement over the algorithm of Sipser and Spielman.

Zemor's decoding algorithm — main illustration
Zemor's decoding algorithm — illustration

Key takeaways

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

Reference excerpt

In coding theory, Zemor's algorithm, designed and developed by Gilles Zémor, is a recursive low-complexity approach to code construction. It is an improvement over the algorithm of Sipser and Spielman. Zemor considered a typical class of Sipser–Spielman construction of expander codes, where the underlying graph is bipartite graph. Sipser and Spielman introduced a constructive family of asymptotically good linear-error codes together with a simple parallel algorithm that will always remove a constant fraction of errors. The article is based on Dr. Venkatesan Guruswami's course notes

Code construction Zemor's algorithm is based on a type of expander graphs called Tanner graph. The construction of code was first proposed by Tanner. The codes are based on double cover d, regular expander G, which is a bipartite graph. G =(V,E), where V is the set of vertices and E is the set of edges and V = A ∪ B and A ∩ B = ∅︀, where A and B denotes sets of vertices. Let n be the number of vertices in each group, i.e, |A|=|B|=n. The edge set E be of size N =nd and every edge in E has one endpoint in both A and B. E(v) denotes the set of edges containing v. Assume an ordering on V, therefore ordering will be done on every edges of E(v) for every v∈V. Let finite field 𝔽=GF(2), and for a word x=(xe),e∈E in 𝔽N, let the subword of the word will be indexed by E(v). Let that word be denoted by (x)v. The subset of vertices A and B induces every word x∈𝔽N a partition into n non-overlapping sub-words (x)v∈𝔽d, where v ranges over the elements of A. For constructing a code C, consider a linear subcode Co, which is a [d,rod,δ] code, where q, the size of the alphabet is 2. For any vertex v∈V, let v(1),v(2),…,v(d) be some ordering of the d vertices of E adjacent to v. In this code, each bit xe is linked with an edge e of E. We can define the code C to be the set of binary vectors x=(x1,x2,…,xN) of {0,1}N such that, for every vertex v of V, (xv(1),xv(2),…,xv(d)) is a code word of Co. In this case, we can consider a special case when every edge of E is adjacent to exactly 2 vertices of V. It means that V and E make up, respectively, the vertex set and edge set of d regular graph G. Let us call the code C constructed in this way as (G,Co) code. For a given graph G and a given code Co, there are several (G,Co) codes as there are different ways of ordering edges incident to a given vertex v, i.e., v(1),v(2),…,v(d). In fact our code C consist of all codewords such that xv∈Co for all v∈A,B. The code C is linear [N,K,D] in 𝔽 as it is generated from a subcode Co, which is linear. The code C is defined as C={c∈𝔽N:(c)v∈Co} for every v∈V.

In this figure, (x)v=(xe1,xe2,xe3,xe4)∈Co. It shows the graph G and code C. In matrix G, let λ is equal to the second largest eigenvalue of adjacency matrix of G. Here the largest eigenvalue is d. Two important claims are made:

Claim 1 (KN)≥2ro−1 . Let R be the rate of a linear code constructed from a bipartite graph whose digit nodes have degree m and whose subcode nodes have degree n. If a single linear code with parameters (n,k) and rate r=(kn) is associated with each of the subcode nodes, then k≥1−(1−r)m.

Proof Let R be the rate of the linear code, which is equal to K/N Let there are S subcode nodes in the graph. If the degree of the subcode is n, then the code must have (nm)S digits, as each digit node is connected to m of the (n)S edges in the graph. Each subcode node contributes (n−k) equations to parity check matrix for a total of (n−k)S. These equations may not be linearly independent. Therefore, (KN)≥((nm)S−(n−k)S(nm)S) ≥1−m(n−kn) ≥1−m(1−r), Since the value of m, i.e., the digit node of this bipartite graph is 2 and here r=ro, we can write as: (KN)≥2ro−1

Claim 2 D≥N((δ−(λd))(1−(λd)))2 =N(δ2−O(λd)) →(1) If S is linear code of rate r, block code length d, and minimum relative distance δ, and if B is the edge vertex incidence graph of a d – regular graph with second largest eigenvalue λ, then the code C(B,S) has rate at least 2ro−1 and minimum relative distance at least ((δ−(λd)1−(λd)))2.

Proof Let B be derived from the d regular graph G. So, the number of variables of C(B,S) is (dn2) and the number of constraints is n. According to Alon - Chung, if X is a subset of vertices of G of size γn, then the number of edges contained in the subgraph is induced by X in G is at most (dn2)(γ2+(λd)γ(1−γ)). As a result, any set of (dn2)(γ2+(λd)γ(1−γ)) variables will be having at least γn constraints as neighbours. So the average number of variables per constraint is : ((2nd2)(γ2+(λd)γ(1−γ))γn) =d(γ+(λd)(1−γ)) →(2) So if d(γ+(λd)(1−γ))<γd, then a word of relative weight (γ2+(λd)γ(1−γ)), cannot be a codeword of C(B,S). The inequality (2) is satisfied for γ<(1−(λd)δ−(λd)). Therefore, C(B,S) cannot have a non zero codeword of relative weight (δ−(λd)1−(λd))2 or less. In matrix G, we can assume that λ/d is bounded away from 1. For those values of d in which d−1 is odd prime, there are explicit constructions of sequences of d - regular bipartite graphs with arbitrarily large number of vertices such that each graph G in the sequence is a Ramanujan graph. It is called Ramanujan graph as it satisfies the inequality λ(G)≤2d−1. Certain expansion properties are visible in graph G as the separation between the eigenvalues d and λ. If the graph G is Ramanujan graph, then that expression (1) will become 0 eventually as d becomes large.

Zemor's algorithm The iterative decoding algorithm written below alternates between the vertices A and B in G and corrects the codeword of Co in A and then it switches to correct the codeword Co in B. Here edges associated with a vertex on one side of a graph are not incident to other vertex on that side. In fact, it doesn't matter in which order, the set of nodes A and B are processed. The vertex processing can also be done in parallel. The decoder 𝔻:𝔽d→Co stands for a decoder for Co that recovers correctly with any codewords with less than (d2) errors.

Decoder algorithm Received word : w=(we),e∈E

z←w For t←1 to m do //m is the number of iterations { if (t is odd) // Here the algorithm will alternate between its two vertex sets. X←A else X←B Iteration t: For every v∈X, let (z)v←𝔻((z)v) // Decoding zv to its nearest codeword. }

Output: z

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Zemor's decoding algorithm

Start with the simplest possible case. Write down what Zemor's decoding 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 Zemor's decoding 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 Zemor's decoding 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 Zemor's decoding algorithm

In research
Zemor's decoding 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 Zemor's decoding 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
Zemor's decoding 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 Zemor's decoding 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 “Zemor's decoding algorithm” →

How to study Zemor's decoding algorithm in 20 minutes

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

Frequently asked questions

What is Zemor's decoding algorithm in simple terms?

In coding theory, Zemor's algorithm, designed and developed by Gilles Zémor, is a recursive low-complexity approach to code construction. It is an improvement over the algorithm of Sipser and Spielman.

Why does Zemor's decoding 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 Zemor's decoding 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 Zemor's decoding algorithm.

Tags

  • Coding theory
  • Error detection and correction

Keep exploring