IAE Academy

IN THE EC SYLLABUS

Information theory

Entropy, source coding and channel capacity

Information theory measures how much uncertainty a source carries (entropy), how compactly it can be written down (source coding) and how fast data can be sent reliably over a noisy channel (channel capacity). The core results are entropy, the Kraft inequality, Huffman coding, mutual information, the capacities of the binary symmetric and binary erasure channels, and the Shannon-Hartley law.

9 previous-year questions · 9 solved · 5 practice questions

Information and entropy

Convention: all logarithms are to base 2 unless stated, so information is measured in bits. A discrete memoryless source (DMS) emits symbols with probabilities , independently of one another. A rarer symbol carries more information when it occurs.

INFORMATION OF A SYMBOL

Always non-negative; a certain event () carries 0 bits.

ENTROPY OF A DMS

Average information per symbol. Take .

BOUNDS ON ENTROPY

Minimum 0 when one symbol has probability 1; maximum when all symbols are equiprobable.

BINARY ENTROPY FUNCTION

Entropy of a two-symbol source. , symmetric about , .

EXTENDED SOURCE

For the th extension of a DMS (blocks of independent symbols, block symbols).

EXAM TIP

If the source emits symbols per second, the information rate is bits/s. Check whether a question asks for bits per symbol or bits per second.

Joint and conditional entropy, mutual information

For a channel with input and output , the conditional entropy is the uncertainty about the input that remains after the output is seen. Mutual information is the uncertainty removed by observing .

JOINT AND CONDITIONAL ENTROPY

Chain rule. If and are independent, . The conditional entropy is an average: .

MUTUAL INFORMATION

Symmetric in and ; , with equality exactly when and are independent.

MUTUAL INFORMATION FROM PROBABILITIES

Here and . Terms with contribute 0.

CONDITIONING REDUCES ENTROPY

Equality only for independent and . Also .

EXAM TIP

For a lossless channel, where the input can always be recovered from the output, so . For a channel whose output is independent of the input, .

Source coding

A source code maps each symbol to a binary codeword of length . A prefix code has no codeword that is the start of another, so it is instantaneously decodable.

AVERAGE CODE LENGTH

Binary code alphabet.

KRAFT INEQUALITY

A binary prefix code with lengths exists if and only if this holds. Every uniquely decodable binary code also satisfies it, so nothing is gained in length by giving up the prefix property. It tests lengths only; a set of codewords can obey it and still not be prefix-free.

SOURCE CODING THEOREM

The lower bound holds for every uniquely decodable binary code; an optimal binary prefix code (e.g. Huffman) also meets the upper bound. Using the th extension, .

EFFICIENCY AND REDUNDANCY

Binary code. For a code alphabet of symbols, . A binary code with has ; this needs every to be a power of .

Huffman coding procedure

  1. Arrange the symbols in decreasing order of probability.

  2. Combine the two smallest probabilities into one node and re-sort the list.

  3. Repeat until one node of probability 1 remains.

  4. Starting from the root, assign 0 and 1 to the two branches at each merge; read each symbol's codeword back from the root.

  5. Check: equals the sum of the probabilities of all merged (internal) nodes.

Shannon-Fano procedure

  1. Arrange the symbols in decreasing order of probability.

  2. Split the list into two groups whose total probabilities are as nearly equal as possible.

  3. Assign 0 to the upper group and 1 to the lower group.

  4. Repeat inside each group until every group has one symbol.

EXAM TIP

Ties in Huffman coding can give different sets of lengths, but the average length is always the same. Huffman is optimal among prefix codes; Shannon-Fano is not always.

Discrete memoryless channels: BSC and BEC

A discrete memoryless channel is described by transition probabilities . The capacity per channel use is the largest mutual information over all input distributions.

CHANNEL CAPACITY

For a channel used times per second, the capacity is bits/s.

BINARY SYMMETRIC CHANNEL (CROSSOVER PROBABILITY P)

Reached with equiprobable inputs. at or , and at .

BSC WITH INPUT P(X=1) = Α

From : for every input, and . The maximum, at , is .

BINARY ERASURE CHANNEL (ERASURE PROBABILITY Ε)

Each bit is either received correctly or marked as erased; reached with equiprobable inputs.

BEC WITH INPUT P(X=1) = Α

From : the input is known unless the bit is erased, so . The maximum, at , is .

Channel

Behaviour

Capacity (bits/use)

Noiseless binary

Output equals input

1

BSC, crossover

Bit flipped with probability

BEC, erasure

Bit lost with probability

BSC with

Output independent of input

0

EXAM TIP

A BSC with is as good as one with , because the receiver can simply invert every bit: .

Channel capacity theorem and the Shannon-Hartley law

The channel coding theorem: if the information rate is less than the capacity , there exists a coding scheme with arbitrarily small error probability; if , reliable communication is impossible. It does not say how to build the code.

DIFFERENTIAL ENTROPY (CONTINUOUS SOURCE)

Unlike discrete entropy, it can be negative. Uniform on an interval of length : . Gaussian with variance : , the largest value for any density with that variance.

SHANNON-HARTLEY LAW

Band-limited AWGN channel of bandwidth Hz. is the average received signal power and is the power ratio (not dB); with two-sided noise PSD .

SNR IN DECIBELS

Convert to a ratio before using in the law: 20 dB means 100, 30 dB means 1000.

INFINITE-BANDWIDTH LIMIT

At fixed signal power , capacity grows with but saturates, because the noise power grows too.

SHANNON LIMIT (CONDITION FOR RELIABLE COMMUNICATION)

is the energy per bit. With and : , which tends to as . Below this, no reliable communication is possible at any positive rate.

BANDWIDTH-SNR TRADE-OFF

For a target rate , a smaller bandwidth needs an exponentially larger SNR; a larger bandwidth allows a lower SNR.

WORKED EXAMPLE

A DMS emits five symbols with probabilities 0.4, 0.2, 0.2, 0.1, 0.1. Find its entropy, the average length of a binary Huffman code, and the code efficiency.

Solution
  1. Entropy: bits/symbol.

  2. Huffman merges: ; then ; then ; then .

  3. = sum of merged node probabilities bits/symbol.

  4. Check against the theorem: .

  5. Efficiency .

Answer: bits/symbol, bits/symbol, .

WORKED EXAMPLE

A channel of bandwidth 4 kHz has a signal-to-noise power ratio of 31. Find its capacity, and the SNR (as a ratio) needed to carry 32 kbit/s in the same bandwidth.

Solution
  1. bits/s.

  2. For 32 kbit/s: .

  3. (about 24.1 dB).

Answer: kbit/s; the SNR must rise to 255.

PREVIOUS-YEAR QUESTIONS

9 questions from the EC papers

Try each question first, then open the answer. We placed each question under a topic ourselves; the exam paper does not label topics.

See these papers in full: GATE ECE 2026 · GATE ECE 2025 · GATE ECE 2024 · GATE ECE 2023 · GATE ECE 2022 · GATE ECE 2020

GATE 2026 EC Q.55

GATE 2026 · ECQ.55 · 2 marks · MSQ

Let the relevant bandwidth () of a digital communication system be 1 MHz and dBm/Hz, where is Boltzmann's constant and 'T' is equivalent noise temperature of the receiver. The power () of signal received through an additive Gaussian channel is dBm. Which of the following options is/are TRUE about Shannon capacity () of the channel?

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
See the question in the paper
GATE 2026 EC Q.55: answer and solution

GATE 2025 EC Q.15

GATE 2025 · ECQ.15 · 1 mark · MCQ

Consider an additive white Gaussian noise (AWGN) channel with bandwidth and noise power spectral density . Let denote the average transmit power constraint.

Which one of the following plots illustrates the dependence of the channel capacity on the bandwidth (keeping and fixed)?

GATE 2025 EC question 15: Four small plots, each with the vertical axis labelled C and the horizontal axis labelled W, both starting at the origin 0.Tap to open full size
Figure from the GATE 2025 EC paper. It is part of the question.
Figure description

Four small plots, each with the vertical axis labelled C and the horizontal axis labelled W, both starting at the origin 0. (A) A concave curve that rises steeply from the origin and flattens out to a horizontal asymptote (saturating). (B) A straight line through the origin with constant positive slope. (C) A convex curve that starts with a small slope near the origin and rises ever more steeply (exponential-like growth). (D) A curve that rises from the origin, reaches a single peak, and then falls as W increases.

  1. (A)

    Figure — C versus W: concave curve rising steeply from the origin and saturating at a horizontal asymptote.

  2. (B)

    Figure — C versus W: straight line through the origin with constant positive slope.

  3. (C)

    Figure — C versus W: convex curve starting with a small slope and rising increasingly steeply.

  4. (D)

    Figure — C versus W: curve rising from the origin to a peak and then decreasing.

Answer and solution
GATE 2025 EC Q.15: answer and solution

GATE 2025 EC Q.54

GATE 2025 · ECQ.54 · 2 marks · MSQ

The random variable takes values in with probabilities and , where . Let denote the entropy of (in bits), parameterized by . Which of the following statements is/are TRUE?

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
See the question in the paper
GATE 2025 EC Q.54: answer and solution

GATE 2023 EC Q.65

GATE 2023 · ECQ.65 · 2 marks · NAT

The frequency of occurrence of 8 symbols (a-h) is shown in the table below. A symbol is chosen and it is determined by asking a series of "yes/no" questions which are assumed to be truthfully answered. The average number of questions when asked in the most efficient sequence, to determine the chosen symbol, is ________ (rounded off to two decimal places).

GATE 2023 EC question 65: A table with two rows.Tap to open full size
Figure from the GATE 2023 EC paper. It is part of the question.
Figure description

A table with two rows. Row 'Symbols': a, b, c, d, e, f, g, h. Row 'Frequency of occurrence': 1/2, 1/4, 1/8, 1/16, 1/32, 1/64, 1/128, 1/128 respectively.

Answer and solution
GATE 2023 EC Q.65: answer and solution

GATE 2022 EC Q.61

GATE 2022 · ECQ.61 · 2 marks · NAT

The transition diagram of a discrete memoryless channel with three input symbols and three output symbols is shown in the figure. The transition probabilities are as marked. The parameter lies in the interval . The value of for which the capacity of this channel is maximized, is ________ (rounded off to two decimal places).

GATE 2022 EC question 61: Bipartite transition diagram with inputs a, b, c on the left and outputs a, b, c on the right.Tap to open full size
Figure from the GATE 2022 EC paper. It is part of the question.
Figure description

Bipartite transition diagram with inputs a, b, c on the left and outputs a, b, c on the right. Each input has two arrows: a to a with probability 1 - alpha and a to b with probability alpha; b to b with probability 1 - alpha and b to c with probability alpha; c to c with probability 1 - alpha and c to a with probability alpha. The three diagonal arrows (a to b, b to c, c to a) cross one another.

Answer and solution
GATE 2022 EC Q.61: answer and solution

PRACTICE

5 questions to test yourself

PRACTICE 11 mark · MCQ

Which one of the following sets of codeword lengths can be the lengths of a binary prefix code?

  1. (A)

    {1, 1, 2}

  2. (B)

    {2, 2, 2, 3, 3}

  3. (C)

    {1, 2, 2, 3}

  4. (D)

    {1, 2, 3, 3, 3}

Answer and solution

Answer: (B)

  1. Apply Kraft: is required.

  2. A: . C: . D: .

  3. B: , so a prefix code exists.

PRACTICE 22 marks · NAT

A binary symmetric channel has crossover probability and is used 2000 times per second. Assuming the best input distribution, its capacity in bits per second is ______ (nearest integer).

Answer and solution

Answer: (accepted range )

  1. .

  2. bits per use.

  3. Rate bits/s.

PRACTICE 32 marks · MSQ

Which of the following statements are correct?

  1. (A)

    A source with symbols has maximum entropy when all symbols are equiprobable.

  2. (B)

    The mutual information between the input and output of a channel is never negative.

  3. (C)

    The capacity of a binary symmetric channel with crossover probability 0.5 is 1 bit per use.

  4. (D)

    At fixed signal power and noise PSD, the Shannon-Hartley capacity grows without bound as the bandwidth tends to infinity.

Answer and solution

Answer: (A), (B)

  1. A is true: entropy is maximised by the uniform distribution.

  2. B is true: , zero only for independent and .

  3. C is false: at , so .

  4. D is false: capacity saturates at .

PRACTICE 41 mark · NAT

A discrete memoryless source emits four symbols with probabilities . Its entropy, in bits per symbol, is ______ (up to two decimal places).

Answer and solution

Answer: (accepted range )

  1. .

  2. bits/symbol.

PRACTICE 52 marks · NAT

A telephone-type channel has bandwidth 3 kHz and a signal-to-noise ratio of 20 dB. Its Shannon-Hartley capacity in bits per second is ______ (nearest integer).

Answer and solution

Answer: (accepted range )

  1. 20 dB corresponds to .

  2. .

  3. , so bits/s.

OFFICIAL GATE 2027 SYLLABUS WORDING

Copied from the GATE 2027 syllabus; see all 2027 syllabi.

GATE EC

Information Theory: Entropy, source coding, mutual information and channel capacity theorem

Preparing in Kolkata? IAE Academy's course for GATE ECE.