Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Generator matrix

From Wikipedia, the free encyclopedia
Matrix generating a linear code
For generator matrices in probability theory, seetransition rate matrix.

Incoding theory, agenerator matrix is amatrix whose rows form abasis for alinear code. The codewords are all of thelinear combinations of the rows of this matrix, that is, the linear code is therow space of its generator matrix.

Terminology

[edit]

IfG is a matrix, it generates thecodewords of a linear codeC by

w=sG{\displaystyle w=sG}

wherew is a codeword of the linear codeC, ands is any input vector. Bothw ands are assumed to be row vectors.[1] A generator matrix for a linear[n,k,d]q{\displaystyle [n,k,d]_{q}}-code has formatk×n{\displaystyle k\times n}, wheren is the length of a codeword,k is the number of information bits (the dimension ofC as a vector subspace),d is the minimum distance of the code, andq is size of thefinite field, that is, the number of symbols in the alphabet (thus,q = 2 indicates abinary code, etc.). The number ofredundant bits is denoted byr=nk{\displaystyle r=n-k}.

Thestandard form for a generator matrix is,[2]

G=[Ik|P]{\displaystyle G={\begin{bmatrix}I_{k}|P\end{bmatrix}}},

whereIk{\displaystyle I_{k}} is thek×k{\displaystyle k\times k}identity matrix and P is ak×(nk){\displaystyle k\times (n-k)} matrix. When the generator matrix is in standard form, the codeC issystematic in its firstk coordinate positions.[3]

A generator matrix can be used to construct theparity check matrix for a code (and vice versa). If the generator matrixG is in standard form,G=[Ik|P]{\displaystyle G={\begin{bmatrix}I_{k}|P\end{bmatrix}}}, then the parity check matrix forC is[4]

H=[P|Ink]{\displaystyle H={\begin{bmatrix}-P^{\top }|I_{n-k}\end{bmatrix}}},

whereP{\displaystyle P^{\top }} is thetranspose of the matrixP{\displaystyle P}. This is a consequence of the fact that a parity check matrix ofC{\displaystyle C} is a generator matrix of thedual codeC{\displaystyle C^{\perp }}.

G is ak×n{\displaystyle k\times n} matrix, while H is a(nk)×n{\displaystyle (n-k)\times n} matrix.

Equivalent codes

[edit]

CodesC1 andC2 areequivalent (denotedC1 ~C2) if one code can be obtained from the other via the following two transformations:[5]

  1. arbitrarily permute the components, and
  2. independently scale by a non-zero element any components.

Equivalent codes have the same minimum distance.

The generator matrices of equivalent codes can be obtained from one another via the followingelementary operations:[6]

  1. permute rows
  2. scale rows by a nonzero scalar
  3. add rows to other rows
  4. permute columns, and
  5. scale columns by a nonzero scalar.

Thus, we can performGaussian elimination onG. Indeed, this allows us to assume that the generator matrix is in the standard form. More precisely, for any matrixG we can find aninvertible matrixU such thatUG=[Ik|P]{\displaystyle UG={\begin{bmatrix}I_{k}|P\end{bmatrix}}}, whereG and[Ik|P]{\displaystyle {\begin{bmatrix}I_{k}|P\end{bmatrix}}} generate equivalent codes.

See also

[edit]

Notes

[edit]
  1. ^MacKay, David, J.C. (2003).Information Theory, Inference, and Learning Algorithms(PDF).Cambridge University Press. p. 9.ISBN 9780521642989.Because the Hamming code is a linear code, it can be written compactly in terms of matrices as follows. The transmitted codewordt{\displaystyle \mathbf {t} } is obtained from the source sequences{\displaystyle \mathbf {s} } by a linear operation,

    t=Gs{\displaystyle \mathbf {t} =\mathbf {G} ^{\intercal }\mathbf {s} }

    whereG{\displaystyle \mathbf {G} } is thegenerator matrix of the code... I have assumed thats{\displaystyle \mathbf {s} } andt{\displaystyle \mathbf {t} } are column vectors. If instead they are row vectors, then this equation is replaced by

    t=sG{\displaystyle \mathbf {t} =\mathbf {sG} }

    ... I find it easier to relate to the right-multiplication (...) than the left-multiplication (...). Many coding theory texts use the left-multiplying conventions (...), however. ...The rows of the generator matrix can be viewed as defining the basis vectors.
    {{cite book}}: CS1 maint: multiple names: authors list (link)
  2. ^Ling & Xing 2004, p. 52
  3. ^Roman 1992, p. 198
  4. ^Roman 1992, p. 200
  5. ^Pless 1998, p. 8
  6. ^Welsh 1988, pp. 54-55

References

[edit]

Further reading

[edit]

External links

[edit]
Matrix classes
Explicitly constrained entries
Constant
Conditions oneigenvalues or eigenvectors
Satisfying conditions onproducts orinverses
With specific applications
Used instatistics
Used ingraph theory
Used in science and engineering
Related terms
Retrieved from "https://en.wikipedia.org/w/index.php?title=Generator_matrix&oldid=1289108387"
Category:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp