Jump to content

Repetition code

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Cerireid (talk | contribs) at 16:56, 22 July 2008 (Code parameters). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Repetition code is an coding scheme that repeats the bits across a channel to achieve error free communication (r is the number of bits in each codeword for each data bit to be coded). Repetition code is generally a very naive method of encoding data across a channel, and it is not preferred for Additive White Gaussian Noise Channels (AWGN), due to its worse-than-the-present error performance. Repetition codes generally offer a poor compromise between data rate and bit error rate, and other forms of error correcting codes can provide superior performance in these areas. The chief attraction of the repetition code is the ease of implementation.

There are two parts to the repetition code, as for any other code: the encoder and decoder, which will be described in detail.

Repetition Coder

The encoder is a simple device that repeats, times, a particular bit to the waveform modulator when the bit is received from the source stream.

For example, if we have a repetition code, then encoding the signal yields a code .

Repetition Decoder

Repetition decoding is usually done using Majority logic detection. To determine the value of a particular bit, we look at the received copies of the bit in the stream and choose the value that occurs more frequently.

For example, suppose we have a repetition code and we are decoding the signal . The decoded message is , as we have most occurrence of 1's (two to one), 0's (two to one), and 1's (three to zero) in the first, second, and third code sequences, respectively.

This approach discards any 'soft' probability information obtained when decoding each received bit, and the performance of the code can be improved by retaining this probability information and using it to derive a joint probability across all n bits of the actual information bit value.

Repetition Codes on Fading Channel

For fading channels repetition codes perform well with increasing repetition factor. In this figure, the coding gains for various repetition factors are seen.

Repetition Codes on Gaussian Channel

For the AWGN channels perform worse for longer repetition factors. In this figure, the coding gains are progressively worse with the increasing parameter.

Code parameters

The minimum Hamming distance () is for an repetition code, and there are two valid code words - all ones and all zeros, so the minimum weight () is r. This gives the repetition code an error correcting capacity of (i.e. it will correct up to errors in any code word).

Applications

Due to the simplicity of the channel encoding and decoding for repetition codes, they find applications in fading channels and non-AWGN environments. Repetition codes can be viewed as a method of space-time diversity as well.

See also

  1. Majority Logic Decoding
  2. Hamming code
  3. Convolutional code