ArticleslgStudy

mathematics

Long code (mathematics)

Long code (mathematics) is a mathematics 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 Long code (mathematics) rather than just read about it. In short: In theoretical computer science and coding theory, the long code is an error-correcting code that is locally decodable. Long codes have an extremely poor rate, but play a fundamental role in the theory of hardness of approximation.

Key takeaways

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

Reference excerpt

In theoretical computer science and coding theory, the long code is an error-correcting code that is locally decodable. Long codes have an extremely poor rate, but play a fundamental role in the theory of hardness of approximation.

Definition Let f 1 , … , f 2 n : { 0 , 1 } k → { 0 , 1 } {\displaystyle f_{1},\dots ,f_{2^{n}}:\{0,1\}^{k}\to \{0,1\}} for k = log ⁡ n {\displaystyle k=\log n} be the list of all functions from { 0 , 1 } k → { 0 , 1 } {\displaystyle \{0,1\}^{k}\to \{0,1\}} . Then the long code encoding of a message x ∈ { 0 , 1 } k {\displaystyle x\in \{0,1\}^{k}} is the string f 1 ( x ) ∘ f 2 ( x ) ∘ ⋯ ∘ f 2 n ( x ) {\displaystyle f_{1}(x)\circ f_{2}(x)\circ \dots \circ f_{2^{n}}(x)} where ∘ {\displaystyle \circ } denotes concatenation of strings. This string has length 2 n = 2 2 k {\displaystyle 2^{n}=2^{2^{k}}} . The Walsh-Hadamard code is a subcode of the long code, and can be obtained by only using functions f i {\displaystyle f_{i}} that are linear functions when interpreted as functions F 2 k → F 2 {\displaystyle \mathbb {F} _{2}^{k}\to \mathbb {F} _{2}} on the finite field with two elements. Since there are only 2 k {\displaystyle 2^{k}} such functions, the block length of the Walsh-Hadamard code is 2 k {\displaystyle 2^{k}} . An equivalent definition of the long code is as follows: The Long code encoding of j ∈ [ n ] {\displaystyle j\in [n]} is defined to be the truth table of the Boolean dictatorship function on the j {\displaystyle j} th coordinate, i.e., the truth table of f : { 0 , 1 } n → { 0 , 1 } {\displaystyle f:\{0,1\}^{n}\to \{0,1\}} with f ( x 1 , … , x n ) = x j {\displaystyle f(x_{1},\dots ,x_{n})=x_{j}} . Thus, the Long code encodes a ( log ⁡ n ) {\displaystyle (\log n)} -bit string as a 2 n {\displaystyle 2^{n}} -bit string.

Properties The long code does not contain repetitions, in the sense that the function f i {\displaystyle f_{i}} computing the i {\displaystyle i} th bit of the output is different from any function f j {\displaystyle f_{j}} computing the j {\displaystyle j} th bit of the output for j ≠ i {\displaystyle j\neq i} . Among all codes that do not contain repetitions, the long code has the longest possible output. Moreover, it contains all non-repeating codes as a subcode.

References

Worked examples

Example 1 — a first encounter with Long code (mathematics)

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

In research
Long code (mathematics) appears in mathematics 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 Long code (mathematics) 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
Long code (mathematics) 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 Long code (mathematics) 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.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Long code (mathematics) in 20 minutes

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

Frequently asked questions

What is Long code (mathematics) in simple terms?

In theoretical computer science and coding theory, the long code is an error-correcting code that is locally decodable. Long codes have an extremely poor rate, but play a fundamental role in the theory of hardness of approximation.

Why does Long code (mathematics) matter?

Because it connects several mathematics 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 Long code (mathematics)?

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 Long code (mathematics).

Tags

  • Coding theory
  • Error detection and correction

Keep exploring