Knowledge / Electronics and Communication Engineering / Information theory and coding

Information theory and coding

Electronics and Communication Engineering (B.E./B.Tech) · Signals and communication · free study notes for exams, placements and interviews

In short

Information theory measures how much information a source actually produces (entropy), how much a channel can reliably carry (capacity), and codes are the practical means of hitting those two limits - source codes squeeze out redundancy, channel codes add it back in a controlled way to beat noise. Claude Shannon's 1948 results set the hard ceilings: you cannot compress below the entropy, and you cannot transmit error-free above the capacity. Every modern Indian network relies on this - 4G used turbo codes, 5G NR uses LDPC and polar codes, DTH satellites use LDPC with BCH, UPI QR codes use Reed-Solomon. It is a heavily weighted GATE EC area (entropy, capacity, Huffman, Hamming, cyclic codes) and a standard interview topic at Qualcomm, Samsung R&D, Nokia, Ericsson, Sasken, Tejas Networks, C-DOT, ISRO and DRDO.

Explained

Information, entropy and source models

Source coding (data compression)

Channels, mutual information and capacity

Linear block codes

Cyclic codes, CRC and burst-error codes

Convolutional codes and capacity-approaching codes

Key points

Formulas and examples

Self-information: I(xᵢ) = log₂(1/pᵢ) bits
Entropy: H(X) = −Σ pᵢ log₂ pᵢ bits/symbol; 0 ≤ H ≤ log₂M
Binary entropy: H(p) = −p log₂p − (1−p) log₂(1−p)
Information rate: R = r·H bits/s (r = symbols/s)
Coding efficiency: η = H/L, L = Σ pᵢnᵢ bits/symbol; redundancy = 1 − η
Kraft: Σ 2−nᵢ ≤ 1
Mutual information: I(X;Y) = H(X) − H(X|Y) = H(X) + H(Y) − H(X,Y)
BSC capacity: C = 1 − H(p) bits/use; BEC: C = 1 − ε
Shannon–Hartley: C = B log₂(1 + S/N) bits/s (B in Hz, S/N as a ratio, not dB)
Required Eb/N₀ for spectral efficiency η b/s/Hz: Eb/N₀ = (2η − 1)/η; η→0 gives ln2 = −1.59 dB
Block code: R = k/n; t = ⌊(d_min − 1)/2⌋; Hamming bound 2k ≤ 2ⁿ / Σ_{i=0..t} C(n,i)
Cyclic systematic encoding: c(x) = xn−km(x) + [xn−km(x) mod g(x)]
Convolutional code: states = 2K−1; rate = k/n

Example 1 - entropy, Huffman and efficiency. Source with p = {0.4, 0.2, 0.2, 0.1, 0.1}, 1,000 symbols/s.

Example 2 - BSC capacity. p = 0.1, 1,000 binary symbols/s.

Example 3 - Shannon–Hartley. (a) A 3.1 kHz telephone channel at 30 dB SNR: S/N = 1000, C = 3100 × log₂(1001) = 3100 × 9.967 = 30.9 kbit/s - which is why 33.6 kbit/s was the practical analogue-modem ceiling. (b) A 20 MHz LTE carrier at 20 dB SNR: C = 20×10⁶ × log₂(101) = 20×10⁶ × 6.658 = 133 Mbit/s. Doubling the bandwidth doubles C; doubling the power adds only about 1 bit/s/Hz at high SNR.

Example 4 - Hamming (7,4): encoding, syndrome and gain. G = [I₄ | P] with P rows 110, 011, 111, 101.

Example 5 - cyclic code and convolutional encoding.

in  state  v1 v2   next
1    00    1  1     10
0    10    1  0     01
1    01    0  0     10
1    10    0  1     11
0    11    0  1     01
0    01    1  1     00
output = 11 10 00 01 01 11   (12 bits for 4 information bits)
Code familyTypical useStrengthCost
Hamming (7,4) / SECDEDECC RAM, simple links1-bit correction, trivial hardwareWeak, high overhead
CRC-16 / CRC-32Ethernet, HDLC, 5G transport blocksExcellent burst detectionDetection only, needs ARQ
BCHDVB-S2 outer code, flash memoryFlexible multi-error correctionModerate decoder complexity
Reed–SolomonQR codes, optical, CCSDS, DVB-TSymbol-level burst correction, MDSGalois-field arithmetic
Convolutional + ViterbiGSM, Wi-Fi legacy, satellite inner codeSoft decision, ~5 dB gainComplexity 2K−1
Turbo3G/4G LTE dataWithin ~0.5 dB of capacityIterative, latency
LDPC5G NR data, DVB-S2, Wi-Fi 6Near-capacity, parallelisableLarge block sizes
Polar5G NR control (PDCCH, PBCH)Provably capacity-achieving, good at short blocksList decoding, CRC aid

Where it is used

Interview questions

Common mistakes

Related topics

Random signals and noise analysis · Sampling and digital modulation · Noise in communication systems · Spread spectrum and CDMA · OFDM and MIMO · Telecommunication networks and switching

Open in the Knowledge reader →Find jobs →