Skip to main content

Short note: Convolutional codes

Short answer

Convolutional codes are error-correcting codes with memory, where each output depends on current and previous inputs. Described by (n,k,K) with rate k/n and constraint length K. Encoding uses shift registers and generator polynomials; decoding typically uses the Viterbi algorithm. They operate on continuous streams and are used in GSM, satellite, and Wi-Fi.

Write a short note on convolutional codes.

A convolutional code is an error-correcting code in which the encoder has memory: each group of output bits depends on the current input bit and on the previous K−1K-1 input bits stored in a shift register. The code is described by (n,k,K)(n,k,K): kk input bits produce nn output bits, giving code rate r=k/nr=k/n, and KK is the constraint length.

Encoder

A rate-1/2, K=3K=3 encoder with generators g(1)=(1,1,1)g^{(1)}=(1,1,1) and g(2)=(1,0,1)g^{(2)}=(1,0,1):

 m -->[ m_i ]-->[ m_i-1 ]-->[ m_i-2 ]
        |  \        |         /  |
        |   \--(+)--+--------/   |   c1 = mi+mi-1+mi-2
        |                        |
        +---------(+)------------+   c2 = mi+mi-2
                 output: c1 c2 c1 c2 ...

Each output is the modulo-2 convolution of the input with a generator sequence: ci(j)=∑lgl(j)mi−lc_i^{(j)}=\sum_l g_l^{(j)}m_{i-l}.

Example: input 1 0 0 1 1 (plus two flushing 0s) gives 11 10 11 11 01 01 11.

Representations

  • Code tree: branches up for 0, down for 1, labelled with output bits.
  • Trellis diagram: states (contents of memory) against time; repeats after K−1K-1 steps.
  • State diagram: 2K−12^{K-1} states with transitions labelled input/output.

Decoding

The Viterbi algorithm (maximum-likelihood) finds the trellis path with minimum Hamming distance from the received sequence; sequential decoding is used for large KK.

Features

  • Works on a continuous bit stream, no block division.
  • Strong error correction with soft-decision decoding; free distance dfreed_{free} measures power.
  • Used in GSM, satellite and deep-space links, Wi-Fi (often with interleaving).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Communication Systems chapter 8 questions →