Exercises

ex-ch12-01

Easy

A binary code has the following four codewords: {0000000,1110100,0101110,1011010}\{0000000, 1110100, 0101110, 1011010\}.

(a) Compute the minimum Hamming distance dmin⁑d_{\min}.

(b) How many errors can the code detect? Correct?

(c) Is this code linear?

ex-ch12-02

Medium

For the (7,4)(7, 4) Hamming code with parity-check matrix

H=[101110011010100111001]\mathbf{H} = \begin{bmatrix} 1 & 0 & 1 & 1 & 1 & 0 & 0 \\ 1 & 1 & 0 & 1 & 0 & 1 & 0 \\ 0 & 1 & 1 & 1 & 0 & 0 & 1 \end{bmatrix}

the received word is r=[1β€…β€Š1β€…β€Š0β€…β€Š0β€…β€Š1β€…β€Š0β€…β€Š1]\mathbf{r} = [1\;1\;0\;0\;1\;0\;1].

(a) Compute the syndrome s=HrT\mathbf{s} = \mathbf{H}\mathbf{r}^T.

(b) Identify the error position.

(c) Correct the received word.

ex-ch12-03

Medium

A rate-1/2 code with dmin⁑=8d_{\min} = 8 is used with BPSK over an AWGN channel.

(a) Compute the asymptotic coding gain in dB.

(b) If uncoded BPSK requires Eb/N0=9.6E_b/N_0 = 9.6 dB for BER=10βˆ’5\text{BER} = 10^{-5}, estimate the required Eb/N0E_b/N_0 with this code (using the asymptotic approximation).

(c) Why is the actual required Eb/N0E_b/N_0 typically higher than the asymptotic estimate?

ex-ch12-04

Easy

A communication system requires transmitting 1000 information bits per block.

(a) If a rate-3/4 code is used, how many coded bits are transmitted?

(b) If the channel bandwidth is 1 MHz and QPSK modulation is used, what is the maximum information throughput?

(c) What is the overhead (fraction of bandwidth used for redundancy)?

ex-ch12-05

Medium

A rate-1/2 convolutional code has constraint length K=3K = 3 and generators g1=(1,1,1)g_1 = (1,1,1) and g2=(1,0,1)g_2 = (1,0,1).

(a) Encode the input sequence u=[1,0,1,1]\mathbf{u} = [1, 0, 1, 1] (assume the encoder starts in the all-zero state and is terminated with 2 tail bits).

(b) How many output bits are produced in total?

(c) What is the effective code rate including tail bits?

ex-ch12-06

Hard

Using the rate-1/2, K=3K = 3 convolutional code from Exercise 5, decode the received hard-decision sequence r=[11,00,00,01,01,11]\mathbf{r} = [11, 00, 00, 01, 01, 11] using the Viterbi algorithm.

Assume the encoder starts and ends in state 00.

ex-ch12-07

Medium

A rate-1/3 convolutional code with K=4K = 4 has dfree=10d_{\text{free}} = 10.

(a) What is the asymptotic coding gain over uncoded BPSK?

(b) Compare with a rate-1/2 code with K=7K = 7 and dfree=10d_{\text{free}} = 10.

(c) Which code would you prefer in practice and why?

ex-ch12-08

Medium

A turbo code uses two identical rate-1/2 recursive systematic convolutional (RSC) constituent encoders.

(a) What is the overall code rate without puncturing?

(b) If every other parity bit from each encoder is punctured, what is the resulting code rate?

(c) Design a puncturing pattern to achieve rate 3/4.

ex-ch12-09

Hard

The EXIT function of a constituent decoder is approximated as

IE=T(IA)=1βˆ’eβˆ’Ξ±(IA+Ξ²)I_E = T(I_A) = 1 - e^{-\alpha(I_A + \beta)}

where Ξ±\alpha and Ξ²\beta depend on Eb/N0E_b/N_0. At Eb/N0=1E_b/N_0 = 1 dB, Ξ±=1.2\alpha = 1.2 and Ξ²=0.3\beta = 0.3.

(a) Plot (or sketch) the EXIT chart for the turbo decoder.

(b) Determine whether the iterative decoder converges at this SNR.

(c) Estimate the minimum Eb/N0E_b/N_0 for convergence.

ex-ch12-10

Easy

The Shannon limit for a rate-1/2 binary-input AWGN channel is Eb/N0=0.187E_b/N_0 = 0.187 dB.

(a) A turbo code achieves BER=10βˆ’5\text{BER} = 10^{-5} at Eb/N0=0.7E_b/N_0 = 0.7 dB. How far is it from the Shannon limit?

(b) A convolutional code with K=7K = 7 achieves BER=10βˆ’5\text{BER} = 10^{-5} at Eb/N0=4.2E_b/N_0 = 4.2 dB. How much improvement does the turbo code provide?

ex-ch12-11

Medium

An LDPC code has the parity-check matrix

H=[110100011010101001]\mathbf{H} = \begin{bmatrix} 1 & 1 & 0 & 1 & 0 & 0 \\ 0 & 1 & 1 & 0 & 1 & 0 \\ 1 & 0 & 1 & 0 & 0 & 1 \end{bmatrix}

(a) Draw the Tanner graph. (b) Is this a regular LDPC code? (c) What is the code rate? (d) Does the graph contain any 4-cycles?

ex-ch12-12

Hard

Using the Tanner graph from Exercise 11, perform one iteration of min-sum BP decoding given channel LLRs Lch=[+2,βˆ’3,+1,+4,βˆ’1,+2]\mathbf{L}_{\text{ch}} = [+2, -3, +1, +4, -1, +2].

Compute the updated LLRs after one full iteration.

ex-ch12-13

Medium

For a BEC with erasure probability Ο΅=0.4\epsilon = 0.4 and N=4N = 4:

(a) Compute the Bhattacharyya parameters for all 4 synthetic channels.

(b) Select the information set for rate 1/2.

(c) What is the expected block error probability under SC decoding?

ex-ch12-14

Hard

For the N=4N = 4 polar code from Exercise 13, with frozen set F={1,2}\mathcal{F} = \{1, 2\} (frozen to 0) and information set A={3,4}\mathcal{A} = \{3, 4\}:

(a) Encode the message (u3,u4)=(1,0)(u_3, u_4) = (1, 0).

(b) The received LLRs after the channel are L=[+1.5,βˆ’0.8,+2.1,βˆ’1.2]L = [+1.5, -0.8, +2.1, -1.2]. Decode using SC decoding.

ex-ch12-15

Medium

A system uses a rate-5/6 LDPC code with 64-QAM modulation and BICM.

(a) What is the spectral efficiency Ξ·\eta?

(b) At what minimum Eb/N0E_b/N_0 does the AWGN Shannon capacity equal this spectral efficiency?

(c) If the system operates at Eb/N0=10E_b/N_0 = 10 dB, what is the gap to Shannon?

ex-ch12-16

Easy

For 8-PSK, compare Gray labelling and set-partitioning (SP) labelling.

(a) How many bit errors occur for the most common symbol error (adjacent symbols) under each labelling?

(b) Which labelling is better for BICM? For BICM-ID?

ex-ch12-17

Medium

A system uses Chase combining HARQ with a rate-1/2 code.

(a) After 2 identical transmissions with independent noise, what is the effective SNR improvement (in dB)?

(b) After 3 transmissions?

(c) What is the maximum throughput (bits/channel use) if on average 1.8 transmissions are needed?

ex-ch12-18

Hard

An IR-HARQ system uses a rate-compatible code family with mother code rate Rmin⁑=1/4R_{\min} = 1/4. The initial transmission uses rate R1=3/4R_1 = 3/4, and each retransmission lowers the effective rate: R2=1/2R_2 = 1/2, R3=1/3R_3 = 1/3, R4=1/4R_4 = 1/4.

At a given SNR, the packet success probabilities are: P1=0.4P_1 = 0.4, P2=0.8P_2 = 0.8, P3=0.95P_3 = 0.95, P4=0.99P_4 = 0.99.

(a) Compute the average number of transmissions.

(b) Compute the average throughput in bits/channel use.

(c) Compare with Chase combining if P1CC=0.4P_1^{\text{CC}} = 0.4, P2CC=0.65P_2^{\text{CC}} = 0.65, P3CC=0.85P_3^{\text{CC}} = 0.85.

ex-ch12-19

Medium

On a Rayleigh fading channel, uncoded BPSK achieves BER=10βˆ’3\text{BER} = 10^{-3} at Eb/N0=24E_b/N_0 = 24 dB.

(a) A rate-1/2 code with dmin⁑=7d_{\min} = 7 is used with sufficient interleaving. What is the diversity order?

(b) Estimate the coding gain at BER=10βˆ’3\text{BER} = 10^{-3} using the high-SNR approximation BER∝(Eb/N0)βˆ’dmin⁑\text{BER} \propto (E_b/N_0)^{-d_{\min}}.

(c) At what approximate Eb/N0E_b/N_0 would BER=10βˆ’6\text{BER} = 10^{-6} be achieved with and without coding?

ex-ch12-20

Challenge

You are designing the physical layer for a wireless system with:

  • Bandwidth: 20 MHz
  • Required data rate: 50 Mbps
  • Target BER: 10βˆ’610^{-6}
  • Channel: Rayleigh fading, fd=200f_d = 200 Hz
  • Modulation: 64-QAM (m=6m = 6 bits/symbol)

(a) Determine the minimum code rate needed to meet the data rate.

(b) Select an appropriate coding scheme and justify your choice.

(c) Compute the required interleaving depth and resulting delay.

(d) Should the system use HARQ? If so, which type?