Skip to main content

Chapter 6 · 8 hours

Baseband Digital Data Transmission

IOE past exam questions

Past questions and answers

66 questions set from this chapter, 9 of them more than once. Most asked first.

  • Asked 5 times
  • 2081 Bhadra (CS II) · 4 marks
  • 2076 Chaitra (CS II) · 5 marks
  • 2072 Kartik (CS II) · 4 marks
  • 2072 Chaitra (CS II) · 2.5 marks
  • 2069 Chaitra (CS II) · 4 marks

Write a short note on the eye diagram.

Answer

An eye diagram is an oscilloscope display of a received digital baseband signal. It is made by overlaying many bit intervals on top of each other: the scope is triggered by the symbol clock and the sweep is set to one or two symbol periods. The pattern looks like an eye. Its shape shows at a glance how much ISI and noise the signal has.

   ____________     ____________
  /            \   /            \
 /   .------.   \ /   .------.   \
|   (  open  )   X   (  open  )   |
 \   '------'   / \   '------'   /
  \____________/   \____________/
     ^    ^
     |    best sampling instant
     eye opening (noise margin)

What the eye shows:

  • Eye opening (height): the noise margin. A wider vertical opening means more noise can be tolerated.
  • Eye width: the time range in which the signal can be sampled without errors.
  • Best sampling time: where the eye opening is greatest.
  • Slope of the sides: how sensitive the system is to timing error. Steeper sides mean more sensitive.
  • Thickness of the crossing (zero-crossing spread): the amount of timing jitter.
  • Distortion at the sampling time: the spread of the lines at the top and bottom shows the amount of ISI.

Use: If ISI or noise is severe, the eye closes, and errors become likely. Engineers use the eye diagram to adjust equalisers, choose pulse shaping (e.g. raised-cosine roll-off), set the decision threshold and sampling time, and quickly check the quality of a link.

  • Asked 3 times
  • 2079 Bhadra (CS II) · 5 marks
  • 2075 Chaitra (CS II) · 5 marks
  • 2072 Chaitra (CS II) · 2.5 marks

Write a short note on M-ary baseband communication system.

Answer

In an M-ary baseband system, the transmitter does not send one bit per pulse. It groups k=log⁡2Mk = \log_2 M bits into one symbol and sends one of MM distinct pulse amplitudes (M-ary PAM) for each symbol. Binary transmission is the special case M=2M = 2.

Working

  • The bit stream is split into groups of kk bits, e.g. M=4M = 4 gives 2 bits per symbol.
  • Each group is mapped (usually with Gray code) to one of the levels ±1,±3,…,±(M−1)\pm 1, \pm 3, \dots, \pm (M-1) times AA.
  • The receiver samples each symbol and compares it with M−1M - 1 thresholds to decide the level, then maps the level back to bits.
 4-ary PAM (Gray coded)
 +3A  --  10
 +1A  --  11
 -1A  --  01
 -3A  --  00
 bits 10 01 11 00 -> levels +3A -1A +1A -3A

Key relations

Rs=Rblog⁡2M,Bmin=Rs2=Rb2log⁡2MR_s = \frac{R_b}{\log_2 M}, \qquad B_{min} = \frac{R_s}{2} = \frac{R_b}{2 \log_2 M}

So for the same bit rate, the needed bandwidth falls by a factor of log⁡2M\log_2 M. The bandwidth efficiency rises to 2log⁡2M2\log_2 M b/s/Hz (Nyquist).

Advantages

  • Higher data rate in a band-limited channel (e.g. telephone lines, 2B1Q in ISDN).
  • Lower symbol rate, so less ISI and slower symbol timing.

Disadvantages

  • For the same peak power, the levels are closer together, so the noise margin is smaller and the error probability rises. Keeping the same error rate needs more transmit power (roughly 6 dB more for each doubling of MM at large MM).
  • The receiver needs more decision thresholds and accurate gain control.

M-ary signalling therefore trades power for bandwidth.

  • Asked 2 times
  • 2079 Chaitra (CS I) · 2×5 marks
  • 2067 Shrawan (CS I) · 5×2 marks

Define unipolar, polar, bi-polar, unipolar RZ and Manchester line codes.

Answer

Line codes are electrical waveforms used to represent binary data for transmission over a baseband channel. Each code below is shown for the example bits 10110, with bit period TbT_b and level VV.

Unipolar (NRZ) code

Binary 1 is sent as +V+V for the full bit period, and binary 0 as zero voltage. It is simple, but it has a DC component, and long strings of 1s or 0s carry no timing information.

Unipolar NRZ

    1   0   1   1   0  
+V ────|   |───────|   
 0     |───|       |───

Polar (NRZ) code

Binary 1 is sent as +V+V and binary 0 as −V-V for the full bit period. There is no DC component for equally likely bits, and it has the best noise immunity of these codes for a given power. Long runs still give no transitions.

Polar NRZ

    1   0   1   1   0  
+V ────|   |───────|   
-V     |───|       |───

Bipolar (AMI) code

Binary 0 is sent as zero voltage. Binary 1s are sent as pulses of alternating polarity, +V,−V,+V,…+V, -V, +V, \dots, usually half-width (RZ). It has no DC component and narrow bandwidth, and two 1s of the same polarity in a row show an error has occurred. A long run of 0s loses timing; HDB3 and B8ZS solve this.

Bipolar (AMI, RZ)

    1   0   1   1   0  
+V ──|         |─|     
 0   |─────| |─| |─────
-V         |─|         

Unipolar RZ code

Binary 1 is sent as +V+V for the first half of the bit, then returns to zero. Binary 0 is zero for the whole bit. Each 1 gives a transition that helps timing, but the bandwidth is double that of NRZ and there is a DC component.

Unipolar RZ

    1   0   1   1   0  
+V ──|     |─| |─|     
 0   |─────| |─| |─────

Manchester (split-phase) code

Each bit has a transition at its middle. Binary 1 is +V+V for the first half and −V-V for the second half; binary 0 is the reverse. It has no DC component and is self-clocking, which is why it is used in 10 Mb/s Ethernet. The cost is double the bandwidth of NRZ.

Manchester

    1   0   1   1   0  
+V ──|   |───| |─|   |─
-V   |───|   |─| |───| 
  • Asked 2 times
  • 2080 Baisakh (CS II) · 6+4 marks
  • 2075 Asoj (CS II) · 6+4 marks

Explain Shannon Hartley channel capacity theorem and its implication and theoretical limits. Show that channel capacity is 1.44S/N₀, when channel bandwidth tends to infinity.

Answer

Shannon–Hartley theorem

The Shannon–Hartley theorem gives the channel capacity CC: the highest bit rate that can be sent over a band-limited channel with additive white Gaussian noise (AWGN) with an arbitrarily small error probability.

C=Blog⁡2 ⁣(1+SN) b/s,N=N0BC = B \log_2\!\left(1 + \frac{S}{N}\right)\ \text{b/s}, \qquad N = N_0 B

where BB is the bandwidth (Hz), SS the average signal power, and N0/2N_0/2 the two-sided noise power spectral density.

If the information rate R≤CR \le C, a coding scheme exists that makes the error probability as small as we like. If R>CR > C, errors cannot be made arbitrarily small, whatever coding is used.

Implications

  • Bandwidth–SNR trade-off: the same capacity can be reached with a wide band and low SNR (e.g. spread spectrum) or a narrow band and high SNR (e.g. M-ary QAM).
  • Capacity grows linearly with B but only logarithmically with S/N. Doubling the power adds only about BB b/s at high SNR.
  • It gives a benchmark: practical modems and codes (turbo, LDPC) are judged by how close they come to CC.
  • It proves that error-free communication is possible over noisy channels with proper coding. It does not say how to build the code.

Theoretical limits

  • Ideal system: R=CR = C. Writing S=EbCS = E_b C:
CB=log⁡2 ⁣(1+EbN0CB)⇒EbN0=2C/B−1C/B\frac{C}{B} = \log_2\!\left(1 + \frac{E_b}{N_0}\frac{C}{B}\right) \Rightarrow \frac{E_b}{N_0} = \frac{2^{C/B} - 1}{C/B}
  • As C/B→0C/B \to 0 (infinite bandwidth), Eb/N0→ln⁡2=0.693E_b/N_0 \to \ln 2 = 0.693, i.e. −1.6 dB. This is the Shannon limit: below it, no error-free transmission is possible at any bandwidth.
  • Increasing bandwidth alone cannot give unlimited capacity, because noise power N0BN_0 B also grows (shown below).

Capacity with infinite bandwidth

C=Blog⁡2 ⁣(1+SN0B)C = B \log_2\!\left(1 + \frac{S}{N_0 B}\right)

Let x=SN0Bx = \dfrac{S}{N_0 B}, so B=SN0xB = \dfrac{S}{N_0 x}. As B→∞B \to \infty, x→0x \to 0:

C=SN0⋅1xlog⁡2(1+x)=SN0log⁡2(1+x)1/xC∞=lim⁡x→0SN0log⁡2(1+x)1/x=SN0log⁡2e=SN0×1.4427≈1.44SN0\begin{aligned} C &= \frac{S}{N_0} \cdot \frac{1}{x} \log_2(1 + x) = \frac{S}{N_0} \log_2 (1+x)^{1/x} \\ C_\infty &= \lim_{x \to 0} \frac{S}{N_0} \log_2 (1+x)^{1/x} = \frac{S}{N_0} \log_2 e \\ &= \frac{S}{N_0} \times 1.4427 \approx 1.44 \frac{S}{N_0} \end{aligned}

using lim⁡x→0(1+x)1/x=e\lim_{x \to 0} (1+x)^{1/x} = e and log⁡2e=1/ln⁡2=1.4427\log_2 e = 1/\ln 2 = 1.4427.

So even with infinite bandwidth, the capacity stays finite at C∞≈1.44 S/N0C_\infty \approx 1.44\, S/N_0 b/s. Capacity can be raised only by raising the signal power or lowering the noise density.

  • Asked 2 times
  • 2074 Asoj (CS II) · 4+3+3 marks
  • 2072 Chaitra (CS II) · 2+6 marks

Explain intersymbol interference (ISI) in baseband digital communication system with derivations. Also explain the ideal and practical solutions of ISI.

Answer

Intersymbol interference (ISI)

ISI is the spreading of each transmitted pulse beyond its own symbol interval because the channel's bandwidth is limited. Tails of earlier and later pulses then add to the sample of the current symbol, which can cause decision errors.

Derivation. The baseband PAM signal at the receiver filter output is

y(t)=μ∑kak p(t−kTb)+n(t)y(t) = \mu \sum_{k} a_k \, p(t - kT_b) + n(t)

where aka_k are the symbols, p(t)p(t) is the overall pulse shape (normalised so p(0)=1p(0) = 1) and n(t)n(t) is noise. Sampling at ti=iTbt_i = iT_b:

y(ti)=μai⏟wanted+μ∑k≠iak p((i−k)Tb)⏟ISI+n(ti)y(t_i) = \underbrace{\mu a_i}_{\text{wanted}} + \underbrace{\mu \sum_{k \ne i} a_k \, p\big((i-k)T_b\big)}_{\text{ISI}} + n(t_i)

The middle term is the ISI. It is zero only when p(nTb)=0p(nT_b) = 0 for all n≠0n \ne 0.

  pulse k-1     pulse k      pulse k+1
     /\           /\           /\
 ___/  \___...___/  \___...___/  \___
          tails overlap at sampling
          instants -> ISI

Ideal solution: Nyquist (sinc) pulse

Nyquist criterion for zero ISI

If p(t)p(t) is the overall pulse (transmit filter, channel and receive filter), ISI is zero when

p(nTb)={1,n=00,n≠0p(nT_b) = \begin{cases} 1, & n = 0 \\ 0, & n \ne 0 \end{cases}

In the frequency domain this is

∑k=−∞∞P ⁣(f−kTb)=Tb(constant)\sum_{k=-\infty}^{\infty} P\!\left(f - \frac{k}{T_b}\right) = T_b \quad \text{(constant)}

That is, copies of the pulse spectrum shifted by multiples of Rb=1/TbR_b = 1/T_b must add up to a flat spectrum.

The ideal solution uses an ideal rectangular spectrum of bandwidth B0=Rb/2B_0 = R_b/2:

P(f)=12B0 rect ⁣(f2B0)  ⇒  p(t)=sinc(2B0t)=sin⁡2πB0t2πB0tP(f) = \frac{1}{2B_0}\,\text{rect}\!\left(\frac{f}{2B_0}\right) \;\Rightarrow\; p(t) = \text{sinc}(2B_0 t) = \frac{\sin 2\pi B_0 t}{2\pi B_0 t}

This pulse is zero at every t=nTbt = nT_b (n≠0n \ne 0), so ISI is zero. It needs the minimum bandwidth Rb/2R_b/2 (the Nyquist bandwidth).

It is not practical because:

  • the brick-wall filter cannot be built, and
  • the sinc tails decay only as 1/t1/t, so a small timing error causes large ISI.

Practical solution: raised-cosine spectrum

The spectrum is given a gradual cosine roll-off from f1f_1 to 2B0−f12B_0 - f_1, with roll-off factor α=1−f1/B0\alpha = 1 - f_1/B_0 (0≤α≤10 \le \alpha \le 1):

P(f)={12B0,∣f∣<f114B0[1+cos⁡π(∣f∣−f1)2B0−2f1],f1≤∣f∣<2B0−f10,∣f∣≥2B0−f1P(f) = \begin{cases} \dfrac{1}{2B_0}, & |f| < f_1 \\[4pt] \dfrac{1}{4B_0}\left[1 + \cos\dfrac{\pi(|f| - f_1)}{2B_0 - 2f_1}\right], & f_1 \le |f| < 2B_0 - f_1 \\[4pt] 0, & |f| \ge 2B_0 - f_1 \end{cases} p(t)=sinc(2B0t) cos⁡2παB0t1−16α2B02t2,BT=B0(1+α)=Rb2(1+α)p(t) = \text{sinc}(2B_0 t)\,\frac{\cos 2\pi\alpha B_0 t}{1 - 16\alpha^2 B_0^2 t^2}, \qquad B_T = B_0(1 + \alpha) = \frac{R_b}{2}(1+\alpha)
  • It still has zeros at all nTbnT_b, so ISI is zero.
  • The tails decay as 1/t31/t^3, so it tolerates timing error well.
  • The filter can be built. The cost is extra bandwidth: α=0.5\alpha = 0.5 needs 0.75Rb0.75R_b, and α=1\alpha = 1 needs RbR_b.

Other practical remedies are equalisers (e.g. a tapped-delay-line zero-forcing equaliser) to correct channel distortion, and correlative (duobinary) coding, which allows controlled ISI at the Nyquist bandwidth.

  • Asked 2 times
  • 2073 Shrawan (CS II) · 4 marks
  • 2070 Chaitra (CS II) · 4 marks

Given the binary sequence 1011001010 represent it in Polar NRZ, Polar RZ, Manchester and AMI codes.

Answer

Bit sequence: 1 0 1 1 0 0 1 0 1 0, bit period TbT_b, levels ±V\pm V. Each bit is 4 characters wide in the drawings.

Conventions used: Manchester sends 1 as a +V half followed by a −V half, and 0 as −V then +V (Lathi/Haykin; the IEEE 802.3 convention is the opposite). AMI sends alternate 1s as half-width +V and −V pulses, starting with +V, and 0 as no pulse.

Polar NRZ (1 → +V, 0 → −V, full bit)

    1   0   1   1   0   0   1   0   1   0  
+V ────|   |───────|       |───|   |───|   
-V     |───|       |───────|   |───|   |───

Polar RZ (1 → +V, 0 → −V, for half bit, then 0)

    1   0   1   1   0   0   1   0   1   0  
+V ──|     |─| |─|         |─|     |─|     
 0   |─| |─| |─| |─| |─| |─| |─| |─| |─| |─
-V     |─|         |─| |─|     |─|     |─| 

Manchester

    1   0   1   1   0   0   1   0   1   0  
+V ──|   |───| |─|   |─| |───|   |───|   |─
-V   |───|   |─| |───| |─|   |───|   |───| 

AMI (bipolar RZ)

    1   0   1   1   0   0   1   0   1   0  
+V ──|         |─|                 |─|     
 0   |─────| |─| |─────────| |─────| |─────
-V         |─|             |─|             

AMI pulse polarities for the 1s: + − + − + (the 0s are 0).

  • Asked 2 times
  • 2072 Kartik (CS II) · 2+2+4 marks
  • 2071 Shrawan (CS II) · 2+2+6 marks

What is ISI? State Nyquist pulse shaping criteria for zero ISI. Explain duo-binary encoding with example.

Answer

ISI

Intersymbol interference (ISI) is the overlap of a pulse with the neighbouring symbol intervals. A band-limited channel (or filter) spreads each pulse in time, so the tails of nearby pulses add to the sample of the current symbol:

y(iTb)=μai+μ∑k≠iak p((i−k)Tb)+n(iTb)y(iT_b) = \mu a_i + \mu \sum_{k \ne i} a_k\, p\big((i-k)T_b\big) + n(iT_b)

The summation term is the ISI. It closes the eye diagram and raises the bit error rate.

Nyquist criterion for zero ISI

If p(t)p(t) is the overall pulse (transmit filter, channel and receive filter), ISI is zero when

p(nTb)={1,n=00,n≠0p(nT_b) = \begin{cases} 1, & n = 0 \\ 0, & n \ne 0 \end{cases}

In the frequency domain this is

∑k=−∞∞P ⁣(f−kTb)=Tb(constant)\sum_{k=-\infty}^{\infty} P\!\left(f - \frac{k}{T_b}\right) = T_b \quad \text{(constant)}

That is, copies of the pulse spectrum shifted by multiples of Rb=1/TbR_b = 1/T_b must add up to a flat spectrum.

  • Ideal Nyquist pulse: p(t)=sinc(Rbt)p(t) = \text{sinc}(R_b t) with bandwidth B0=Rb/2B_0 = R_b/2 (the minimum possible). It cannot be built, and its slow tails are sensitive to timing error.
  • Raised-cosine pulse: bandwidth BT=Rb2(1+α)B_T = \frac{R_b}{2}(1+\alpha), 0≤α≤10 \le \alpha \le 1. It still gives zero ISI, its tails decay fast, and it can be built.

Duobinary encoding

Duobinary signalling (a correlative-level coding scheme) adds each binary symbol to the one before it. This brings in a controlled amount of ISI that the receiver knows and can remove, and in return the data can be sent at RbR_b b/s in the minimum Nyquist bandwidth Rb/2R_b/2 with realisable filters.

Encoder: with ak=±1a_k = \pm 1,

ck=ak+ak−1,ck∈{−2,0,+2}c_k = a_k + a_{k-1}, \qquad c_k \in \{-2, 0, +2\}

This is equal to passing aka_k through H(f)=1+e−j2πfTbH(f) = 1 + e^{-j2\pi f T_b}. With the ideal Nyquist filter, the overall response becomes

HI(f)=2cos⁡(πfTb) e−jπfTb,∣f∣≤12TbH_I(f) = 2\cos(\pi f T_b)\, e^{-j\pi f T_b}, \quad |f| \le \frac{1}{2T_b}

This is a smooth half-cosine, which is easy to approximate with a real filter.

 b_k->[Precoder]->[2d-1]-a_k-+---->(+)-c_k->[LPF]-> out
      d_k=b_k XOR d_k-1     |      ^
                            +-[Tb]-+

Decoder (without precoding): a^k=ck−a^k−1\hat a_k = c_k - \hat a_{k-1}. One wrong decision then spreads to the bits that follow (error propagation).

Precoding removes this. Use dk=bk⊕dk−1d_k = b_k \oplus d_{k-1} and send ak=2dk−1a_k = 2d_k - 1. Then the receiver decides each bit on its own: ∣ck∣=0⇒bk=1|c_k| = 0 \Rightarrow b_k = 1, and ∣ck∣=2⇒bk=0|c_k| = 2 \Rightarrow b_k = 0.

Example: input bkb_k = 1011001, with initial reference d−1=0d_{-1} = 0 (so a−1=−1a_{-1} = -1).

kk0123456
bkb_k1011001
dk=bk⊕dk−1d_k = b_k \oplus d_{k-1}1101110
aka_k+1+1−1+1+1+1−1
ck=ak+ak−1c_k = a_k + a_{k-1}0+200+2+20
Decision (ck=0→1c_k = 0 \to 1, else 0)1011001

The decoded sequence 1011001 equals the input. Each bit is decided on its own, so there is no error propagation.

  • Asked 2 times
  • 2072 Chaitra (CS II) · 2+3 marks
  • 2071 Chaitra (CS II) · 1+3 marks

Explain Shannon channel capacity theorem. Write down theoretical limitations of this theorem.

Answer

Shannon channel capacity theorem

For a channel of bandwidth BB Hz with additive white Gaussian noise, the maximum rate of error-free information transfer is

C=Blog⁡2 ⁣(1+SN) b/sC = B \log_2\!\left(1 + \frac{S}{N}\right)\ \text{b/s}

where S/NS/N is the signal-to-noise power ratio, with N=N0BN = N_0 B. If the information rate R≤CR \le C, suitable coding can make the error probability as small as desired. If R>CR > C, it cannot. Example: a telephone channel with B=3.1B = 3.1 kHz and S/N=30S/N = 30 dB (1000) has C=3100log⁡21001≈30.9C = 3100 \log_2 1001 \approx 30.9 kb/s.

Theoretical limitations

  • It gives a limit, not a method. It proves good codes exist but does not show how to build them. Reaching CC needs very long code words, so delay and complexity become very large.
  • Infinite bandwidth gives finite capacity: as B→∞B \to \infty, C→1.44 S/N0C \to 1.44\, S/N_0, because noise power grows with bandwidth.
  • Shannon limit: reliable transmission needs Eb/N0≥ln⁡2E_b/N_0 \ge \ln 2 (−1.6 dB), even with unlimited bandwidth.
  • Only for AWGN. It assumes Gaussian, white, additive noise and a linear, band-limited channel. Fading, impulse noise, interference and non-linearity are not covered.
  • It assumes Gaussian-distributed signals and average power limits. Real systems with fixed constellations fall short of CC.
  • Capacity grows only logarithmically with SNR, so raising power gives diminishing returns.
  • Asked 2 times
  • 2072 Chaitra (CS II) · 4 marks
  • 2071 Chaitra (CS II) · 4 marks

Represent binary sequence 1001001101 in polar NRZ, polar RZ, Manchester and AMI codes.

Answer

Bit sequence: 1 0 0 1 0 0 1 1 0 1, bit period TbT_b, levels ±V\pm V.

Conventions used: Manchester sends 1 as a +V half followed by a −V half, and 0 as −V then +V (Lathi/Haykin; the IEEE 802.3 convention is the opposite). AMI sends alternate 1s as half-width +V and −V pulses, starting with +V, and 0 as no pulse.

Polar NRZ (1 → +V, 0 → −V)

    1   0   0   1   0   0   1   1   0   1  
+V ────|       |───|       |───────|   |───
-V     |───────|   |───────|       |───|   

Polar RZ (half-width pulses)

    1   0   0   1   0   0   1   1   0   1  
+V ──|         |─|         |─| |─|     |─| 
 0   |─| |─| |─| |─| |─| |─| |─| |─| |─| |─
-V     |─| |─|     |─| |─|         |─|     

Manchester

    1   0   0   1   0   0   1   1   0   1  
+V ──|   |─| |───|   |─| |───| |─|   |───| 
-V   |───| |─|   |───| |─|   |─| |───|   |─

AMI (bipolar RZ)

    1   0   0   1   0   0   1   1   0   1  
+V ──|                     |─|         |─| 
 0   |─────────| |─────────| |─| |─────| |─
-V             |─|             |─|         

AMI: the five 1s get polarities + − + − +. Polar RZ and Manchester give a transition in every bit, which helps clock recovery. AMI has no DC component.

  • 2081 Chaitra · 10 marks

Consider that the bit sequence 100000000001101 is to be transmitted. Draw the resulting waveform if the sequence is transmitted using Polar RZ, Differential Manchester, HDB3 and B8ZS, and compare their bandwidths.

Answer

Bit sequence: 1 0 0 0 0 0 0 0 0 0 0 1 1 0 1 (15 bits: a 1, ten 0s, then 1101). Each waveform is drawn in two parts: bits 1–8, then bits 9–15.

Polar RZ

1 is sent as a +V pulse for half the bit, and 0 as a −V pulse for half the bit. The line returns to zero in the second half of every bit.

Polar RZ

    1   0   0   0   0   0   0   0  
+V ──|                             
 0   |─| |─| |─| |─| |─| |─| |─| |─
-V     |─| |─| |─| |─| |─| |─| |─| 

    0   0   0   1   1   0   1  
+V             |─| |─|     |─| 
 0   |─| |─| |─| |─| |─| |─| |─
-V ──| |─| |─|         |─|     

Differential Manchester

There is always a transition at the middle of each bit (used for the clock). Data is carried by the start of the bit: 0 = transition at the start, 1 = no transition at the start. The line is assumed to be at −V before the first bit.

Differential Manchester

    1   0   0   0   0   0   0   0  
+V   |─| |─| |─| |─| |─| |─| |─| |─
-V ──| |─| |─| |─| |─| |─| |─| |─| 

    0   0   0   1   1   0   1  
+V   |─| |─| |───|   |─| |───| 
-V ──| |─| |─|   |───| |─|   |─

HDB3 (High Density Bipolar 3)

HDB3 is AMI, except that every run of four 0s is replaced:

  • 000V if the number of pulses since the last substitution is odd,
  • B00V if it is even.

V (violation) has the same polarity as the pulse before it. B follows the normal AMI rule. This makes successive V pulses alternate, so no DC builds up.

  • Bit 1 → +.
  • Zeros 2–5: 1 pulse since start (odd) → 000V = 0 0 0 +.
  • Zeros 6–9: 0 pulses since the last V (even) → B00V = − 0 0 −.
  • Zeros 10–11 → 0 0.
  • 1101 → + − 0 +.

HDB3 pulses: + 0 0 0 + − 0 0 − 0 0 + − 0 +

HDB3 (half-width pulses)

    1   0   0   0   0   0   0   0  
+V ──|             |─|             
 0   |─────────────| |─| |─────────
-V                     |─|         

    0   0   0   1   1   0   1  
+V             |─|         |─| 
 0   |─────────| |─| |─────| |─
-V ──|             |─|         

B8ZS (Bipolar with 8-Zero Substitution)

B8ZS is AMI, except that every run of eight 0s is replaced by 000VB0VB. Taking the previous pulse as +, the substitute is 0 0 0 + − 0 − +.

  • Bit 1 → +.
  • Zeros 2–9 → 0 0 0 + − 0 − +.
  • Zeros 10–11 → 0 0.
  • 1101: the last pulse was +, so this gives − + 0 −.

B8ZS pulses: + 0 0 0 + − 0 − + 0 0 − + 0 −

B8ZS (half-width pulses)

    1   0   0   0   0   0   0   0  
+V ──|             |─|             
 0   |─────────────| |─| |─────| |─
-V                     |─|     |─| 

    0   0   0   1   1   0   1  
+V ──|             |─|         
 0   |─────────| |─| |─────| |─
-V             |─|         |─| 

Bandwidth comparison

CodeMain-lobe (first-null) bandwidthDC componentRemarks
Polar RZ2Rb2R_bNone (equiprobable bits)Pulses half-width, so double bandwidth
Differential Manchester2Rb2R_bNoneSelf-clocking, polarity-insensitive
HDB3RbR_b (most power near Rb/2R_b/2)NoneBipolar; keeps timing on long 0 runs (E1)
B8ZSRbR_b (most power near Rb/2R_b/2)NoneBipolar; keeps timing on long 0 runs (T1)

HDB3 and B8ZS need about half the bandwidth of polar RZ and differential Manchester, and they still keep timing information when long strings of 0s occur.

  • 2081 Chaitra · 7+2+3 marks

Encode "Engineer Ko Betha Arulai Ke Thaha" using Huffman Encoder and calculate the transmission efficiency. Find the codeword if the message is received as "Engineer Ko Betha Ke Ke".

Answer

Assumptions: upper and lower case are treated as the same letter, and the space is counted as a symbol because it must also be sent. The message "engineer ko betha arulai ke thaha" has 33 symbols, with 14 distinct symbols.

Huffman encoding

Huffman procedure: list the symbols by probability. Repeatedly combine the two least probable entries into one node whose weight is their sum, until only one node is left. In each merge, the first group listed gets bit 0 and the second group gets bit 1. Each symbol's code word is read from the root down to that symbol.

Merge steps (weights are counts out of 33):

  1. {g} (1) + {b} (1) → 2
  2. {o} (1) + {l} (1) → 2
  3. {i} (2) + {u} (1) → 3
  4. {n} (2) + {k} (2) → 4
  5. {t} (2) + {r} (2) → 4
  6. {o, l} (2) + {g, b} (2) → 4
  7. {i, u} (3) + {h} (3) → 6
  8. {t, r} (4) + {n, k} (4) → 8
  9. {space} (5) + {o, l, g, b} (4) → 9
  10. {e} (5) + {a} (5) → 10
  11. {t, r, n, k} (8) + {i, u, h} (6) → 14
  12. {e, a} (10) + {space, o, l, g, b} (9) → 19
  13. {e, a, space, o, l, g, b} (19) + {t, r, n, k, i, u, h} (14) → 33
SymbolCountpip_iCodelil_ipilip_i l_i
space55/33 = 0.151501030.4545
a55/33 = 0.151500130.4545
e55/33 = 0.151500030.4545
h33/33 = 0.090911130.2727
i22/33 = 0.0606110040.2424
k22/33 = 0.0606101140.2424
n22/33 = 0.0606101040.2424
r22/33 = 0.0606100140.2424
t22/33 = 0.0606100040.2424
b11/33 = 0.03030111150.1515
g11/33 = 0.03030111050.1515
l11/33 = 0.03030110150.1515
o11/33 = 0.03030110050.1515
u11/33 = 0.0303110140.1212

Average code length:

Lˉ=∑pili=11833=3.5758 bits/symbol\bar L = \sum p_i l_i = \frac{118}{33} = 3.5758\ \text{bits/symbol}

Here the numerator is the total number of bits in the encoded message: 5(3)+5(3)+5(3)+3(3)+2(4)+2(4)+2(4)+2(4)+2(4)+1(5)+1(5)+1(5)+1(5)+1(4)=1185(3) + 5(3) + 5(3) + 3(3) + 2(4) + 2(4) + 2(4) + 2(4) + 2(4) + 1(5) + 1(5) + 1(5) + 1(5) + 1(4) = 118 bits.

Entropy:

H=−∑pilog⁡2pi=3.5419 bits/symbolH = -\sum p_i \log_2 p_i = 3.5419\ \text{bits/symbol}

Efficiency:

η=HLˉ=3.54193.5758=0.9905=99.05%\eta = \frac{H}{\bar L} = \frac{3.5419}{3.5758} = 0.9905 = 99.05\%

Redundancy =1−η=0.95%= 1 - \eta = 0.95\%.

A fixed-length code for 14 symbols needs ⌈log⁡214⌉=4\lceil \log_2 14 \rceil = 4 bits/symbol (η=88.55%\eta = 88.55\%). Huffman saves 10.61% of the bits.

Answer: average length = 3.576 bits/symbol, entropy = 3.542 bits/symbol, transmission efficiency η ≈ 99.05%.

Codeword for the received message "Engineer Ko Betha Ke Ke"

Each character (including the 4 spaces) is replaced by its code from the table above:

PartCode
engineer000 1010 01110 1100 1010 000 000 1001
space010
ko1011 01100
space010
betha01111 000 1000 111 001
space010
ke1011 000
space010
ke1011 000

Full codeword (83 bits for 23 characters):

000 1010 01110 1100 1010 000
000 1001 010 1011 01100 010
01111 000 1000 111 001 010
1011 000 010 1011 000

The Huffman code is a prefix code, so the receiver can decode this bit stream without separators.

  • 2080 Chaitra · 8 marks

Encode the message "Mississippi is missing" using weighted Huffman code and calculate transmission efficiency.

Answer

Weighted Huffman coding builds the Huffman tree from the actual symbol counts (weights) in the message. Assumptions: case is ignored, and the space is counted as a symbol. The message "mississippi is missing" has 22 symbols and 7 distinct symbols: i = 7, s = 7, space = 2, m = 2, p = 2, g = 1, n = 1.

Huffman tree construction

Huffman procedure: list the symbols by probability. Repeatedly combine the two least probable entries into one node whose weight is their sum, until only one node is left. In each merge, the first group listed gets bit 0 and the second group gets bit 1. Each symbol's code word is read from the root down to that symbol.

  1. {n} (1) + {g} (1) → 2
  2. {m} (2) + {space} (2) → 4
  3. {n, g} (2) + {p} (2) → 4
  4. {n, g, p} (4) + {m, space} (4) → 8
  5. {s} (7) + {i} (7) → 14
  6. {s, i} (14) + {n, g, p, m, space} (8) → 22
                    (22)
                0 /      \ 1
              (14)        (8)
            0/   \1     0/   \1
           s:7   i:7  (4)     (4)
                     0/ \1   0/  \1
                   (2)  p:2  m:2  sp:2
                  0/ \1
                 n:1  g:1

Code table

SymbolCountpip_iCodelil_ipilip_i l_i
i77/22 = 0.31820120.6364
s77/22 = 0.31820020.6364
space22/22 = 0.090911130.2727
m22/22 = 0.090911030.2727
p22/22 = 0.090910130.2727
g11/22 = 0.0455100140.1818
n11/22 = 0.0455100040.1818

Efficiency

Average code length:

Lˉ=∑pili=5422=2.4545 bits/symbol\bar L = \sum p_i l_i = \frac{54}{22} = 2.4545\ \text{bits/symbol}

Here the numerator is the total number of bits in the encoded message: 7(2)+7(2)+2(3)+2(3)+2(3)+1(4)+1(4)=547(2) + 7(2) + 2(3) + 2(3) + 2(3) + 1(4) + 1(4) = 54 bits.

Entropy:

H=−∑pilog⁡2pi=2.4002 bits/symbolH = -\sum p_i \log_2 p_i = 2.4002\ \text{bits/symbol}

Efficiency:

η=HLˉ=2.40022.4545=0.9779=97.79%\eta = \frac{H}{\bar L} = \frac{2.4002}{2.4545} = 0.9779 = 97.79\%

Redundancy =1−η=2.21%= 1 - \eta = 2.21\%.

A fixed-length code for 7 symbols needs ⌈log⁡27⌉=3\lceil \log_2 7 \rceil = 3 bits/symbol (η=80.01%\eta = 80.01\%). Huffman saves 18.18% of the bits.

Answer: Lˉ=2.455\bar L = 2.455 bits/symbol, H=2.400H = 2.400 bits/symbol, transmission efficiency η ≈ 97.79%. The whole message takes 54 bits, compared with 66 bits using a 3-bit fixed code.

  • 2080 Chaitra · 6 marks

Represent the given binary sequence 110011000001 in unipolar RZ, Manchester and HDB3 encoders.

Answer

Bit sequence: 1 1 0 0 1 1 0 0 0 0 0 1 (12 bits), bit period TbT_b, levels ±V\pm V.

Unipolar RZ

1 is sent as +V for the first half of the bit, then 0. A 0 is sent as no pulse.

Unipolar RZ

    1   1   0   0   1   1   0   0   0   0   0   1  
+V ──| |─|         |─| |─|                     |─| 
 0   |─| |─────────| |─| |─────────────────────| |─

Manchester

Every bit has a transition at its middle. 1 = +V then −V, and 0 = −V then +V (Lathi/Haykin convention; IEEE 802.3 uses the opposite).

Manchester

    1   1   0   0   1   1   0   0   0   0   0   1  
+V ──| |─|   |─| |───| |─|   |─| |─| |─| |─| |───| 
-V   |─| |───| |─|   |─| |───| |─| |─| |─| |─|   |─

HDB3

HDB3 is AMI, except that every run of four 0s is replaced by 000V (if an odd number of pulses have been sent since the last substitution) or B00V (if even). V has the same polarity as the previous pulse. B follows the AMI rule (opposite to the previous pulse).

  • Bits 1 to 6 (110011): AMI gives + − 0 0 + −.
  • Bits 7 to 10 (0000): 4 pulses have been sent since the start, which is even, so this becomes B00V. The previous pulse is −, so B = + and V = +: + 0 0 +.
  • Bits 11 and 12 (01): 0 stays 0. The 1 must be opposite to the last pulse (+), so it is −.

HDB3 pulses: + − 0 0 + − + 0 0 + 0 −

HDB3 (half-width pulses)

    1   1   0   0   1   1   0   0   0   0   0   1  
+V ──|             |─|     |─|         |─|         
 0   |─| |─────────| |─| |─| |─────────| |─────| |─
-V     |─|             |─|                     |─| 
  • 2079 Chaitra · 10 marks

What is the aim of source coding? Encode "Kun Mandir Ma Janchhau Yatri" using Huffman codes and find its efficiency.

Answer

Aim of source coding

Source coding represents the output of an information source with as few bits as possible, while still allowing the receiver to recover it exactly (lossless coding) or acceptably (lossy coding). Its aims are:

  • Remove redundancy: give short code words to frequent symbols and long ones to rare symbols, so the average code length Lˉ\bar L approaches the entropy HH (Shannon's source coding theorem: Lˉ≥H\bar L \ge H).
  • Raise efficiency η=H/Lˉ\eta = H/\bar L towards 100%.
  • Lower the bit rate, which saves bandwidth, storage and transmission power.
  • Produce a uniquely decodable (prefix) code so the receiver can decode it without separators.

Examples are Huffman, Shannon–Fano and LZW coding, as well as speech and image compression.

Huffman coding of "Kun Mandir Ma Janchhau Yatri"

Assumptions: case is ignored, and the space is counted as a symbol. The message has 28 symbols and 14 distinct symbols.

Huffman procedure: list the symbols by probability. Repeatedly combine the two least probable entries into one node whose weight is their sum, until only one node is left. In each merge, the first group listed gets bit 0 and the second group gets bit 1. Each symbol's code word is read from the root down to that symbol.

Merge steps:

  1. {d} (1) + {c} (1) → 2
  2. {k} (1) + {j} (1) → 2
  3. {y} (1) + {t} (1) → 2
  4. {i} (2) + {h} (2) → 4
  5. {r} (2) + {m} (2) → 4
  6. {d, c} (2) + {u} (2) → 4
  7. {y, t} (2) + {k, j} (2) → 4
  8. {space} (4) + {n} (3) → 7
  9. {r, m} (4) + {i, h} (4) → 8
  10. {y, t, k, j} (4) + {d, c, u} (4) → 8
  11. {space, n} (7) + {a} (5) → 12
  12. {y, t, k, j, d, c, u} (8) + {r, m, i, h} (8) → 16
  13. {y, t, k, j, d, c, u, r, m, i, h} (16) + {space, n, a} (12) → 28
SymbolCountpip_iCodelil_ipilip_i l_i
a55/28 = 0.17861120.3571
space44/28 = 0.142910030.4286
n33/28 = 0.107110130.3214
h22/28 = 0.0714011140.2857
i22/28 = 0.0714011040.2857
m22/28 = 0.0714010140.2857
r22/28 = 0.0714010040.2857
u22/28 = 0.0714001140.2857
c11/28 = 0.03570010150.1786
d11/28 = 0.03570010050.1786
j11/28 = 0.03570001150.1786
k11/28 = 0.03570001050.1786
t11/28 = 0.03570000150.1786
y11/28 = 0.03570000050.1786

Average code length:

Lˉ=∑pili=10128=3.6071 bits/symbol\bar L = \sum p_i l_i = \frac{101}{28} = 3.6071\ \text{bits/symbol}

Here the numerator is the total number of bits in the encoded message: 5(2)+4(3)+3(3)+2(4)+2(4)+2(4)+2(4)+2(4)+1(5)+1(5)+1(5)+1(5)+1(5)+1(5)=1015(2) + 4(3) + 3(3) + 2(4) + 2(4) + 2(4) + 2(4) + 2(4) + 1(5) + 1(5) + 1(5) + 1(5) + 1(5) + 1(5) = 101 bits.

Entropy:

H=−∑pilog⁡2pi=3.5801 bits/symbolH = -\sum p_i \log_2 p_i = 3.5801\ \text{bits/symbol}

Efficiency:

η=HLˉ=3.58013.6071=0.9925=99.25%\eta = \frac{H}{\bar L} = \frac{3.5801}{3.6071} = 0.9925 = 99.25\%

Redundancy =1−η=0.75%= 1 - \eta = 0.75\%.

A fixed-length code for 14 symbols needs ⌈log⁡214⌉=4\lceil \log_2 14 \rceil = 4 bits/symbol (η=89.50%\eta = 89.50\%). Huffman saves 9.82% of the bits.

Answer: Lˉ=3.607\bar L = 3.607 bits/symbol, H=3.580H = 3.580 bits/symbol, efficiency η ≈ 99.25%. The message needs 101 bits instead of 112 bits with a 4-bit fixed code.

  • 2079 Chaitra · 6+2 marks

Given the binary sequence 1101010111 represent in Unipolar RZ, Bipolar NRZ, Polar NRZ and Manchester encoders. Explain communication impairments with examples.

Answer

Line codes for 1101010111

Bit period TbT_b, levels ±V\pm V. Bipolar NRZ is drawn as full-width pulses whose polarity alternates for each 1. Manchester uses 1 = +V then −V, and 0 = −V then +V.

Unipolar RZ

    1   1   0   1   0   1   0   1   1   1  
+V ──| |─|     |─|     |─|     |─| |─| |─| 
 0   |─| |─────| |─────| |─────| |─| |─| |─

Bipolar NRZ (1s alternate +V/−V, 0 = 0)

    1   1   0   1   0   1   0   1   1   1  
+V ────|       |───|           |───|   |───
 0     |   |───|   |───|   |───|   |   |   
-V     |───|           |───|       |───|   

Polar NRZ

    1   1   0   1   0   1   0   1   1   1  
+V ────────|   |───|   |───|   |───────────
-V         |───|   |───|   |───|           

Manchester

    1   1   0   1   0   1   0   1   1   1  
+V ──| |─|   |───|   |───|   |───| |─| |─| 
-V   |─| |───|   |───|   |───|   |─| |─| |─

Communication impairments

Impairments are the effects of the channel that make the received signal differ from the transmitted one.

  • Attenuation: the signal loses energy with distance. Example: a voice signal on a long copper line becomes weak, so repeaters or amplifiers are needed.
  • Distortion: different frequency components are attenuated or delayed by different amounts, so the pulse shape changes. Example: pulses spread on a band-limited telephone line and cause ISI.
  • Noise: unwanted random signals add to the signal. Examples are thermal noise in receivers, crosstalk between adjacent pairs in a cable, and impulse noise from lightning or switching.
  • 2078 Chaitra · 2+2+2+2 marks

Represent 100111010 using following encoders. a) Polar RZ b) Bipolar NRZ c) AMI d) Manchester

Answer

Bit sequence: 1 0 0 1 1 1 0 1 0, bit period TbT_b, levels ±V\pm V. The first 1 is taken as positive for the bipolar codes. Bipolar NRZ uses full-width pulses whose polarity alternates for each 1. AMI uses the same alternation with half-width (RZ) pulses.

a) Polar RZ

1 → +V for half the bit, 0 → −V for half the bit, then return to 0.

Polar RZ

    1   0   0   1   1   1   0   1   0  
+V ──|         |─| |─| |─|     |─|     
 0   |─| |─| |─| |─| |─| |─| |─| |─| |─
-V     |─| |─|             |─|     |─| 

b) Bipolar NRZ

0 → 0 V. Each 1 → full-width pulse with polarity alternating + − + − +.

Bipolar NRZ

    1   0   0   1   1   1   0   1   0  
+V ────|           |───|       |───|   
 0     |───────|   |   |   |───|   |───
-V             |───|   |───|           

c) AMI

0 → 0 V. Each 1 → half-width pulse with polarity alternating + − + − +.

AMI (RZ)

    1   0   0   1   1   1   0   1   0  
+V ──|             |─|         |─|     
 0   |─────────| |─| |─| |─────| |─────
-V             |─|     |─|             

d) Manchester

Transition at every mid-bit: 1 → +V then −V, 0 → −V then +V.

Manchester

    1   0   0   1   1   1   0   1   0  
+V ──|   |─| |───| |─| |─|   |───|   |─
-V   |───| |─|   |─| |─| |───|   |───| 
  • 2071 Magh (old course) · 8 marks

State the Shannon Channel Capacity Theorem. Discuss the implication of this theory in communication system.

Answer

Statement

Shannon's channel capacity theorem (Shannon–Hartley law): for a channel of bandwidth BB Hz with additive white Gaussian noise of power N=N0BN = N_0 B and average signal power SS, the channel capacity is

C=Blog⁡2 ⁣(1+SN) bits/sC = B \log_2\!\left(1 + \frac{S}{N}\right)\ \text{bits/s}

If the information rate R≤CR \le C, there is a coding scheme that sends the information with an arbitrarily small probability of error. If R>CR > C, the error probability cannot be made small, whatever coding is used.

Implications in communication systems

  1. Upper bound on data rate. No modem or code can beat CC. Real designs are judged by how close they get, e.g. LDPC/turbo codes come within about 1 dB.
  2. Bandwidth–power exchange. The same CC can come from a large BB with low SNR, or a small BB with high SNR.
    • Spread spectrum and CDMA work at very low SNR by using wide bandwidth.
    • High-order QAM (e.g. 256-QAM in cable modems) uses high SNR to pack more bits into a narrow band.
  3. Error-free transmission over noisy channels is possible. Noise limits the rate, not the accuracy. This motivates channel coding (error-correcting codes).
  4. Diminishing returns from power. CC grows only logarithmically with S/NS/N. At high SNR, doubling the power adds only about 1 bit/s/Hz.
  5. Limited gain from bandwidth. As B→∞B \to \infty, C→1.44 S/N0C \to 1.44\, S/N_0, so capacity stays finite because noise grows with bandwidth.
  6. Shannon limit. The minimum Eb/N0E_b/N_0 for reliable communication is ln⁡2=−1.6\ln 2 = -1.6 dB. This is the benchmark for power-efficient systems such as deep-space links.
  7. Design guide. It tells designers the best spectral efficiency C/BC/B for a given SNR, e.g. 3.46 b/s/Hz at 10 dB.
Bandwidth-limited systemPower-limited system
High SNR, use M-ary QAM/PSKLow SNR, use wide band + coding
e.g. telephone modems, microwave linkse.g. satellite, deep-space links

Example: a telephone channel with B=3.1B = 3.1 kHz and SNR = 30 dB has C=3100log⁡2(1001)≈30.9C = 3100 \log_2(1001) \approx 30.9 kb/s. This is close to the speed of the V.34 modem (33.6 kb/s), whose real SNR is slightly higher.

  • 2068 Jestha (old course) · 10 marks

Evaluate the maximum data rate that can be transmitted error free through a channel with a bandwidth of 1 MHz and a minimum of 10 dB SNR at the input of the channel decoder.

Answer

The maximum error-free data rate is the channel capacity, given by the Shannon–Hartley theorem for an AWGN channel:

C=Blog⁡2 ⁣(1+SN)C = B \log_2\!\left(1 + \frac{S}{N}\right)

Given

  • Bandwidth B=1B = 1 MHz =106= 10^6 Hz
  • (S/N)dB=10(S/N)_{dB} = 10 dB

Step 1: Convert SNR to a ratio

SN=10(S/N)dB/10=1010/10=10\frac{S}{N} = 10^{(S/N)_{dB}/10} = 10^{10/10} = 10

Step 2: Capacity

C=106log⁡2(1+10)=106log⁡211=106×ln⁡11ln⁡2=106×2.39790.6931=106×3.4594=3.459×106 b/s\begin{aligned} C &= 10^6 \log_2 (1 + 10) = 10^6 \log_2 11 \\ &= 10^6 \times \frac{\ln 11}{\ln 2} = 10^6 \times \frac{2.3979}{0.6931} \\ &= 10^6 \times 3.4594 \\ &= 3.459 \times 10^6\ \text{b/s} \end{aligned}

Interpretation

  • The spectral efficiency is C/B=3.46C/B = 3.46 b/s/Hz.
  • Any rate up to about 3.46 Mb/s can, in theory, be sent with an arbitrarily small error probability using suitable (possibly very long) channel codes. Rates above this cannot be sent error-free.
  • A practical scheme reaching this rate would need more than 2 bits/symbol at the Nyquist rate of 2B=22B = 2 Msymbols/s. That calls for multilevel signalling, e.g. M-ary with M≥4M \ge 4, together with strong coding.
  • The "10 dB at the input of the channel decoder" means that the SNR is measured where decoding happens, so it is the SNR that sets the capacity.

Answer: Maximum error-free data rate C≈3.46C \approx 3.46 Mb/s.

  • 2068 Jestha (old course) · 4+6 marks

Define information. Derive the expression for evaluating the average amount of information contained in a statistically independent long sequence of symbols.

Answer

Information

The amount of information in an event measures the uncertainty it removes: the less likely the event, the more information its occurrence gives. For a symbol xkx_k with probability pkp_k, the self-information is

I(xk)=log⁡21pk=−log⁡2pk bitsI(x_k) = \log_2 \frac{1}{p_k} = -\log_2 p_k\ \text{bits}

Properties:

  • I=0I = 0 when pk=1p_k = 1 (a certain event gives no information).
  • I≥0I \ge 0, and I(xj)>I(xk)I(x_j) > I(x_k) if pj<pkp_j < p_k.
  • For independent events, information adds: I(xjxk)=I(xj)+I(xk)I(x_j x_k) = I(x_j) + I(x_k).

Units: bits (base 2), nats (base ee) or decits (base 10). Example: a fair coin toss gives log⁡22=1\log_2 2 = 1 bit.

Average information (entropy) of a long sequence

Consider a discrete memoryless source with alphabet {x1,x2,…,xM}\{x_1, x_2, \dots, x_M\} and probabilities {p1,p2,…,pM}\{p_1, p_2, \dots, p_M\}, where ∑pk=1\sum p_k = 1. The symbols are statistically independent.

Step 1. Take a long message of NN symbols (N→∞N \to \infty). By the law of large numbers, symbol xkx_k occurs about

nk=pkN timesn_k = p_k N \text{ times}

Step 2. Each occurrence of xkx_k carries log⁡2(1/pk)\log_2 (1/p_k) bits. So the information from all occurrences of xkx_k is

Ik=nklog⁡21pk=Npklog⁡21pkI_k = n_k \log_2 \frac{1}{p_k} = N p_k \log_2 \frac{1}{p_k}

Step 3. The symbols are independent, so the information adds. The total information in the message is

Itotal=∑k=1MIk=N∑k=1Mpklog⁡21pkI_{total} = \sum_{k=1}^{M} I_k = N \sum_{k=1}^{M} p_k \log_2 \frac{1}{p_k}

Step 4. The average information per symbol, called the entropy, is

H=ItotalN=∑k=1Mpklog⁡21pk=−∑k=1Mpklog⁡2pk bits/symbolH = \frac{I_{total}}{N} = \sum_{k=1}^{M} p_k \log_2 \frac{1}{p_k} = -\sum_{k=1}^{M} p_k \log_2 p_k\ \text{bits/symbol}

Information rate: if the source emits rr symbols/s, then R=rHR = rH bits/s.

Properties of entropy

  • 0≤H≤log⁡2M0 \le H \le \log_2 M.
  • H=0H = 0 when one symbol has p=1p = 1 (no uncertainty).
  • H=log⁡2MH = \log_2 M (the maximum) when all symbols are equally likely.
  • For a binary source with P(1)=pP(1) = p: H(p)=−plog⁡2p−(1−p)log⁡2(1−p)H(p) = -p\log_2 p - (1-p)\log_2(1-p), which peaks at 1 bit when p=0.5p = 0.5.

Example: a source with probabilities 12,14,18,18\tfrac12, \tfrac14, \tfrac18, \tfrac18 has

H=12(1)+14(2)+18(3)+18(3)=1.75 bits/symbolH = \tfrac12(1) + \tfrac14(2) + \tfrac18(3) + \tfrac18(3) = 1.75\ \text{bits/symbol}
  • 2081 Bhadra (CS II) · 4 marks

How does source encoding differ from channel encoding?

Answer

Source encoding removes redundancy from the source output to cut the number of bits. Channel encoding adds controlled redundancy so that errors caused by the channel can be detected or corrected.

PointSource encodingChannel encoding
AimCompression (efficiency)Reliability (error control)
RedundancyRemovedAdded (parity/check bits)
Effect on bit rateLoweredRaised (code rate k/n<1k/n < 1)
Based onSource statistics (entropy HH)Channel noise (capacity CC)
Governing theoremShannon source coding theorem: Lˉ≥H\bar L \ge HShannon channel coding theorem: R≤CR \le C
Position in systemRight after the sourceAfter the source encoder, before the modulator
ExamplesHuffman, Shannon–Fano, LZW, PCM/DPCM, MP3, JPEGParity, Hamming, CRC, BCH, convolutional, turbo, LDPC
 Source -> [Source enc.] -> [Channel enc.]
        -> [Modulator] -> Channel

Example: text is first Huffman-coded to make it smaller (source coding). A Hamming (7,4) code is then added so that single-bit errors can be corrected (channel coding).

  • 2081 Bhadra (CS II) · 2+6 marks

Define Inter Symbol Interference. Elaborate Nyquist pulse shaping criterion for mitigation of ISI.

Answer

Inter symbol interference

Inter symbol interference (ISI) is distortion in which the energy of one symbol spreads into the time slots of nearby symbols. It happens because the channel and filters have limited bandwidth, so pulses get wider in time. At a sampling instant, the received sample then holds tails of other pulses as well as the wanted symbol:

y(iTb)=μai+μ∑k≠iak p((i−k)Tb)⏟ISI+n(iTb)y(iT_b) = \mu a_i + \underbrace{\mu \sum_{k \ne i} a_k\, p\big((i-k)T_b\big)}_{\text{ISI}} + n(iT_b)

Nyquist criterion for zero ISI

If p(t)p(t) is the overall pulse (transmit filter, channel and receive filter), ISI is zero when

p(nTb)={1,n=00,n≠0p(nT_b) = \begin{cases} 1, & n = 0 \\ 0, & n \ne 0 \end{cases}

In the frequency domain this is

∑k=−∞∞P ⁣(f−kTb)=Tb(constant)\sum_{k=-\infty}^{\infty} P\!\left(f - \frac{k}{T_b}\right) = T_b \quad \text{(constant)}

That is, copies of the pulse spectrum shifted by multiples of Rb=1/TbR_b = 1/T_b must add up to a flat spectrum.

Nyquist pulse shaping for mitigation of ISI

1. Ideal Nyquist channel (minimum bandwidth). Choose a rectangular spectrum of width B0=Rb/2B_0 = R_b/2:

P(f)=1Rb rect ⁣(fRb)  ⇒  p(t)=sin⁡πRbtπRbtP(f) = \frac{1}{R_b}\,\text{rect}\!\left(\frac{f}{R_b}\right) \;\Rightarrow\; p(t) = \frac{\sin \pi R_b t}{\pi R_b t}

The sinc pulse is 1 at t=0t = 0 and 0 at every other nTbnT_b, so ISI is zero. B0=Rb/2B_0 = R_b/2 is the Nyquist bandwidth, and Rb=2B0R_b = 2B_0 is the Nyquist rate. In practice it fails because the brick-wall filter cannot be built and the tails decay only as 1/∣t∣1/|t|, so any timing jitter adds up to large ISI.

2. Raised-cosine pulse shaping (practical). The spectrum rolls off smoothly with a cosine shape, with odd symmetry about B0B_0, so the folded spectrum is still flat:

p(t)=sinc(2B0t) cos⁡(2παB0t)1−16α2B02t2p(t) = \text{sinc}(2B_0 t)\,\frac{\cos(2\pi\alpha B_0 t)}{1 - 16\alpha^2B_0^2t^2} BT=B0(1+α)=Rb2(1+α)B_T = B_0(1 + \alpha) = \frac{R_b}{2}(1 + \alpha)
 P(f)
  |______
  |      \       alpha = 0   : brick wall, B = Rb/2
  |       \      alpha = 0.5 : B = 0.75 Rb
  |        \__   alpha = 1   : B = Rb
  +--------+--+---> f
          B0  B0(1+a)
Roll-off α\alphaBandwidth BTB_TTail decayPracticality
0Rb/2R_b/21/t1/tNot realisable
0.50.75Rb0.75 R_b1/t31/t^3Commonly used
1RbR_b1/t31/t^3, fastestEasy; least timing-sensitive

The pulse shaping is usually split equally between transmitter and receiver as root-raised-cosine filters, which also gives matched filtering. Any ISI that remains because the channel is not ideal is removed with equalisers.

  • 2081 Bhadra (CS II) · 1.5+1.5+1.5+1.5 marks

Represent given binary sequence 1001101101 in unipolar NRZ, polar RZ, AMI, and Manchester codes.

Answer

Bit sequence: 1 0 0 1 1 0 1 1 0 1, bit period TbT_b, levels ±V\pm V.

Unipolar NRZ

1 → +V for the full bit, 0 → 0 V.

Unipolar NRZ

    1   0   0   1   1   0   1   1   0   1  
+V ────|       |───────|   |───────|   |───
 0     |───────|       |───|       |───|   

Polar RZ

1 → +V for half the bit, 0 → −V for half the bit, then 0.

Polar RZ

    1   0   0   1   1   0   1   1   0   1  
+V ──|         |─| |─|     |─| |─|     |─| 
 0   |─| |─| |─| |─| |─| |─| |─| |─| |─| |─
-V     |─| |─|         |─|         |─|     

AMI

0 → 0 V. The 1s are half-width pulses of alternating polarity: + − + − + −.

AMI (RZ)

    1   0   0   1   1   0   1   1   0   1  
+V ──|             |─|         |─|         
 0   |─────────| |─| |─────| |─| |─────| |─
-V             |─|         |─|         |─| 

Manchester

1 → +V then −V, 0 → −V then +V. There is a transition at every mid-bit.

Manchester

    1   0   0   1   1   0   1   1   0   1  
+V ──|   |─| |───| |─|   |───| |─|   |───| 
-V   |───| |─|   |─| |───|   |─| |───|   |─
  • 2081 Baisakh (CS II) · 4 marks

A DMS has five symbols with probability of p(x₁) = 0.4, p(x₂) = 0.19, p(x₃) = 0.16, p(x₄) = 0.15 and p(x₅) = 0.1. Construct the Huffman code for X and calculate its efficiency and compare with fixed length coding.

Answer

Huffman code construction

Arrange the symbols by probability and repeatedly combine the two smallest. In each merge, the first group gets bit 0 and the second gets bit 1.

  1. x4x_4 (0.15) + x5x_5 (0.10) → 0.25
  2. x2x_2 (0.19) + x3x_3 (0.16) → 0.35
  3. {x2,x3} (0.35) + {x4,x5} (0.25) → 0.60
  4. {x2..x5} (0.60) + x1x_1 (0.40) → 1.00
              (1.00)
           0 /      \ 1
        (0.60)      x1 (0.40)
       0/    \1
   (0.35)    (0.25)
   0/  \1    0/  \1
  x2   x3   x4   x5
Symbolpip_iCodelil_ipilip_i l_i
x1x_10.40110.40
x2x_20.1900030.57
x3x_30.1600130.48
x4x_40.1501030.45
x5x_50.1001130.30

Efficiency

Lˉ=∑pili=0.40+0.57+0.48+0.45+0.30=2.20 bits/symbolH=−∑pilog⁡2pi=0.4(1.3219)+0.19(2.3959)+0.16(2.6439)+0.15(2.7370)+0.1(3.3219)=2.1498 bits/symbolη=HLˉ=2.14982.20=0.9772=97.72%\begin{aligned} \bar L &= \sum p_i l_i = 0.40 + 0.57 + 0.48 + 0.45 + 0.30 = 2.20\ \text{bits/symbol} \\ H &= -\sum p_i \log_2 p_i \\ &= 0.4(1.3219) + 0.19(2.3959) + 0.16(2.6439) \\ &\quad + 0.15(2.7370) + 0.1(3.3219) \\ &= 2.1498\ \text{bits/symbol} \\ \eta &= \frac{H}{\bar L} = \frac{2.1498}{2.20} = 0.9772 = 97.72\% \end{aligned}

Comparison with fixed-length coding

Five symbols need ⌈log⁡25⌉=3\lceil \log_2 5 \rceil = 3 bits each:

ηfixed=H3=2.14983=0.7166=71.66%\eta_{fixed} = \frac{H}{3} = \frac{2.1498}{3} = 0.7166 = 71.66\%
CodeAvg. lengthEfficiency
Fixed length3 bits71.66%
Huffman2.20 bits97.72%

Huffman coding saves 3−2.2=0.83 - 2.2 = 0.8 bits/symbol (about 26.7%). Its efficiency is close to the entropy limit.

  • 2081 Baisakh (CS II) · 2+2+4 marks

Mention how can we minimize error in duo-binary coding. Define information and entropy. Calculate the upper limit of the channel capacity as the bandwidth of the channel (B) tends to infinity.

Answer

Minimizing error in duo-binary coding

In duobinary signalling the received sample is ck=ak+ak−1c_k = a_k + a_{k-1}, so the decoder normally finds the present bit by subtracting the previous decision: a^k=ck−a^k−1\hat a_k = c_k - \hat a_{k-1}. One wrong decision then spoils all the following decisions. This is called error propagation. It is reduced or removed by:

  • Precoding: before the duobinary filter, form dk=bk⊕dk−1d_k = b_k \oplus d_{k-1} (modulo-2 sum). The receiver can then decide each bit from the present sample alone: if ∣ck∣<1|c_k| < 1 (i.e. ck=0c_k = 0) then b^k=1\hat b_k = 1; if ∣ck∣>1|c_k| > 1 (ck=±2c_k = \pm 2) then b^k=0\hat b_k = 0. An error stays in one bit only.
  • Using the correct decision thresholds (±1\pm 1) for the three-level signal and good receive filtering to keep noise low.

Information and entropy

  • Information: the information carried by a message mkm_k of probability pkp_k is Ik=log⁡21pkI_k = \log_2 \frac{1}{p_k} bits. A less likely message carries more information; a certain message (pk=1p_k = 1) carries none.
  • Entropy: the average information per symbol of a source with MM symbols:
H=∑k=1Mpklog⁡21pk bits/symbol,0≤H≤log⁡2MH = \sum_{k=1}^{M} p_k \log_2 \frac{1}{p_k}\ \text{bits/symbol}, \qquad 0 \le H \le \log_2 M

Upper limit of channel capacity as B→∞B \to \infty

By the Shannon–Hartley theorem, with signal power SS and white noise of one-sided PSD N0N_0 (noise power N=N0BN = N_0 B):

C=Blog⁡2(1+SN0B)C = B\log_2\left(1 + \frac{S}{N_0 B}\right)

Multiply and divide by S/N0S/N_0 and put x=SN0Bx = \dfrac{S}{N_0 B}:

C=SN0⋅N0BSlog⁡2(1+SN0B)=SN0⋅1xlog⁡2(1+x)=SN0log⁡2(1+x)1/x\begin{aligned} C &= \frac{S}{N_0}\cdot\frac{N_0 B}{S}\log_2\left(1+\frac{S}{N_0B}\right) = \frac{S}{N_0}\cdot\frac{1}{x}\log_2(1+x) \\ &= \frac{S}{N_0}\log_2 (1+x)^{1/x} \end{aligned}

As B→∞B \to \infty, x→0x \to 0 and lim⁡x→0(1+x)1/x=e\lim_{x\to 0}(1+x)^{1/x} = e. Therefore

C∞=lim⁡B→∞C=SN0log⁡2e=1.44 SN0 bits/sC_\infty = \lim_{B\to\infty} C = \frac{S}{N_0}\log_2 e = 1.44\,\frac{S}{N_0}\ \text{bits/s}

So increasing bandwidth does not give unlimited capacity, because noise power also grows with BB. Capacity saturates at 1.44 S/N01.44\,S/N_0.

Putting S=EbCS = E_b C at the limit gives EbN0=ln⁡2=0.693\dfrac{E_b}{N_0} = \ln 2 = 0.693, i.e. −1.6 dB (the Shannon limit): no system can communicate error-free below this Eb/N0E_b/N_0.

Answer: C∞=1.44 S/N0C_\infty = 1.44\,S/N_0 bits/s.

  • 2081 Baisakh (CS II) · 4 marks

Given the binary sequence 1101010111 represent in polar NRZ, polar RZ, Manchester and AMI codes.

Answer

Line codes convert the bit stream into electrical pulses. Conventions used (bit period TbT_b, amplitude VV):

  • Polar NRZ: 1 → +V+V, 0 → −V-V for the full bit.
  • Polar RZ: 1 → +V+V, 0 → −V-V for the first half bit, then 0.
  • Manchester: 1 → +V+V then −V-V (high-to-low at mid-bit); 0 → −V-V then +V+V.
  • AMI: 0 → 0 V; successive 1s alternate +V+V, −V-V (first 1 taken as +V+V, full-width pulses).

Bit sequence: 1 1 0 1 0 1 0 1 1 1

bits  1   1   0   1   0   1   0   1   1   1  

Polar NRZ:
+V  |‾‾‾‾‾‾‾‾    ‾‾‾‾    ‾‾‾‾    ‾‾‾‾‾‾‾‾‾‾‾‾
 0  |
-V  |        ____    ____    ____

Polar RZ:
+V  |‾‾  ‾‾      ‾‾      ‾‾      ‾‾  ‾‾  ‾‾
 0  |  --  --  --  --  --  --  --  --  --  --
-V  |        __      __      __

Manchester:
+V  |‾‾  ‾‾    ‾‾‾‾    ‾‾‾‾    ‾‾‾‾  ‾‾  ‾‾
 0  |
-V  |  __  ____    ____    ____    __  __  __

AMI (bipolar NRZ):
+V  |‾‾‾‾        ‾‾‾‾            ‾‾‾‾    ‾‾‾‾
 0  |        ----    ----    ----
-V  |    ____            ____        ____

Level in each bit (a pair means first half, second half):

Code1101010111
Polar NRZ+V+V−V+V−V+V−V+V+V+V
Polar RZ+V,0+V,0−V,0+V,0−V,0+V,0−V,0+V,0+V,0+V,0
Manchester+V,−V+V,−V−V,+V+V,−V−V,+V+V,−V−V,+V+V,−V+V,−V+V,−V
AMI (bipolar NRZ)+V−V0+V0−V0+V−V+V

Observations: polar NRZ has a DC component when 1s are more frequent (here seven 1s); Manchester has a transition in every bit, so it carries timing; AMI has zero average value because its marks alternate.

  • 2080 Bhadra (CS II) · 2+6 marks

Differentiate between message and information. Relate the message, the entropy and the information.

Answer

A message is the actual symbol or sequence of symbols sent by the source (a letter, a word, a sample value). Information is the measure of the uncertainty removed when that message is received; it depends only on how probable the message is, not on its meaning.

Message vs information

MessageInformation
Physical symbol(s) produced by the sourceQuantity carried by the message
Has content and meaningIndependent of meaning
Counted in symbols, words or samplesMeasured in bits: I=log⁡2(1/p)I = \log_2(1/p)
A sure (expected) message is still a messageA sure message carries zero information
Example: "Sun rises in the east"Almost 0 bits, since p≈1p \approx 1

Relation between message, information and entropy

  1. Information of one message. If message mkm_k occurs with probability pkp_k, its information content is
Ik=log⁡21pk bitsI_k = \log_2\frac{1}{p_k}\ \text{bits}

Properties: Ik≥0I_k \ge 0; Ik=0I_k = 0 for pk=1p_k = 1; Ik>IjI_k > I_j if pk<pjp_k < p_j; for independent messages I(mkmj)=Ik+IjI(m_k m_j) = I_k + I_j.

  1. Entropy = average information per message. A source emits MM different messages with different information. In a long sequence of NN messages, mkm_k appears about NpkN p_k times, so the total information is
Itotal=∑k=1MNpklog⁡21pkI_{total} = \sum_{k=1}^{M} N p_k \log_2\frac{1}{p_k}

Dividing by NN:

H=ItotalN=∑k=1Mpklog⁡21pk bits/messageH = \frac{I_{total}}{N} = \sum_{k=1}^{M} p_k \log_2\frac{1}{p_k}\ \text{bits/message}

So entropy is the expected (mean) value of the information, H=E[Ik]H = E[I_k]. It lies in 0≤H≤log⁡2M0 \le H \le \log_2 M, with the maximum when all messages are equally likely.

  1. Information rate. If the source sends rr messages per second, the information rate is R=rHR = rH bits/s.

Example

A source sends four messages with probabilities 12,14,18,18\tfrac12, \tfrac14, \tfrac18, \tfrac18.

Messagepkp_kIkI_k (bits)
m1m_11/21
m2m_21/42
m3m_31/83
m4m_41/83
H=12(1)+14(2)+18(3)+18(3)=1.75 bits/messageH = \tfrac12(1)+\tfrac14(2)+\tfrac18(3)+\tfrac18(3) = 1.75\ \text{bits/message}

A message sequence of 1000 symbols therefore carries about 1000×1.75=17501000 \times 1.75 = 1750 bits of information, although each individual message carries 1, 2 or 3 bits. The message is the carrier; information is what it carries; entropy is the average amount carried per message.

  • 2080 Bhadra (CS II) · 2+2+4 marks

Define Inter Symbol Interference (ISI). State Nyquist conditions for zero ISI. What are the physical constraints in implementing Nyquist pulse shaping criteria?

Answer

Inter Symbol Interference (ISI)

ISI is the distortion in which the pulse of one symbol spreads into the time slots of neighbouring symbols, so that the sample taken at the decision instant contains contributions from earlier and later symbols. It is caused by the limited bandwidth and dispersion of the channel and filters. The received sample at t=kTbt = kT_b is

y(kTb)=μak+μ∑n≠kan p((k−n)Tb)⏟ISI+n(kTb)y(kT_b) = \mu a_k + \underbrace{\mu\sum_{n\ne k} a_n\, p\big((k-n)T_b\big)}_{\text{ISI}} + n(kT_b)

ISI raises the bit error rate even when there is no noise, and it closes the eye in the eye pattern.

Nyquist conditions for zero ISI

Let p(t)p(t) be the overall pulse (transmit filter, channel and receive filter) with p(0)=1p(0)=1.

  • Time domain: p(nTb)={1,n=00,n≠0p(nT_b) = \begin{cases} 1, & n = 0 \\ 0, & n \ne 0 \end{cases}, i.e. the pulse must pass through zero at all other sampling instants.
  • Frequency domain: ∑n=−∞∞P(f−nTb)=Tb\displaystyle\sum_{n=-\infty}^{\infty} P\left(f - \frac{n}{T_b}\right) = T_b (constant), i.e. the shifted copies of the spectrum must add to a flat value.

The simplest solution is the ideal Nyquist channel P(f)=Tb rect(fTb)P(f) = T_b\,\text{rect}(fT_b), bandwidth B0=Rb2B_0 = \frac{R_b}{2}, giving p(t)=sinc(t/Tb)p(t) = \text{sinc}(t/T_b).

Physical constraints in implementing the Nyquist criterion

  1. Unrealizable filter: the ideal response needs a flat spectrum up to Rb/2R_b/2 and an abrupt fall to zero (brick-wall). Such a filter is non-causal and cannot be built.
  2. Infinite, slowly decaying pulse: the sinc pulse lasts from −∞-\infty to ∞\infty and its tails decay only as 1/∣t∣1/|t|. Any truncation brings back ISI.
  3. Timing sensitivity: because the tails are large, a small timing error (jitter) in the sampling instant gives large ISI; the sum of ISI terms can even diverge.
  4. Channel uncertainty: the criterion applies to the overall response, but the real channel response is not known exactly and may change with time, so fixed filters cannot meet it exactly.
  5. Bandwidth penalty in practice: practical solutions such as the raised cosine pulse need extra bandwidth, B=Rb2(1+α)B = \frac{R_b}{2}(1+\alpha) with roll-off 0≤α≤10 \le \alpha \le 1, and equalizers or partial response (duobinary) coding are needed to handle the remaining problems.
  • 2080 Bhadra (CS II) · 8 marks

State and explain Nyquist Channel Capacity Theorem.

Answer

Nyquist channel capacity theorem: for a noiseless channel of bandwidth BB Hz, the maximum rate at which independent pulses (symbols) can be sent without ISI is 2B2B symbols per second. If each symbol takes one of MM distinct levels, the maximum bit rate (capacity) is

C=2Blog⁡2M bits/sC = 2B\log_2 M\ \text{bits/s}

Explanation

  1. Signalling rate limit. A channel of bandwidth BB can pass the sinc pulse p(t)=sinc(2Bt)p(t) = \text{sinc}(2Bt), whose zeros occur every 12B\frac{1}{2B} s. Pulses spaced Ts=12BT_s = \frac{1}{2B} apart therefore do not interfere at the sampling instants (Nyquist zero-ISI criterion). Hence the maximum symbol rate is
rmax=1Ts=2B symbols/s (bauds)r_{max} = \frac{1}{T_s} = 2B\ \text{symbols/s (bauds)}

This rate 2B2B is called the Nyquist rate and B=r/2B = r/2 the Nyquist bandwidth. Sending faster than 2B2B causes ISI that cannot be removed.

  1. Bits per symbol. With MM equally likely levels, each symbol carries log⁡2M\log_2 M bits. With binary signalling (M=2M = 2), C=2BC = 2B bits/s.

  2. Capacity. Multiplying, C=2Blog⁡2MC = 2B\log_2 M.

Examples

For a telephone channel with B=3B = 3 kHz:

M=4:C=2(3000)log⁡24=12 000 bits/sM=16:C=2(3000)log⁡216=24 000 bits/s\begin{aligned} M = 4: \quad C &= 2(3000)\log_2 4 = 12\ 000\ \text{bits/s} \\ M = 16: \quad C &= 2(3000)\log_2 16 = 24\ 000\ \text{bits/s} \end{aligned}

Points to note

  • The theorem assumes a noiseless channel. In theory, CC grows without limit as MM increases.
  • In practice, noise limits MM: closely spaced levels cannot be told apart. The noise-limited capacity is given by Shannon–Hartley, C=Blog⁡2(1+S/N)C = B\log_2(1 + S/N). Comparing the two, the useful number of levels is about M≈1+S/NM \approx \sqrt{1 + S/N}.
  • The ideal pulse needed for 2B2B symbols/s (brick-wall filter) is not realizable; with a raised cosine pulse of roll-off α\alpha, the rate is 2B1+α\frac{2B}{1+\alpha} symbols/s.
Nyquist capacityShannon capacity
C=2Blog⁡2MC = 2B\log_2 MC=Blog⁡2(1+S/N)C = B\log_2(1+S/N)
Noiseless channelChannel with AWGN
Limited by ISI (bandwidth)Limited by noise
Depends on number of levelsDepends on SNR
  • 2080 Baisakh (CS II) · 5+5 marks

Explain digital communication system with appropriate block diagram. A DMS has six symbols with probability of p(x₁) = 0.3, p(x₂) = 0.2, p(x₃) = 0.25, p(x₄) = 0.12 and p(x₅) = 0.08, p(x₆) = 0.05. Construct the Shannon-Fano code for X and calculate its efficiency and code Redundancy.

Answer

Digital communication system

A digital communication system sends information as a sequence of discrete symbols (usually bits) from a source to a user.

 Source -> Formatter -> Source  -> Channel -> Modulator
 (analog   (sample,    encoder    encoder        |
 /digital)  quantize)                            v
                                              Channel
                                            (noise added)
                                                 |
 User <- Formatter <- Source  <- Channel <- Demodulator
         (D/A)        decoder    decoder     /detector
  • Information source and formatter: produces the message; an analog message is sampled, quantized and coded (A/D conversion) into bits.
  • Source encoder: removes redundancy so the average number of bits per symbol is close to the entropy (Huffman, Shannon–Fano). This reduces bit rate and bandwidth.
  • Channel encoder: adds controlled redundancy (parity bits) so that errors caused by the channel can be detected or corrected (Hamming, cyclic, convolutional codes).
  • Modulator: maps the bits onto waveforms suited to the channel: line codes for baseband, ASK/FSK/PSK/QAM for bandpass.
  • Channel: wire, cable, fibre or radio link; it attenuates, distorts (ISI) and adds noise.
  • Demodulator/detector: recovers the bit stream from the noisy waveform, usually with a matched filter and a decision device.
  • Channel decoder, source decoder, formatter: reverse the encoding steps and deliver the message to the user.

Performance is measured by bit error probability and by bandwidth and power efficiency.

Shannon–Fano code

Probabilities add to 1. Procedure: list symbols in decreasing probability; split the list into two groups of nearly equal total probability; give 0 to the upper group and 1 to the lower group; repeat in each group until each has one symbol.

First split: {0.3, 0.25} = 0.55 and {0.2, 0.12, 0.08, 0.05} = 0.45.

Symbolpip_iStep 1Step 2Step 3Step 4Codelil_i
x10.300002
x30.2501012
x20.210102
x40.121101103
x50.08111011104
x60.05111111114

Entropy:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
x10.31.73700.5211
x20.22.32190.4644
x30.252.00000.5000
x40.123.05890.3671
x50.083.64390.2915
x60.054.32190.2161
Total12.3601
H(X)=∑pilog⁡21pi=2.3601 bits/symbolH(X) = \sum p_i\log_2\frac{1}{p_i} = 2.3601\ \text{bits/symbol}

Average code length:

Lˉ=∑pili=0.3(2)+0.25(2)+0.2(2)+0.12(3)+0.08(4)+0.05(4)=0.6+0.5+0.4+0.36+0.32+0.2=2.38 bits/symbol\begin{aligned} \bar L &= \sum p_i l_i = 0.3(2)+0.25(2)+0.2(2)+0.12(3)+0.08(4)+0.05(4) \\ &= 0.6+0.5+0.4+0.36+0.32+0.2 = 2.38\ \text{bits/symbol} \end{aligned}

Efficiency and redundancy:

η=HLˉ=2.36012.38=0.9917=99.17%γ=1−η=0.0083=0.83%\begin{aligned} \eta &= \frac{H}{\bar L} = \frac{2.3601}{2.38} = 0.9917 = 99.17\% \\ \gamma &= 1 - \eta = 0.0083 = 0.83\% \end{aligned}

Answer: codes x1=00x_1 = 00, x3=01x_3 = 01, x2=10x_2 = 10, x4=110x_4 = 110, x5=1110x_5 = 1110, x6=1111x_6 = 1111; Lˉ=2.38\bar L = 2.38 bits/symbol, efficiency = 99.17 %, redundancy = 0.83 %.

  • 2079 Bhadra (CS II) · 5 marks

A discrete memoryless source has an alphabet of seven symbols whose probabilities occurrence are as under.
SymbolS0S1S2S3S4S5S6
Probability0.250.250.1250.1250.1250.06250.0625
Determine the Huffman code for above source.

Answer

Huffman procedure: arrange symbols in decreasing probability; combine the two lowest probabilities into one; place the sum in the list as high as possible; repeat until one probability (1.0) is left. Then trace back, giving 0 to the upper branch and 1 to the lower branch at each combination.

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.25, 0.25, 0.125, 0.125, 0.125, 0.0625, 0.06250.0625 + 0.0625 = 0.125
20.25, 0.25, 0.125, 0.125, 0.125, 0.1250.125 + 0.125 = 0.25
30.25, 0.25, 0.25, 0.125, 0.1250.125 + 0.125 = 0.25
40.25, 0.25, 0.25, 0.250.25 + 0.25 = 0.5
50.5, 0.25, 0.250.25 + 0.25 = 0.5
60.5, 0.50.5 + 0.5 = 1
Symbolpip_iHuffman codelil_i
S00.25102
S10.25112
S20.1250013
S30.1250103
S40.1250113
S50.062500004
S60.062500014

Entropy:

H=∑pilog⁡21pi=2(0.25)(2)+3(0.125)(3)+2(0.0625)(4)=1.0+1.125+0.5=2.625 bits/symbol\begin{aligned} H &= \sum p_i\log_2\frac{1}{p_i} = 2(0.25)(2) + 3(0.125)(3) + 2(0.0625)(4) \\ &= 1.0 + 1.125 + 0.5 = 2.625\ \text{bits/symbol} \end{aligned}

Average code length:

Lˉ=2(0.25)(2)+3(0.125)(3)+2(0.0625)(4)=2.625 bits/symbol\bar L = 2(0.25)(2) + 3(0.125)(3) + 2(0.0625)(4) = 2.625\ \text{bits/symbol}

Efficiency:

η=HLˉ=2.6252.625=100%\eta = \frac{H}{\bar L} = \frac{2.625}{2.625} = 100\%

The efficiency is 100 % because every probability is a negative power of 2 (2−2,2−3,2−42^{-2}, 2^{-3}, 2^{-4}), so each code length equals log⁡2(1/pi)\log_2(1/p_i) exactly. A fixed-length code would need 3 bits/symbol (efficiency 2.625/3=87.5%2.625/3 = 87.5\%).

Answer: S0, S1 get 2-bit codes, S2, S3, S4 get 3-bit codes and S5, S6 get 4-bit codes (as in the table); Lˉ=H=2.625\bar L = H = 2.625 bits/symbol, efficiency 100 %.

  • 2079 Bhadra (CS II) · 4+6 marks

Illustrate the methods to reduce Intersymbol Interference. Explain modified Duobinary coding technique with precoder, illustrating with input sequence 01001101.

Answer

Methods to reduce Intersymbol Interference

  1. Nyquist pulse shaping (raised cosine filtering): shape the overall response so that each pulse has zero value at all other sampling instants. The raised cosine spectrum with roll-off α\alpha meets the Nyquist criterion, needs bandwidth B=Rb2(1+α)B = \frac{R_b}{2}(1+\alpha), and its tails decay as 1/t31/t^3, so timing errors cause little ISI.
  2. Correlative (partial response) coding: add a controlled, known amount of ISI (duobinary, modified duobinary) so that the signal fits in the minimum bandwidth Rb/2R_b/2 with realizable filters; the receiver removes the known ISI.
  3. Equalization: a transversal (tapped delay line) filter after the channel cancels the channel's distortion. Zero-forcing equalizers force ISI to zero at the sampling points; adaptive (LMS) equalizers track changing channels.
  4. Eye pattern monitoring and correct sampling: sample at the instant of maximum eye opening using good timing recovery.
  5. Reducing the signalling rate or using more channel bandwidth, so pulses spread less.

Modified duobinary coding

Modified duobinary is a correlative coding scheme that correlates the present symbol with the symbol two bit intervals earlier:

ck=ak−ak−2,ak=±1c_k = a_k - a_{k-2}, \qquad a_k = \pm 1

Transfer function:

H(f)=1−e−j4πfTb=2jsin⁡(2πfTb) e−j2πfTb,∣f∣≤12TbH(f) = 1 - e^{-j4\pi fT_b} = 2j\sin(2\pi fT_b)\,e^{-j2\pi fT_b}, \quad |f| \le \frac{1}{2T_b}

Impulse response: h(t)=sinc(tTb)−sinc(t−2TbTb)h(t) = \text{sinc}\left(\frac{t}{T_b}\right) - \text{sinc}\left(\frac{t-2T_b}{T_b}\right).

∣H(f)∣|H(f)| is zero at f=0f = 0 and at f=1/(2Tb)f = 1/(2T_b), so the signal has no DC component (useful for transformer-coupled lines and SSB) and is easy to filter. The output has three levels: −2,0,+2-2, 0, +2.

Precoder: to avoid error propagation, the data are precoded as dk=bk⊕dk−2d_k = b_k \oplus d_{k-2}, then ak=+1a_k = +1 if dk=1d_k = 1 and −1-1 if dk=0d_k = 0. Decision rule: ∣ck∣>1⇒b^k=1|c_k| > 1 \Rightarrow \hat b_k = 1; ∣ck∣<1⇒b^k=0|c_k| < 1 \Rightarrow \hat b_k = 0.

b_k -->(XOR)--> d_k -> level -> a_k -->(+)--> c_k
         ^             map        |     ^-
         |                        +-[2Tb delay]
         +--[2Tb delay]--+

Illustration for input 01001101

Initial precoder bits assumed d−1=d0=0d_{-1} = d_0 = 0 (so a−1=a0=−1a_{-1} = a_0 = -1).

k12345678
bkb_k01001101
dk−2d_{k-2}00010110
dk=bk⊕dk−2d_k = b_k \oplus d_{k-2}01011011
aka_k−1+1−1+1+1−1+1+1
ak−2a_{k-2}−1−1−1+1−1+1+1−1
ck=ak−ak−2c_k = a_k - a_{k-2}0+200+2−20+2
Decoded b^k\hat b_k01001101

The decoded sequence 01001101 equals the input. Each bit is decided from its own sample, so a single error does not propagate.

  • 2076 Chaitra (CS II) · 3+8 marks

Define any three types of noises. Calculate coding efficiency of a six symbol source with probabilities P = {0.36, 0.18, 0.12, 0.09, 0.07} using Shannon Fano and Huffman's coding techniques.

Answer

Three types of noise

  • Thermal (Johnson) noise: caused by random motion of free electrons in a conductor due to temperature. It is white and Gaussian, with power Pn=kTBP_n = kTB (k=1.38×10−23k = 1.38\times10^{-23} J/K).
  • Shot noise: caused by the random arrival of charge carriers crossing a junction in diodes and transistors. Its mean-square current is in2‾=2qIdcB\overline{i_n^2} = 2qI_{dc}B.
  • Flicker (1/f1/f) noise: found in semiconductor devices at low frequencies (below a few kHz); its power spectral density varies as 1/f1/f, due to surface and contact irregularities.

(Others: partition noise, transit-time noise, atmospheric and man-made external noise.)

Coding efficiency

The five given probabilities add to 0.82, so the sixth probability is taken as 1−0.82=0.181 - 0.82 = 0.18:

P={0.36,0.18,0.18,0.12,0.09,0.07}P = \{0.36, 0.18, 0.18, 0.12, 0.09, 0.07\} for x1…x6x_1 \dots x_6 (with x6=0.18x_6 = 0.18).

Entropy:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
x10.361.47390.5306
x20.182.47390.4453
x30.123.05890.3671
x40.093.47390.3127
x50.073.83650.2686
x60.182.47390.4453
Total12.3695
H=2.3695 bits/symbolH = 2.3695\ \text{bits/symbol}

Shannon–Fano coding (split into groups of nearly equal probability: {0.36, 0.18} = 0.54 vs {0.18, 0.12, 0.09, 0.07} = 0.46, and so on):

Symbolpip_iStep 1Step 2Step 3Step 4Codelil_i
x10.3600002
x20.1801012
x60.1810102
x30.121101103
x40.09111011104
x50.07111111114
LˉSF=0.36(2)+0.18(2)+0.18(2)+0.12(3)+0.09(4)+0.07(4)=0.72+0.36+0.36+0.36+0.36+0.28=2.44 bits/symbolηSF=2.36952.44=97.11%\begin{aligned} \bar L_{SF} &= 0.36(2)+0.18(2)+0.18(2)+0.12(3)+0.09(4)+0.07(4) \\ &= 0.72+0.36+0.36+0.36+0.36+0.28 = 2.44\ \text{bits/symbol} \\ \eta_{SF} &= \frac{2.3695}{2.44} = 97.11\% \end{aligned}

Huffman coding (combine the two lowest each time, move the sum as high as possible; 0 to upper, 1 to lower):

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.36, 0.18, 0.18, 0.12, 0.09, 0.070.09 + 0.07 = 0.16
20.36, 0.18, 0.18, 0.16, 0.120.16 + 0.12 = 0.28
30.36, 0.28, 0.18, 0.180.18 + 0.18 = 0.36
40.36, 0.36, 0.280.36 + 0.28 = 0.64
50.64, 0.360.64 + 0.36 = 1
Symbolpip_iHuffman codelil_i
x10.36002
x20.18102
x60.18112
x30.120113
x40.0901004
x50.0701014
LˉH=0.36(2)+0.18(2)+0.18(2)+0.12(3)+0.09(4)+0.07(4)=2.44 bits/symbolηH=2.36952.44=97.11%\begin{aligned} \bar L_{H} &= 0.36(2)+0.18(2)+0.18(2)+0.12(3)+0.09(4)+0.07(4) = 2.44\ \text{bits/symbol} \\ \eta_{H} &= \frac{2.3695}{2.44} = 97.11\% \end{aligned}
MethodLˉ\bar L (bits/symbol)EfficiencyRedundancy
Shannon–Fano2.4497.11 %2.89 %
Huffman2.4497.11 %2.89 %
Fixed length (3 bits)378.98 %21.02 %

Answer: both Shannon–Fano and Huffman give Lˉ=2.44\bar L = 2.44 bits/symbol and efficiency 97.11 % for this source (Huffman is never worse than Shannon–Fano; here they are equal).

  • 2076 Chaitra (CS II) · 4+6 marks

State and derive the relation between entropy and information rate. Derive the expression which shows the limit of Shannon's channel capacity theorem when bandwidth tends to infinity.

Answer

Relation between entropy and information rate

Entropy HH is the average information per symbol, in bits/symbol. Information rate RR is the average information produced per second, in bits/s.

Derivation: let a discrete memoryless source emit rr symbols per second from an alphabet {s1,…,sM}\{s_1, \dots, s_M\} with probabilities p1,…,pMp_1, \dots, p_M.

  1. In a long time TT seconds the source emits N=rTN = rT symbols.
  2. Symbol sks_k occurs about Npk=rTpkN p_k = rTp_k times, and each occurrence carries log⁡2(1/pk)\log_2(1/p_k) bits.
  3. Total information in TT seconds:
IT=∑k=1MrT pklog⁡21pk=rT HI_T = \sum_{k=1}^{M} rT\,p_k\log_2\frac{1}{p_k} = rT\,H
  1. Information per second:
R=ITT=r H bits/sR = \frac{I_T}{T} = r\,H\ \text{bits/s}

where rr is the symbol rate (symbols/s) and HH the entropy (bits/symbol). Example: r=1000r = 1000 symbols/s and H=1.75H = 1.75 bits/symbol give R=1750R = 1750 bits/s. For equally likely symbols, Rmax=rlog⁡2MR_{max} = r\log_2 M.

Limit of Shannon capacity when B→∞B \to \infty

Shannon–Hartley theorem for an AWGN channel (noise PSD N0N_0, noise power N=N0BN = N_0B):

C=Blog⁡2(1+SN0B) bits/sC = B\log_2\left(1+\frac{S}{N_0B}\right)\ \text{bits/s}

Rewrite with x=SN0Bx = \dfrac{S}{N_0B}, so B=SN0xB = \dfrac{S}{N_0 x}:

C=SN0⋅1xlog⁡2(1+x)=SN0log⁡2(1+x)1/x\begin{aligned} C &= \frac{S}{N_0}\cdot\frac{1}{x}\log_2(1+x) = \frac{S}{N_0}\log_2(1+x)^{1/x} \end{aligned}

As B→∞B \to \infty, x→0x \to 0, and lim⁡x→0(1+x)1/x=e\lim_{x \to 0}(1+x)^{1/x} = e:

C∞=SN0log⁡2e=SN0⋅1ln⁡2≈1.44 SN0 bits/sC_\infty = \frac{S}{N_0}\log_2 e = \frac{S}{N_0}\cdot\frac{1}{\ln 2} \approx 1.44\,\frac{S}{N_0}\ \text{bits/s}

Meaning:

  • Capacity does not become infinite when bandwidth becomes infinite, because noise power N0BN_0 B also increases. It approaches a finite limit set by S/N0S/N_0.
  • At this limit, with energy per bit Eb=S/CE_b = S/C:
EbN0=SN0C∞=ln⁡2=0.693  ⇒  −1.6 dB\frac{E_b}{N_0} = \frac{S}{N_0 C_\infty} = \ln 2 = 0.693 \;\Rightarrow\; -1.6\ \text{dB}

This is the Shannon limit: no coding scheme can give reliable transmission with Eb/N0E_b/N_0 below −1.6 dB.

 C
 |           ......................  1.44 S/N0
 |       ..'
 |    .'
 |  .'
 | /
 +-------------------------------->  B
  • 2076 Asoj (CS II) · 2+2+2 marks

Compute coding efficiency of a source with symbols {A₀, A₁, A₂, A₃, A₄} with corresponding probabilities {0.4, 0.3, 0.15, 0.1, 0.05} using (i) Binary coding (ii) Shannon-Fano Coding (iii) Binary Huffman Coding

Answer

Entropy of the source:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
A00.41.32190.5288
A10.31.73700.5211
A20.152.73700.4105
A30.13.32190.3322
A40.054.32190.2161
Total12.0087
H=∑pilog⁡21pi=2.0087 bits/symbolH = \sum p_i\log_2\frac{1}{p_i} = 2.0087\ \text{bits/symbol}

Efficiency is η=H/Lˉ\eta = H/\bar L in each case.

(i) Binary (fixed-length) coding

Five symbols need ⌈log⁡25⌉=3\lceil\log_2 5\rceil = 3 bits each (000, 001, 010, 011, 100), so Lˉ=3\bar L = 3.

η=2.00873=66.96%\eta = \frac{2.0087}{3} = 66.96\%

(ii) Shannon–Fano coding

First split: {0.4} vs {0.3, 0.15, 0.1, 0.05} (0.4 vs 0.6; the other split 0.7 vs 0.3 is worse).

Symbolpip_iStep 1Step 2Step 3Step 4Codelil_i
A00.4001
A10.310102
A20.151101103
A30.1111011104
A40.05111111114
Lˉ=0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.05(4)=2.05 bits/symbolη=2.00872.05=97.99%\begin{aligned} \bar L &= 0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.05(4) = 2.05\ \text{bits/symbol} \\ \eta &= \frac{2.0087}{2.05} = 97.99\% \end{aligned}

(iii) Binary Huffman coding

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.4, 0.3, 0.15, 0.1, 0.050.1 + 0.05 = 0.15
20.4, 0.3, 0.15, 0.150.15 + 0.15 = 0.3
30.4, 0.3, 0.30.3 + 0.3 = 0.6
40.6, 0.40.6 + 0.4 = 1
Symbolpip_iHuffman codelil_i
A00.411
A10.3012
A20.150013
A30.100004
A40.0500014
Lˉ=0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.05(4)=2.05 bits/symbolη=2.00872.05=97.99%\begin{aligned} \bar L &= 0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.05(4) = 2.05\ \text{bits/symbol} \\ \eta &= \frac{2.0087}{2.05} = 97.99\% \end{aligned}
CodingLˉ\bar LEfficiency
Binary (fixed)366.96 %
Shannon–Fano2.0597.99 %
Huffman2.0597.99 %

Answer: 66.96 %, 97.99 % and 97.99 % respectively.

  • 2076 Asoj (CS II) · 8 marks

Discuss with examples, the implications and limitations of Shannon Hartley Channel capacity theorem.

Answer

Shannon–Hartley theorem: the capacity of a channel of bandwidth BB Hz, disturbed by additive white Gaussian noise, with average signal power SS and noise power N=N0BN = N_0B, is

C=Blog⁡2(1+SN) bits/sC = B\log_2\left(1+\frac{S}{N}\right)\ \text{bits/s}

If the information rate R≤CR \le C, there exists a coding scheme giving an arbitrarily small error probability; if R>CR > C, errors cannot be made small.

Implications

  1. Upper bound on rate: it gives the maximum error-free rate of any channel, a benchmark for real systems. Example: telephone line, B=3.1B = 3.1 kHz, S/N=30S/N = 30 dB (1000):
C=3100log⁡2(1001)=30 898 bits/s≈30.9 kbpsC = 3100\log_2(1001) = 30\ 898\ \text{bits/s} \approx 30.9\ \text{kbps}

This is why voice-band modems stopped near 33.6 kbps. 2. Bandwidth–SNR trade-off: the same capacity can be obtained with large bandwidth and low SNR, or small bandwidth and high SNR. To keep 30.9 kbps in half the bandwidth (1550 Hz) we need S/N=230898/1550−1≈1.0×106S/N = 2^{30898/1550} - 1 \approx 1.0\times10^6 (60 dB), much more power. Wideband systems (spread spectrum, FM, UWB) use bandwidth to save power. 3. Noise does not forbid error-free communication; it only limits the rate. Good channel coding (turbo, LDPC) approaches the limit. 4. Bandwidth limit: as B→∞B \to \infty, C→1.44 S/N0C \to 1.44\,S/N_0, and reliable transmission needs Eb/N0≥−1.6E_b/N_0 \ge -1.6 dB (Shannon limit). 5. Bandwidth efficiency plane: C/B=log⁡2(1+S/N)C/B = \log_2(1 + S/N) separates possible from impossible regions for choosing modulation (e.g. 64-QAM needs high SNR).

Limitations

  1. It assumes AWGN only; it does not directly apply to impulse noise, interference, fading and multipath channels.
  2. It is an existence theorem: it does not tell how to build the code or modulator that reaches capacity.
  3. Reaching capacity needs very long code words, so infinite delay and complexity; practical systems operate below CC.
  4. It assumes a Gaussian-distributed signal, average power constraint and a linear, band-limited channel; practical signals use finite constellations (e.g. 16-QAM), which reach less.
  5. Increasing bandwidth gives only a limited gain (capacity saturates at 1.44 S/N01.44\,S/N_0), and increasing SNR gives only a logarithmic gain: doubling S/NS/N at high SNR adds only about BB bits/s.

Example of the logarithmic limitation: with B=3.1B = 3.1 kHz, raising S/NS/N from 1000 to 2000 increases CC from 30.9 kbps to only about 34.0 kbps.

  • 2076 Asoj (CS II) · 6 marks

Draw the timing diagram of Polar NRZ, Polar RZ, Manchester and unipolar RZ for the following binary sequence 1011000010000000000111.

Answer

Conventions (bit period TbT_b, amplitude VV):

CodeBit 1Bit 0
Polar NRZ+V+V for full bit−V-V for full bit
Polar RZ+V+V first half, then 0−V-V first half, then 0
Manchester+V+V then −V-V (high-to-low at mid-bit)−V-V then +V+V (low-to-high)
Unipolar RZ+V+V first half, then 00 for full bit

Bit sequence (22 bits): 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 1

Each character below is half a bit period.

bits 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 1 

Polar NRZ:
+V  |‾‾  ‾‾‾‾        ‾‾                    ‾‾‾‾‾‾
 0  |
-V  |  __    ________  ____________________

Polar RZ:
+V  |‾   ‾ ‾         ‾                     ‾ ‾ ‾
 0  | - - - - - - - - - - - - - - - - - - - - - -
-V  |  _     _ _ _ _   _ _ _ _ _ _ _ _ _ _

Manchester:
+V  |‾  ‾‾ ‾  ‾ ‾ ‾ ‾‾  ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾‾ ‾ ‾
 0  |
-V  | __  _ __ _ _ _  __ _ _ _ _ _ _ _ _ _  _ _ _

Unipolar RZ:
+V  |‾   ‾ ‾         ‾                     ‾ ‾ ‾
 0  | --- - --------- --------------------- - - -

Observations:

  • Polar NRZ stays at −V-V for the long run of ten 0s (bits 10–19): no transitions, so the receiver can lose bit timing.
  • Polar RZ returns to zero in every bit, so every bit has an edge, but it needs twice the bandwidth of NRZ.
  • Manchester has a transition at the middle of every bit even in the long zero run, so it is self-clocking and has no DC component; its bandwidth is twice that of NRZ.
  • Unipolar RZ gives no pulse at all during the run of zeros, so timing is lost there, and it has a DC component.
  • 2076 Asoj (CS II) · 6 marks

An analog baseband signal, band limited to 100 Hz, is sampled at the Nyquist rate. The samples are quantized into four message symbols that occur independently with probabilities p1 = p4 = 0.125 and p2 = p3. Determine the information rate (bits/sec) of the message source signal.

Answer

Given: fm=100f_m = 100 Hz, sampled at Nyquist rate; four symbols with p1=p4=0.125p_1 = p_4 = 0.125 and p2=p3p_2 = p_3.

Step 1: find p2p_2 and p3p_3. Probabilities add to 1:

p1+p2+p3+p4=10.125+2p2+0.125=1  ⇒  p2=p3=0.375\begin{aligned} p_1 + p_2 + p_3 + p_4 &= 1 \\ 0.125 + 2p_2 + 0.125 &= 1 \;\Rightarrow\; p_2 = p_3 = 0.375 \end{aligned}

Step 2: symbol rate. Nyquist sampling rate:

r=fs=2fm=2×100=200 samples (symbols)/sr = f_s = 2f_m = 2 \times 100 = 200\ \text{samples (symbols)/s}

Step 3: entropy.

H=2(0.125)log⁡210.125+2(0.375)log⁡210.375=2(0.125)(3)+2(0.375)(1.4150)=0.75+1.0613=1.8113 bits/symbol\begin{aligned} H &= 2(0.125)\log_2\frac{1}{0.125} + 2(0.375)\log_2\frac{1}{0.375} \\ &= 2(0.125)(3) + 2(0.375)(1.4150) \\ &= 0.75 + 1.0613 = 1.8113\ \text{bits/symbol} \end{aligned}

Step 4: information rate.

R=rH=200×1.8113=362.26 bits/sR = rH = 200 \times 1.8113 = 362.26\ \text{bits/s}

Note: with 2 bits/sample (fixed coding) the bit rate would be 400 bits/s, so the source information rate is less than the coded bit rate.

Answer: information rate R≈R \approx 362.26 bits/s (H=1.8113H = 1.8113 bits/symbol, r=200r = 200 symbols/s).

  • 2075 Chaitra (CS II) · 4+6 marks

Discuss the importance of source coding in Digital Communication system. A DMS emits one of the seven symbol with probabilities P = [0.25, 0.2, 0.15, 0.08, 0.07, 0.03, 0.02]. Find the coding efficiency, Code Redundancy for both Shannon-Fano coding and Fixed Length Coding and compare result.

Answer

Importance of source coding

Source coding is the efficient representation of the source output in bits, by removing redundancy, so that the average number of bits per symbol Lˉ\bar L is as close as possible to the entropy HH.

  • Reduces bit rate: fewer bits per symbol means a lower transmission rate for the same information.
  • Saves bandwidth and power: a lower bit rate needs less channel bandwidth and less transmitted energy; storage space is also saved (ZIP, MP3, JPEG).
  • Uses symbol statistics: frequent symbols get short code words and rare symbols long code words (variable-length coding), as in Morse code.
  • Approaches the entropy limit: Shannon's source coding theorem says Lˉ≥H\bar L \ge H; good codes (Huffman, Shannon–Fano) reach close to HH.
  • Unique decodability: prefix codes (no code word is a prefix of another) can be decoded without separators.
  • Leaves room for channel coding: the bits saved can be used for error-control redundancy.

Numerical

The seven listed probabilities add to only 0.80 (printing error). The same paper series gives this source as P={0.25,0.2,0.2,0.15,0.08,0.07,0.03,0.02}P = \{0.25, 0.2, 0.2, 0.15, 0.08, 0.07, 0.03, 0.02\} (the missing 0.2 restored), which adds to 1; this set is used below. A fixed-length code needs 3 bits for either 7 or 8 symbols.

Entropy:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
x10.252.00000.5000
x20.22.32190.4644
x30.22.32190.4644
x40.152.73700.4105
x50.083.64390.2915
x60.073.83650.2686
x70.035.05890.1518
x80.025.64390.1129
Total12.6640
H=2.6640 bits/symbolH = 2.6640\ \text{bits/symbol}

(a) Shannon–Fano coding (first split {0.25, 0.2} = 0.45 vs 0.55):

Symbolpip_iStep 1Step 2Step 3Step 4Step 5Step 6Codelil_i
x10.2500002
x20.201012
x30.210102
x40.151101103
x50.08111011104
x60.0711110111105
x70.031111101111106
x80.021111111111116
Lˉ=0.25(2)+0.2(2)+0.2(2)+0.15(3)+0.08(4)+0.07(5)+0.03(6)+0.02(6)=0.5+0.4+0.4+0.45+0.32+0.35+0.18+0.12=2.72 bits/symbolηSF=2.66402.72=97.94%,γSF=1−η=2.06%\begin{aligned} \bar L &= 0.25(2)+0.2(2)+0.2(2)+0.15(3)+0.08(4)+0.07(5)+0.03(6)+0.02(6) \\ &= 0.5+0.4+0.4+0.45+0.32+0.35+0.18+0.12 = 2.72\ \text{bits/symbol} \\ \eta_{SF} &= \frac{2.6640}{2.72} = 97.94\%, \qquad \gamma_{SF} = 1-\eta = 2.06\% \end{aligned}

(b) Fixed-length coding: Lˉ=⌈log⁡28⌉=3\bar L = \lceil\log_2 8\rceil = 3 bits/symbol.

ηFL=2.66403=88.80%,γFL=11.20%\eta_{FL} = \frac{2.6640}{3} = 88.80\%, \qquad \gamma_{FL} = 11.20\%

Comparison

MethodLˉ\bar LEfficiencyRedundancy
Shannon–Fano2.7297.94 %2.06 %
Fixed length388.80 %11.20 %

Shannon–Fano coding saves 3−2.72=0.283 - 2.72 = 0.28 bits/symbol (about 9.3 %) over fixed-length coding, because it gives short code words to the frequent symbols. Fixed-length coding is simpler and needs no code table, but wastes bits when probabilities are unequal.

  • 2075 Chaitra (CS II) · 6+4 marks

What do you understand by Inter Symbol Interference (ISI)? Explain modified Duobinary coding technique and illustrate it using binary input sequence 10110011.

Answer

Inter Symbol Interference (ISI)

ISI is the overlapping of neighbouring pulses in a digital signal, so that at the sampling instant of one symbol the received value also contains the tails of other symbols. It appears because a band-limited channel spreads each pulse in time (a pulse limited in bandwidth cannot be limited in time).

The receiver output at the sampling instant ti=iTbt_i = iT_b is

y(ti)=μai+μ∑k≠iak p((i−k)Tb)+n(ti)y(t_i) = \mu a_i + \mu\sum_{k\ne i} a_k\,p\big((i-k)T_b\big) + n(t_i)

The first term is the wanted symbol, the second is ISI, the third is noise.

Causes: limited channel bandwidth, non-ideal filters, multipath and dispersion in cables or fibres, timing errors at the receiver.

Effects: wrong decisions even without noise; higher bit error rate; reduced eye opening and noise margin; sensitivity to timing jitter.

 pulse k-1     pulse k     pulse k+1
     /\         /\          /\
 ___/  \_     _/  \_      _/  \___
         \___/      \____/
        tail of k-1 adds to k

Remedies: Nyquist pulse shaping (raised cosine), correlative coding (duobinary, modified duobinary), and equalization.

Modified duobinary coding

Modified duobinary introduces a controlled ISI between a symbol and the one two bit intervals before it:

ck=ak−ak−2,H(f)=2jsin⁡(2πfTb) e−j2πfTb, ∣f∣≤12Tbc_k = a_k - a_{k-2}, \qquad H(f) = 2j\sin(2\pi fT_b)\,e^{-j2\pi fT_b},\ |f| \le \frac{1}{2T_b}

H(0)=0H(0) = 0, so the spectrum has no DC component. The output takes three levels (−2, 0, +2). A precoder dk=bk⊕dk−2d_k = b_k \oplus d_{k-2} is used so that each bit is decoded from one sample: ∣ck∣=2⇒1|c_k| = 2 \Rightarrow 1, ck=0⇒0c_k = 0 \Rightarrow 0.

Illustration for 10110011

Assume d−1=d0=0d_{-1} = d_0 = 0; level mapping d=1→+1d = 1 \to +1, d=0→−1d = 0 \to -1.

k12345678
bkb_k10110011
dk−2d_{k-2}00100101
dkd_k10010110
aka_k+1−1−1+1−1+1+1−1
ak−2a_{k-2}−1−1+1−1−1+1−1+1
ckc_k+20−2+200+2−2
b^k\hat b_k10110011

The decoded output 10110011 matches the input.

  • 2075 Asoj (CS II) · 8 marks

Six messages are transmitted with probabilities 0.3, 0.08, 0.1, 0.15, 0.25 and 0.12 respectively. Obtain their respective Shannon-Fano and Huffman's codes and code efficiencies.

Answer

Messages m1…m6m_1 \dots m_6 have p=0.3,0.08,0.1,0.15,0.25,0.12p = 0.3, 0.08, 0.1, 0.15, 0.25, 0.12 (sum = 1). Arranged in decreasing order: m1m_1 0.3, m5m_5 0.25, m4m_4 0.15, m6m_6 0.12, m3m_3 0.1, m2m_2 0.08.

Entropy:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
m10.31.73700.5211
m20.083.64390.2915
m30.13.32190.3322
m40.152.73700.4105
m50.252.00000.5000
m60.123.05890.3671
Total12.4224
H=2.4224 bits/messageH = 2.4224\ \text{bits/message}

Shannon–Fano code

Split into equal-probability halves: {0.3, 0.25} = 0.55 vs {0.15, 0.12, 0.1, 0.08} = 0.45; then {0.15, 0.12} = 0.27 vs {0.1, 0.08} = 0.18, and so on.

Symbolpip_iStep 1Step 2Step 3Codelil_i
m10.300002
m50.2501012
m40.151001003
m60.121011013
m30.11101103
m20.081111113
LˉSF=0.3(2)+0.25(2)+0.15(3)+0.12(3)+0.1(3)+0.08(3)=0.6+0.5+0.45+0.36+0.3+0.24=2.45 bitsηSF=2.42242.45=98.87%\begin{aligned} \bar L_{SF} &= 0.3(2)+0.25(2)+0.15(3)+0.12(3)+0.1(3)+0.08(3) \\ &= 0.6+0.5+0.45+0.36+0.3+0.24 = 2.45\ \text{bits} \\ \eta_{SF} &= \frac{2.4224}{2.45} = 98.87\% \end{aligned}

Huffman code

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.3, 0.25, 0.15, 0.12, 0.1, 0.080.1 + 0.08 = 0.18
20.3, 0.25, 0.18, 0.15, 0.120.15 + 0.12 = 0.27
30.3, 0.27, 0.25, 0.180.25 + 0.18 = 0.43
40.43, 0.3, 0.270.3 + 0.27 = 0.57
50.57, 0.430.57 + 0.43 = 1
Symbolpip_iHuffman codelil_i
m10.3002
m50.25102
m40.150103
m60.120113
m30.11103
m20.081113
LˉH=0.3(2)+0.25(2)+0.15(3)+0.12(3)+0.1(3)+0.08(3)=2.45 bitsηH=2.42242.45=98.87%\begin{aligned} \bar L_{H} &= 0.3(2)+0.25(2)+0.15(3)+0.12(3)+0.1(3)+0.08(3) = 2.45\ \text{bits} \\ \eta_{H} &= \frac{2.4224}{2.45} = 98.87\% \end{aligned}
MethodLˉ\bar LEfficiencyRedundancy
Shannon–Fano2.4598.87 %1.13 %
Huffman2.4598.87 %1.13 %

Answer: both codes give Lˉ=2.45\bar L = 2.45 bits/message and efficiency 98.87 %.

  • 2075 Asoj (CS II) · 6 marks

Represent binary sequence 10110101 in Polar NRZ, unipolar RZ, AMI and Manchester codes.

Answer

Conventions (bit period TbT_b, amplitude VV):

  • Polar NRZ: 1 → +V+V, 0 → −V-V for the whole bit.
  • Unipolar RZ: 1 → +V+V for the first half bit then 0; 0 → 0.
  • AMI: 0 → 0; 1s alternate +V+V, −V-V (first 1 positive, full-width pulses; an RZ version with half-width pulses is also used).
  • Manchester: 1 → +V+V then −V-V; 0 → −V-V then +V+V (transition at the middle of every bit).

Bit sequence: 1 0 1 1 0 1 0 1

bits  1   0   1   1   0   1   0   1  

Polar NRZ:
+V  |‾‾‾‾    ‾‾‾‾‾‾‾‾    ‾‾‾‾    ‾‾‾‾
 0  |
-V  |    ____        ____    ____

Unipolar RZ:
+V  |‾‾      ‾‾  ‾‾      ‾‾      ‾‾
 0  |  ------  --  ------  ------  --

AMI (bipolar NRZ):
+V  |‾‾‾‾        ‾‾‾‾            ‾‾‾‾
 0  |    ----        ----    ----
-V  |        ____        ____

Manchester:
+V  |‾‾    ‾‾‾‾  ‾‾    ‾‾‾‾    ‾‾‾‾
 0  |
-V  |  ____    __  ____    ____    __

Levels in each bit (a pair means first half, second half):

Code10110101
Polar NRZ+V−V+V+V−V+V−V+V
Unipolar RZ+V,00+V,0+V,00+V,00+V,0
AMI (bipolar NRZ)+V0−V+V0−V0+V
Manchester+V,−V−V,+V+V,−V+V,−V−V,+V+V,−V−V,+V+V,−V
CodeDC componentClock contentBandwidth (first null)
Polar NRZYes (if 1s and 0s unequal)Poor in long runsRbR_b
Unipolar RZYesGood for 1s, none for 0s2Rb2R_b
AMINonePoor for runs of 0sRbR_b
ManchesterNoneExcellent2Rb2R_b
  • 2074 Asoj (CS II) · 3+2+2 marks

Distinguish between the Source coding and Channel coding. A discrete memoryless source has an alphabet of five symbols S0, S1, S2, S3, S4 with probabilities of 0.55, 0.15, 0.15, 0.1 and 0.05 respectively. Determine the Huffman code for each symbol and calculate the coding efficiency.

Answer

Source coding vs channel coding

Source codingChannel coding
Removes redundancy from the source outputAdds controlled redundancy
Aim: efficiency (fewer bits per symbol)Aim: reliability (error detection/correction)
Reduces bit rate and bandwidthIncreases bit rate and bandwidth
Uses symbol probabilitiesUses algebraic structure of codes
Limited by entropy: Lˉ≥H\bar L \ge HLimited by channel capacity: R≤CR \le C
Examples: Huffman, Shannon–Fano, LZWHamming, cyclic (CRC), convolutional
Placed right after the sourcePlaced before the modulator

Huffman code

Probabilities: S0 = 0.55, S1 = 0.15, S2 = 0.15, S3 = 0.1, S4 = 0.05.

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.55, 0.15, 0.15, 0.1, 0.050.1 + 0.05 = 0.15
20.55, 0.15, 0.15, 0.150.15 + 0.15 = 0.3
30.55, 0.3, 0.150.3 + 0.15 = 0.45
40.55, 0.450.55 + 0.45 = 1
Symbolpip_iHuffman codelil_i
S00.5501
S10.151003
S20.151013
S30.11103
S40.051113

Coding efficiency

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
S00.550.86250.4744
S10.152.73700.4105
S20.152.73700.4105
S30.13.32190.3322
S40.054.32190.2161
Total11.8438
H=1.8438 bits/symbolLˉ=0.55(1)+0.15(3)+0.15(3)+0.1(3)+0.05(3)=0.55+1.35=1.90 bits/symbolη=HLˉ=1.84381.90=97.04%\begin{aligned} H &= 1.8438\ \text{bits/symbol} \\ \bar L &= 0.55(1)+0.15(3)+0.15(3)+0.1(3)+0.05(3) = 0.55 + 1.35 = 1.90\ \text{bits/symbol} \\ \eta &= \frac{H}{\bar L} = \frac{1.8438}{1.90} = 97.04\% \end{aligned}

Answer: S0 = 0 and the other four symbols get 3-bit codes (table); Lˉ=1.9\bar L = 1.9 bits/symbol, efficiency 97.04 %.

  • 2074 Asoj (CS II) · 5+5 marks

A continuous signal is band limited to 5 kHz. The signal is quantized in 6 levels of a PCM system with the probabilities 1/2, 1/4, 1/8, 1/16, 1/32 and 1/32. Calculate the entropy and information rate.

Answer

Given: band limit fm=5f_m = 5 kHz; 6 quantization levels with probabilities 12,14,18,116,132,132\frac12, \frac14, \frac18, \frac1{16}, \frac1{32}, \frac1{32} (sum = 1).

Entropy

H=∑i=16pilog⁡21piH = \sum_{i=1}^{6} p_i\log_2\frac{1}{p_i}
Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
Q10.51.00000.5000
Q20.252.00000.5000
Q30.1253.00000.3750
Q40.06254.00000.2500
Q50.03125.00000.1562
Q60.03125.00000.1562
Total11.9375
H=12(1)+14(2)+18(3)+116(4)+132(5)+132(5)=0.5+0.5+0.375+0.25+0.15625+0.15625=1.9375 bits/sample\begin{aligned} H &= \tfrac12(1) + \tfrac14(2) + \tfrac18(3) + \tfrac1{16}(4) + \tfrac1{32}(5) + \tfrac1{32}(5) \\ &= 0.5 + 0.5 + 0.375 + 0.25 + 0.15625 + 0.15625 \\ &= 1.9375\ \text{bits/sample} \end{aligned}

For comparison, if the six levels were equally likely, Hmax=log⁡26=2.585H_{max} = \log_2 6 = 2.585 bits/sample. The unequal probabilities reduce the average information.

Information rate

The signal is sampled at the Nyquist rate:

r=fs=2fm=2×5 kHz=10 000 samples/sr = f_s = 2f_m = 2 \times 5\ \text{kHz} = 10\ 000\ \text{samples/s}

Each sample is one message (level), so

R=rH=10 000×1.9375=19 375 bits/sR = rH = 10\ 000 \times 1.9375 = 19\ 375\ \text{bits/s}

Remarks

  • A fixed-length PCM code would need ⌈log⁡26⌉=3\lceil\log_2 6\rceil = 3 bits/sample, i.e. 30 00030\ 000 bits/s, so its efficiency would be 1.9375/3=64.58%1.9375/3 = 64.58\%.
  • Because all probabilities are powers of 12\frac12, a Huffman code (lengths 1, 2, 3, 4, 5, 5) gives exactly Lˉ=1.9375\bar L = 1.9375 bits/sample and 100 % efficiency, i.e. the line rate can be brought down to the information rate of 19.375 kbps.

Answer: entropy H=1.9375H = 1.9375 bits/sample; information rate R=19 375R = 19\ 375 bits/s ≈ 19.375 kbps.

  • 2074 Chaitra (CS II) · 8 marks

The source of information symbols {A0, A1, A2, A3 and A4} have corresponding probabilities {0.4, 0.3, 0.15, 0.1 and 0.05}. Encode the source symbols using Huffman encoder and Shannon-Fano encoder and compare their efficiency.

Answer

Entropy of the source {0.4,0.3,0.15,0.1,0.05}\{0.4, 0.3, 0.15, 0.1, 0.05\}:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
A00.41.32190.5288
A10.31.73700.5211
A20.152.73700.4105
A30.13.32190.3322
A40.054.32190.2161
Total12.0087
H=2.0087 bits/symbolH = 2.0087\ \text{bits/symbol}

Huffman encoder

Combine the two lowest probabilities at each stage, place the sum as high as possible, then read the code from the final stage back to each symbol (0 = upper, 1 = lower).

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.4, 0.3, 0.15, 0.1, 0.050.1 + 0.05 = 0.15
20.4, 0.3, 0.15, 0.150.15 + 0.15 = 0.3
30.4, 0.3, 0.30.3 + 0.3 = 0.6
40.6, 0.40.6 + 0.4 = 1
Symbolpip_iHuffman codelil_i
A00.411
A10.3012
A20.150013
A30.100004
A40.0500014
LˉH=0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.05(4)=0.4+0.6+0.45+0.4+0.2=2.05 bits/symbolηH=2.00872.05=97.99%\begin{aligned} \bar L_H &= 0.4(1) + 0.3(2) + 0.15(3) + 0.1(4) + 0.05(4) \\ &= 0.4 + 0.6 + 0.45 + 0.4 + 0.2 = 2.05\ \text{bits/symbol} \\ \eta_H &= \frac{2.0087}{2.05} = 97.99\% \end{aligned}

Shannon–Fano encoder

Divide the ordered list into two groups of nearly equal probability, 0 to the upper and 1 to the lower group, and repeat:

  • {A0} = 0.4 | {A1, A2, A3, A4} = 0.6
  • {A1} = 0.3 | {A2, A3, A4} = 0.3
  • {A2} = 0.15 | {A3, A4} = 0.15
  • {A3} | {A4}
Symbolpip_iStep 1Step 2Step 3Step 4Codelil_i
A00.4001
A10.310102
A20.151101103
A30.1111011104
A40.05111111114
LˉSF=0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.05(4)=2.05 bits/symbolηSF=2.00872.05=97.99%\begin{aligned} \bar L_{SF} &= 0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.05(4) = 2.05\ \text{bits/symbol} \\ \eta_{SF} &= \frac{2.0087}{2.05} = 97.99\% \end{aligned}

Comparison

ItemHuffmanShannon–Fano
Average length2.05 bits2.05 bits
Efficiency97.99 %97.99 %
Redundancy2.01 %2.01 %
MethodBottom-up (merging)Top-down (splitting)
OptimalityAlways optimalNot always optimal

For this source both encoders give the same code lengths (1, 2, 3, 4, 4), so the efficiencies are equal at 97.99 %. In general Huffman's efficiency is equal to or better than Shannon–Fano's. A fixed 3-bit code would give only 66.96 %.

  • 2074 Chaitra (CS II) · 2+6 marks

What is ISI? State two solutions for zero ISI. Explain duo-binary encoding with the use of precoder.

Answer

ISI

Intersymbol interference (ISI) is the overlap of pulse tails from neighbouring symbols at the sampling instant of the present symbol, caused by the limited bandwidth and dispersion of the channel. It causes decision errors even without noise.

Two solutions for zero ISI

  1. Nyquist pulse shaping: use an overall pulse with p(nTb)=0p(nT_b) = 0 for n≠0n \ne 0, e.g. the raised cosine pulse (bandwidth Rb2(1+α)\frac{R_b}{2}(1+\alpha)).
  2. Correlative (partial response) coding: e.g. duobinary signalling, which adds a known, controlled ISI that the receiver removes, allowing the minimum bandwidth Rb/2R_b/2 with practical filters.

(Adaptive equalization is a third common method.)

Duobinary encoding with precoder

Duobinary signalling: each output sample is the sum of the present and previous binary levels:

ck=ak+ak−1,ak=±1c_k = a_k + a_{k-1}, \qquad a_k = \pm 1

The equivalent filter is a delay-and-add followed by an ideal low-pass filter:

H(f)=2cos⁡(πfTb) e−jπfTb,∣f∣≤12TbH(f) = 2\cos(\pi fT_b)\,e^{-j\pi fT_b}, \quad |f| \le \frac{1}{2T_b} h(t)=Tb2 sin⁡(πt/Tb)πt (Tb−t)h(t) = \frac{T_b^2\,\sin(\pi t/T_b)}{\pi t\,(T_b - t)}

H(f)H(f) falls smoothly to zero at f=1/(2Tb)f = 1/(2T_b), so it is realizable. The output has three levels: −2,0,+2-2, 0, +2.

Problem: without precoding, decoding uses a^k=ck−a^k−1\hat a_k = c_k - \hat a_{k-1}, so one error propagates to later bits.

Precoder: form dk=bk⊕dk−1d_k = b_k \oplus d_{k-1} (modulo-2) before level mapping (d=1→+1d = 1 \to +1, d=0→−1d = 0 \to -1). Then

  • ck=±2c_k = \pm 2 when dk=dk−1d_k = d_{k-1}, i.e. bk=0b_k = 0;
  • ck=0c_k = 0 when dk≠dk−1d_k \ne d_{k-1}, i.e. bk=1b_k = 1.

Decision rule: ∣ck∣<1⇒b^k=1|c_k| < 1 \Rightarrow \hat b_k = 1, ∣ck∣>1⇒b^k=0|c_k| > 1 \Rightarrow \hat b_k = 0. Each bit is found from its own sample, so there is no error propagation.

b_k->(XOR)->d_k->[level]->a_k->(+)->[ideal LPF]->c_k
       ^                     |   ^
       +--[Tb delay]--+      +->[Tb delay]

Example: input bk=1101001b_k = 1101001, initial d0=1d_0 = 1.

k1234567
bkb_k1101001
dkd_k0110001
aka_k−1+1+1−1−1−1+1
ck=ak+ak−1c_k = a_k + a_{k-1}00+20−2−20
b^k\hat b_k1101001

(a0=+1a_0 = +1.) The decoded data equal the input.

  • 2074 Chaitra (CS II) · 6 marks

Draw the timing diagram of Polar NRZ, AMI and Manchester for the following binary sequence 1011000010000000001.

Answer

Conventions (bit period TbT_b, amplitude VV):

CodeBit 1Bit 0
Polar NRZ+V+V for full bit−V-V for full bit
AMI (bipolar)+V+V and −V-V alternately0
Manchester+V+V then −V-V (high-to-low at mid-bit)−V-V then +V+V (low-to-high)

The first 1 in AMI is taken as +V+V (full-width pulses).

Bit sequence (19 bits): 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1

Each character below is half a bit period.

bits 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 

Polar NRZ:
+V  |‾‾  ‾‾‾‾        ‾‾                  ‾‾
 0  |
-V  |  __    ________  __________________

AMI (bipolar NRZ):
+V  |‾‾    ‾‾                            ‾‾
 0  |  --    --------  ------------------
-V  |    __          __

Manchester:
+V  |‾  ‾‾ ‾  ‾ ‾ ‾ ‾‾  ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾‾
 0  |
-V  | __  _ __ _ _ _  __ _ _ _ _ _ _ _ _  _

AMI levels of the five 1s (bits 1, 3, 4, 9, 19): +V,−V,+V,−V,+V+V, -V, +V, -V, +V.

Observations:

  • Polar NRZ: stays at −V-V for the run of nine 0s (bits 10–18), so there are no transitions for timing recovery, and the waveform has a DC component.
  • AMI: zero DC because 1s alternate; a violation of alternation shows an error. But the long run of zeros gives 0 V for 9 bits, so timing is lost (solved by B8ZS or HDB3).
  • Manchester: has a mid-bit transition in every bit, including the zero run, so it is self-clocking with no DC; it needs twice the bandwidth of NRZ.
  • 2073 Shrawan (CS II) · 5+3 marks

Explain in brief the functional block diagram and the basic elements of a digital communication system. Explain Shannon-Fano coding.

Answer

Digital communication system

A digital communication system transmits information as discrete symbols (bits) over a channel. Its functional blocks:

 Info    -> Formatter -> Source  -> Channel -> Modulator
 source     (A/D)        encoder    encoder       |
                                                  v
                                               Channel
                                       noise -> (+)
                                                  |
 User    <- Formatter <- Source  <- Channel <- Demodulator
            (D/A)        decoder    decoder    /detector

Basic elements:

  1. Information source: produces the message (voice, video, text, data). Analog messages are first converted to digital by the formatter (sampling, quantizing, PCM encoding).
  2. Source encoder: removes redundancy and represents the symbols with the fewest bits on average (Huffman, Shannon–Fano). It lowers the bit rate.
  3. Channel encoder: adds controlled redundancy (parity bits) so the receiver can detect and correct errors (Hamming, cyclic, convolutional codes).
  4. Digital modulator: converts the bits into waveforms suitable for the channel: line coding for baseband, ASK, FSK, PSK or QAM for bandpass.
  5. Channel: the physical medium (wire, coaxial cable, optical fibre, radio). It adds noise, attenuation, distortion and interference.
  6. Demodulator/detector: recovers the bit sequence from the received waveform, using matched filtering, sampling and decisions.
  7. Channel decoder: uses the redundancy to correct errors.
  8. Source decoder and formatter: rebuild the original message (D/A conversion) for the user.

Other blocks often included: encryption/decryption, multiplexing, synchronization. Performance is judged by the probability of bit error PeP_e, bandwidth efficiency (bits/s/Hz) and power efficiency (Eb/N0E_b/N_0 needed).

Shannon–Fano coding

Shannon–Fano coding is a variable-length source coding method that gives short code words to likely symbols and long ones to unlikely symbols.

Algorithm:

  1. List 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 bit 0 to every symbol of the upper group and 1 to the lower group.
  4. Repeat steps 2–3 inside each group until every group has one symbol.
  5. The code word of a symbol is the sequence of bits assigned to it.

Example: P={0.4,0.2,0.2,0.1,0.1}P = \{0.4, 0.2, 0.2, 0.1, 0.1\} for A–E. First split {A} = 0.4 vs {B, C, D, E} = 0.6.

Symbolpip_iStep 1Step 2Step 3Step 4Codelil_i
A0.4001
B0.210102
C0.21101103
D0.1111011104
E0.1111111114
Lˉ=0.4(1)+0.2(2)+0.2(3)+0.1(4)+0.1(4)=2.2 bits/symbolH=2.1219 bits/symbol,η=2.12192.2=96.45%\begin{aligned} \bar L &= 0.4(1)+0.2(2)+0.2(3)+0.1(4)+0.1(4) = 2.2\ \text{bits/symbol} \\ H &= 2.1219\ \text{bits/symbol}, \qquad \eta = \frac{2.1219}{2.2} = 96.45\% \end{aligned}

The code is a prefix code (uniquely decodable), but Shannon–Fano is not always optimal; Huffman coding is.

  • 2073 Shrawan (CS II) · 2+5 marks

What do you understand by intersymbol interference? Explain Duobinary coding technique with precoder and illustrate it using binary input sequence 0010110.

Answer

Intersymbol interference

Intersymbol interference (ISI) is the overlap of the tails of neighbouring pulses at the sampling instant of the present pulse. It arises because a band-limited channel spreads each pulse beyond its own bit interval. The sample at t=kTbt = kT_b becomes

y(kTb)=μak+μ∑n≠kan p((k−n)Tb)+n(kTb)y(kT_b) = \mu a_k + \mu\sum_{n\ne k} a_n\,p\big((k-n)T_b\big) + n(kT_b)

where the middle term is ISI. ISI closes the eye pattern and causes errors even without noise.

Duobinary coding with precoder

Duobinary (class I partial response) signalling deliberately adds a known amount of ISI from the previous bit so that data at rate RbR_b can be sent in the minimum bandwidth Rb/2R_b/2 with a realizable filter.

ck=ak+ak−1,ak=±1c_k = a_k + a_{k-1}, \qquad a_k = \pm 1 H(f)=1+e−j2πfTb=2cos⁡(πfTb) e−jπfTb,∣f∣≤12TbH(f) = 1 + e^{-j2\pi fT_b} = 2\cos(\pi fT_b)\,e^{-j\pi fT_b}, \quad |f| \le \frac{1}{2T_b}

The output has three levels (−2, 0, +2).

Need for precoder: without it, the receiver decodes a^k=ck−a^k−1\hat a_k = c_k - \hat a_{k-1}, so one wrong decision spreads to all later bits (error propagation).

Precoder: dk=bk⊕dk−1d_k = b_k \oplus d_{k-1}; level map dk=1→+1d_k = 1 \to +1, dk=0→−1d_k = 0 \to -1. Then ck=0c_k = 0 when bk=1b_k = 1 and ck=±2c_k = \pm 2 when bk=0b_k = 0.

Decision rule: ∣ck∣<1⇒b^k=1|c_k| < 1 \Rightarrow \hat b_k = 1; ∣ck∣>1⇒b^k=0|c_k| > 1 \Rightarrow \hat b_k = 0.

b_k->(XOR)->d_k->[map]->a_k->(+)->[LPF B=Rb/2]->c_k
       ^                  |   ^
       +--[Tb]---+        +->[Tb]

Illustration for 0010110

Initial precoder bit assumed d0=1d_0 = 1 (a0=+1a_0 = +1).

k1234567
bkb_k0010110
dk−1d_{k-1}1110010
dk=bk⊕dk−1d_k = b_k \oplus d_{k-1}1100100
aka_k+1+1−1−1+1−1−1
ak−1a_{k-1}+1+1+1−1−1+1−1
ck=ak+ak−1c_k = a_k + a_{k-1}+2+20−200−2
Decoded b^k\hat b_k0010110

The decoded sequence 0010110 equals the input, and each bit is decided from its own sample only.

  • 2073 Chaitra (CS II) · 6+4 marks

Discuss the importance of source coding in Digital Communication System. A discrete memory less source emits five symbols with probabilities P = {0.3, 0.25, 0.2, 0.15, 0.1}, find coding efficiency for both fixed and Shannon-Fano coding and compare results.

Answer

Importance of source coding

Source coding converts the source output into a binary sequence using as few bits per symbol as possible, by removing redundancy. Its importance:

  1. Lower bit rate: the average code length Lˉ\bar L approaches the entropy HH, so fewer bits are sent for the same information.
  2. Bandwidth saving: a lower bit rate needs less channel bandwidth, so more users or services fit in the same band.
  3. Power and energy saving: fewer bits means less transmitted energy, important in mobile and satellite links.
  4. Storage saving: compressed files (ZIP, JPEG, MP3) need less memory.
  5. Exploits statistics: variable-length codes give short words to frequent symbols and long words to rare ones.
  6. Theoretical guarantee: Shannon's source coding theorem, H≤Lˉ<H+1H \le \bar L < H + 1, shows how close a code can come to the limit; efficiency η=H/Lˉ\eta = H/\bar L measures the code.
  7. Uniquely decodable prefix codes allow decoding without separators.
  8. Supports channel coding: removing useless redundancy leaves room to add useful redundancy for error control.

Numerical: P={0.3,0.25,0.2,0.15,0.1}P = \{0.3, 0.25, 0.2, 0.15, 0.1\}

Entropy:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
S00.31.73700.5211
S10.252.00000.5000
S20.22.32190.4644
S30.152.73700.4105
S40.13.32190.3322
Total12.2282
H=2.2282 bits/symbolH = 2.2282\ \text{bits/symbol}

(a) Fixed-length coding: 5 symbols need ⌈log⁡25⌉=3\lceil\log_2 5\rceil = 3 bits each (000 to 100).

ηFL=HLˉ=2.22823=74.27%\eta_{FL} = \frac{H}{\bar L} = \frac{2.2282}{3} = 74.27\%

(b) Shannon–Fano coding: first split {0.3, 0.25} = 0.55 vs {0.2, 0.15, 0.1} = 0.45; then {0.2} vs {0.15, 0.1}.

Symbolpip_iStep 1Step 2Step 3Codelil_i
S00.300002
S10.2501012
S20.210102
S30.151101103
S40.11111113
LˉSF=0.3(2)+0.25(2)+0.2(2)+0.15(3)+0.1(3)=2.25 bits/symbolηSF=2.22822.25=99.03%\begin{aligned} \bar L_{SF} &= 0.3(2)+0.25(2)+0.2(2)+0.15(3)+0.1(3) = 2.25\ \text{bits/symbol} \\ \eta_{SF} &= \frac{2.2282}{2.25} = 99.03\% \end{aligned}

Comparison

MethodLˉ\bar LEfficiencyRedundancy
Fixed length374.27 %25.73 %
Shannon–Fano2.2599.03 %0.97 %

Shannon–Fano uses 0.75 bit/symbol less (25 % fewer bits) and is almost at the entropy limit, while fixed-length coding wastes about a quarter of the bits.

  • 2073 Chaitra (CS II) · 6+2 marks

Explain any one type of correlative coding technique with its impulse response and transfer function. Mention how can we minimize error in duo-binary coding.

Answer

Correlative (partial response) coding introduces a controlled, known amount of ISI between successive symbols so that the data can be sent at rate RbR_b through the minimum Nyquist bandwidth Rb/2R_b/2 using realizable filters. The receiver removes the known ISI. The most common type is duobinary signalling.

Duobinary signalling

"Duobinary" means doubling the transmission capacity of a straight binary system. The binary input bkb_k is mapped to ak=±1a_k = \pm 1 and passed through a delay-and-add circuit followed by an ideal low-pass filter:

ck=ak+ak−1c_k = a_k + a_{k-1}
a_k ---+------------>(+)--> [ideal LPF  ] --> c(t)
       |              ^     [|f|<1/2Tb  ]
       +--> [delay Tb]+

Transfer function: the delay-and-add has 1+e−j2πfTb1 + e^{-j2\pi fT_b}; with the ideal Nyquist filter HN(f)=1H_N(f) = 1 for ∣f∣≤1/(2Tb)|f| \le 1/(2T_b):

HI(f)=(1+e−j2πfTb)HN(f)=(ejπfTb+e−jπfTb)e−jπfTb=2cos⁡(πfTb) e−jπfTb,∣f∣≤12Tb\begin{aligned} H_I(f) &= \left(1 + e^{-j2\pi fT_b}\right)H_N(f) \\ &= \left(e^{j\pi fT_b} + e^{-j\pi fT_b}\right)e^{-j\pi fT_b} \\ &= 2\cos(\pi fT_b)\,e^{-j\pi fT_b}, \quad |f| \le \frac{1}{2T_b} \end{aligned}

and zero elsewhere. The magnitude is a half cosine that falls smoothly to zero at f=1/(2Tb)f = 1/(2T_b), so it is much easier to approximate than the brick-wall filter.

Impulse response: sum of two sinc pulses one bit apart:

hI(t)=sin⁡(πt/Tb)πt/Tb+sin⁡[π(t−Tb)/Tb]π(t−Tb)/Tb=Tb2 sin⁡(πt/Tb)πt (Tb−t)h_I(t) = \frac{\sin(\pi t/T_b)}{\pi t/T_b} + \frac{\sin[\pi(t-T_b)/T_b]}{\pi(t-T_b)/T_b} = \frac{T_b^2\,\sin(\pi t/T_b)}{\pi t\,(T_b - t)}

hI(t)h_I(t) equals 1 at t=0t = 0 and t=Tbt = T_b and is zero at all other sampling instants; its tails decay as 1/t21/t^2, so it is less sensitive to timing errors.

Output levels: ck∈{−2,0,+2}c_k \in \{-2, 0, +2\}. Detection without precoding: a^k=ck−a^k−1\hat a_k = c_k - \hat a_{k-1}.

 |H(f)|
  2 +---.
    |     '.
    |       '.
    |         '.
  0 +-----------+----> f
    0        1/(2Tb)

Minimizing error in duobinary coding

The main error source is error propagation: since each decision uses the previous decision, one error causes further errors. It is minimized by precoding: dk=bk⊕dk−1d_k = b_k \oplus d_{k-1} at the transmitter. Then ck=0c_k = 0 means bk=1b_k = 1 and ck=±2c_k = \pm 2 means bk=0b_k = 0, so each bit is decoded from its own sample (threshold ∣ck∣=1|c_k| = 1) and an error does not spread. Proper thresholds and noise filtering also help.

  • 2073 Chaitra (CS II) · 4 marks

Given the binary sequence 1101010011 represent in polar NRZ, polar RZ, Manchester and AMI codes.

Answer

Conventions (bit period TbT_b, amplitude VV):

  • Polar NRZ: 1 → +V+V, 0 → −V-V for the full bit.
  • Polar RZ: 1 → +V+V, 0 → −V-V for the first half, then 0.
  • Manchester: 1 → +V+V then −V-V; 0 → −V-V then +V+V.
  • AMI: 0 → 0; 1s alternate +V+V, −V-V (first 1 positive).

Bit sequence: 1 1 0 1 0 1 0 0 1 1

bits  1   1   0   1   0   1   0   0   1   1  

Polar NRZ:
+V  |‾‾‾‾‾‾‾‾    ‾‾‾‾    ‾‾‾‾        ‾‾‾‾‾‾‾‾
 0  |
-V  |        ____    ____    ________

Polar RZ:
+V  |‾‾  ‾‾      ‾‾      ‾‾          ‾‾  ‾‾
 0  |  --  --  --  --  --  --  --  --  --  --
-V  |        __      __      __  __

Manchester:
+V  |‾‾  ‾‾    ‾‾‾‾    ‾‾‾‾    ‾‾  ‾‾‾‾  ‾‾
 0  |
-V  |  __  ____    ____    ____  __    __  __

AMI (bipolar NRZ):
+V  |‾‾‾‾        ‾‾‾‾                ‾‾‾‾
 0  |        ----    ----    --------
-V  |    ____            ____            ____

Levels in each bit (a pair means first half, second half):

Code1101010011
Polar NRZ+V+V−V+V−V+V−V−V+V+V
Polar RZ+V,0+V,0−V,0+V,0−V,0+V,0−V,0−V,0+V,0+V,0
Manchester+V,−V+V,−V−V,+V+V,−V−V,+V+V,−V−V,+V−V,+V+V,−V+V,−V
AMI (bipolar NRZ)+V−V0+V0−V00+V−V

Manchester and polar RZ have a transition in every bit (good timing), while AMI has zero average value because its marks alternate.

  • 2072 Kartik (CS II) · 2+3 marks

Write down the significance of variable length coding with relevant example. A fixed length source encoder generates six symbols with probabilities {0.2, 0.15, 0.25, 0.05, 0.3, 0.05} and encoded by unique code word. Find entropy and maximum code efficiency.

Answer

Significance of variable length coding

In variable-length coding, frequent symbols get short code words and rare symbols get long code words. Its significance:

  • The average length Lˉ=∑pili\bar L = \sum p_i l_i becomes smaller than a fixed-length code and can approach the entropy HH, so bit rate, bandwidth and storage are reduced.
  • It uses the source statistics; when probabilities are unequal, fixed-length codes waste bits.
  • Prefix (instantaneous) variable-length codes such as Huffman and Shannon–Fano remain uniquely decodable.

Example: four symbols with p=0.5,0.25,0.125,0.125p = 0.5, 0.25, 0.125, 0.125. Fixed code: 2 bits each, Lˉ=2\bar L = 2. Variable code 0, 10, 110, 111: Lˉ=0.5(1)+0.25(2)+0.125(3)+0.125(3)=1.75\bar L = 0.5(1) + 0.25(2) + 0.125(3) + 0.125(3) = 1.75 bits = HH, so efficiency rises from 87.5 % to 100 %. (Morse code uses the same idea: "E" is a single dot.)

Numerical

Probabilities {0.2,0.15,0.25,0.05,0.3,0.05}\{0.2, 0.15, 0.25, 0.05, 0.3, 0.05\} (sum = 1).

Entropy:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
x10.22.32190.4644
x20.152.73700.4105
x30.252.00000.5000
x40.054.32190.2161
x50.31.73700.5211
x60.054.32190.2161
Total12.3282
H=2.3282 bits/symbolH = 2.3282\ \text{bits/symbol}

Fixed-length code: 6 symbols need ⌈log⁡26⌉=3\lceil\log_2 6\rceil = 3 bits each, so Lˉ=3\bar L = 3 bits/symbol.

Maximum code efficiency of this fixed-length encoder:

ηmax=HLˉ=2.32823=0.7761=77.61%\eta_{max} = \frac{H}{\bar L} = \frac{2.3282}{3} = 0.7761 = 77.61\%

(Redundancy = 22.39 %.) A variable-length code, e.g. Huffman with Lˉ=2.35\bar L = 2.35 bits, would raise the efficiency to 2.3282/2.35=99.07%2.3282/2.35 = 99.07\%.

Answer: H=2.3282H = 2.3282 bits/symbol; maximum efficiency of the fixed-length code = 77.61 %.

  • 2072 Kartik (CS II) · 4 marks

Write a short note on line codes.

Answer

Line coding is the conversion of a binary data sequence into a digital electrical waveform (pulse pattern) suitable for transmission over a baseband channel such as a wire or cable.

Desired properties of a line code:

  • No DC component and little low-frequency content (for AC-coupled lines and transformers).
  • Small bandwidth.
  • Enough transitions for clock (timing) recovery, even in long runs of 0s or 1s.
  • Some error detection ability.
  • Good noise immunity (low error probability for the given power) and transparency to any data pattern.

Common line codes:

CodeRuleNotes
Unipolar NRZ1 → +V+V, 0 → 0Simple; has DC, poor timing
Polar NRZ1 → +V+V, 0 → −V-VBetter noise immunity; DC for unequal 1s and 0s
Unipolar/Polar RZPulse for half bit onlyEdges each bit; double bandwidth
AMI (bipolar)0 → 0, 1s alternate ±No DC; detects single errors; long 0 runs lose timing
Manchester1 → +/−, 0 → −/+Self-clocking, no DC; double bandwidth (Ethernet)

Example for data 101100:

bits  1   0   1   1   0   0  

Unipolar NRZ:
+V  |‾‾‾‾    ‾‾‾‾‾‾‾‾
 0  |    ----        --------

Polar NRZ:
+V  |‾‾‾‾    ‾‾‾‾‾‾‾‾
 0  |
-V  |    ____        ________

AMI (bipolar NRZ):
+V  |‾‾‾‾        ‾‾‾‾
 0  |    ----        --------
-V  |        ____

Manchester:
+V  |‾‾    ‾‾‾‾  ‾‾    ‾‾  ‾‾
 0  |
-V  |  ____    __  ____  __

Variants such as HDB3 and B8ZS replace long zero runs in AMI to keep timing.

  • 2072 Chaitra (CS II) · 5 marks

If a source emits symbols Xi = {A, B, C, D, E, F} in the BCD format with probabilities P(Xi) = {0.3, 0.1, 0.02, 0.15, 0.4, 0.03} at a rate Rs = 14.4 kbaud, find the following: i) Information rate ii) Coding efficiency both with BCD and Huffman coded signal

Answer

Given: six symbols A–F with P={0.3,0.1,0.02,0.15,0.4,0.03}P = \{0.3, 0.1, 0.02, 0.15, 0.4, 0.03\} (sum = 1); symbol rate rs=14.4r_s = 14.4 kbaud = 14 400 symbols/s; BCD format = 4 bits per symbol.

Entropy:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
A0.31.73700.5211
B0.13.32190.3322
C0.025.64390.1129
D0.152.73700.4105
E0.41.32190.5288
F0.035.05890.1518
Total12.0572
H=2.0572 bits/symbolH = 2.0572\ \text{bits/symbol}

i) Information rate

R=rsH=14 400×2.0572=29 624.29 bits/s≈29.62 kbpsR = r_s H = 14\ 400 \times 2.0572 = 29\ 624.29\ \text{bits/s} \approx 29.62\ \text{kbps}

ii) Coding efficiency

BCD coding: each symbol uses 4 bits, Lˉ=4\bar L = 4.

ηBCD=2.05724=51.43%\eta_{BCD} = \frac{2.0572}{4} = 51.43\%

(The line bit rate would be 14 400×4=57.614\ 400 \times 4 = 57.6 kbps.)

Huffman coding:

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.4, 0.3, 0.15, 0.1, 0.03, 0.020.03 + 0.02 = 0.05
20.4, 0.3, 0.15, 0.1, 0.050.1 + 0.05 = 0.15
30.4, 0.3, 0.15, 0.150.15 + 0.15 = 0.3
40.4, 0.3, 0.30.3 + 0.3 = 0.6
50.6, 0.40.6 + 0.4 = 1
Symbolpip_iHuffman codelil_i
E0.411
A0.3012
D0.150013
B0.100004
F0.03000105
C0.02000115
LˉH=0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.03(5)+0.02(5)=0.4+0.6+0.45+0.4+0.15+0.1=2.10 bits/symbolηH=2.05722.10=97.96%\begin{aligned} \bar L_H &= 0.4(1)+0.3(2)+0.15(3)+0.1(4)+0.03(5)+0.02(5) \\ &= 0.4+0.6+0.45+0.4+0.15+0.1 = 2.10\ \text{bits/symbol} \\ \eta_H &= \frac{2.0572}{2.10} = 97.96\% \end{aligned}

Bit rate with Huffman coding: 14 400×2.1=30.2414\ 400 \times 2.1 = 30.24 kbps.

Answer: R≈29.62R \approx 29.62 kbps; efficiency with BCD = 51.43 %, with Huffman = 97.96 %.

  • 2072 Chaitra (CS II) · 4 marks

Explain Huffman codes with examples.

Answer

A Huffman code is an optimal variable-length prefix code: for a given set of symbol probabilities, no other symbol-by-symbol code has a smaller average length Lˉ\bar L. Frequent symbols get short code words.

Procedure:

  1. List the symbols in decreasing order of probability.
  2. Combine the two lowest probabilities into a new probability equal to their sum.
  3. Put the sum in the reordered list, as high as possible among equal values.
  4. Repeat until only two (then one) probabilities remain.
  5. Going back from the last stage, assign 0 to one branch and 1 to the other at each merge; a symbol's code is the sequence of bits on its path.

Example: five symbols A–E with P={0.4,0.2,0.2,0.1,0.1}P = \{0.4, 0.2, 0.2, 0.1, 0.1\}.

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.4, 0.2, 0.2, 0.1, 0.10.1 + 0.1 = 0.2
20.4, 0.2, 0.2, 0.20.2 + 0.2 = 0.4
30.4, 0.4, 0.20.4 + 0.2 = 0.6
40.6, 0.40.6 + 0.4 = 1
Symbolpip_iHuffman codelil_i
A0.4002
B0.2102
C0.2112
D0.10103
E0.10113
Lˉ=0.4(2)+0.2(2)+0.2(2)+0.1(3)+0.1(3)=2.2 bits/symbolH=2.1219 bits/symbol,η=2.12192.2=96.45%\begin{aligned} \bar L &= 0.4(2)+0.2(2)+0.2(2)+0.1(3)+0.1(3) = 2.2\ \text{bits/symbol} \\ H &= 2.1219\ \text{bits/symbol}, \qquad \eta = \frac{2.1219}{2.2} = 96.45\% \end{aligned}

A fixed-length code would need 3 bits (efficiency 70.7 %). No code word is a prefix of another, so "0001110" decodes uniquely as 00 | 011 | 10 = A, E, B. Huffman coding is used in JPEG, MP3 and ZIP.

  • 2071 Shrawan (CS II) · 2+4+2 marks

Explain the importance of source coding in Digital Communication System. A discrete memory less source emits one of the eight symbols with probabilities P = {0.25, 0.20, 0.2, 0.15, 0.08, 0.07, 0.03, 0.02}. If the output symbols are encoded using Huffman code, find the Coding efficiency and output bit if the symbol rate of the source is 1000 symbols per second.

Answer

Importance of source coding

Source coding represents the source output with the minimum average number of bits by removing redundancy:

  • It brings the average code length Lˉ\bar L close to the entropy HH (Shannon's source coding theorem: Lˉ≥H\bar L \ge H).
  • It lowers the bit rate, so less bandwidth, power and storage are needed.
  • Variable-length prefix codes (Huffman, Shannon–Fano) give short words to likely symbols and remain uniquely decodable.

Huffman code

P={0.25,0.20,0.2,0.15,0.08,0.07,0.03,0.02}P = \{0.25, 0.20, 0.2, 0.15, 0.08, 0.07, 0.03, 0.02\} for x1…x8x_1 \dots x_8 (sum = 1).

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.25, 0.2, 0.2, 0.15, 0.08, 0.07, 0.03, 0.020.03 + 0.02 = 0.05
20.25, 0.2, 0.2, 0.15, 0.08, 0.07, 0.050.07 + 0.05 = 0.12
30.25, 0.2, 0.2, 0.15, 0.12, 0.080.12 + 0.08 = 0.2
40.25, 0.2, 0.2, 0.2, 0.150.2 + 0.15 = 0.35
50.35, 0.25, 0.2, 0.20.2 + 0.2 = 0.4
60.4, 0.35, 0.250.35 + 0.25 = 0.6
70.6, 0.40.6 + 0.4 = 1
Symbolpip_iHuffman codelil_i
x10.25012
x20.2112
x30.20003
x40.150013
x50.081013
x60.0710004
x70.03100105
x80.02100115

Entropy:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
x10.252.00000.5000
x20.22.32190.4644
x30.22.32190.4644
x40.152.73700.4105
x50.083.64390.2915
x60.073.83650.2686
x70.035.05890.1518
x80.025.64390.1129
Total12.6640
H=2.6640 bits/symbolH = 2.6640\ \text{bits/symbol}

Average length and efficiency:

Lˉ=∑pili=2.72 bits/symbolη=HLˉ=2.66402.72=97.94%\begin{aligned} \bar L &= \sum p_i l_i = 2.72\ \text{bits/symbol} \\ \eta &= \frac{H}{\bar L} = \frac{2.6640}{2.72} = 97.94\% \end{aligned}

(A fixed 3-bit code would give 2.664/3=88.80%2.664/3 = 88.80\%.)

Output bit rate

Rb=rLˉ=1000×2.72=2720 bits/sR_b = r\bar L = 1000 \times 2.72 = 2720\ \text{bits/s}

(The information rate is rH=2664rH = 2664 bits/s.)

Answer: coding efficiency = 97.94 %; output bit rate = 2720 bits/s.

  • 2071 Chaitra (CS II) · 2+4+2 marks

Explain the importance of source coding in digital communication system. A discrete memory less source emits four symbols with probabilities P = {0.125, 0.125, 0.25, 0.5}. If the output symbols are encoded using Shannon Fano code, find the Coding efficiency and compare the coding efficiency with that of BCD code.

Answer

Importance of source coding

Source coding removes redundancy from the source output so that each symbol is represented by as few bits as possible on average:

  • It reduces the bit rate, so less bandwidth, power and storage are needed.
  • It uses the symbol probabilities: likely symbols get short code words.
  • The best possible average length is the entropy HH; efficiency η=H/Lˉ\eta = H/\bar L shows how close a code comes.

Shannon–Fano code

P={0.125,0.125,0.25,0.5}P = \{0.125, 0.125, 0.25, 0.5\} for x1,x2,x3,x4x_1, x_2, x_3, x_4. In decreasing order: x4x_4 0.5, x3x_3 0.25, x1x_1 0.125, x2x_2 0.125. Splits: {0.5} | {0.25, 0.125, 0.125}; {0.25} | {0.125, 0.125}; {0.125} | {0.125}.

Symbolpip_iStep 1Step 2Step 3Codelil_i
x40.5001
x30.2510102
x10.1251101103
x20.1251111113

Entropy:

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
x10.1253.00000.3750
x20.1253.00000.3750
x30.252.00000.5000
x40.51.00000.5000
Total11.7500
H=0.5(1)+0.25(2)+2(0.125)(3)=1.75 bits/symbolLˉSF=0.5(1)+0.25(2)+0.125(3)+0.125(3)=1.75 bits/symbolηSF=1.751.75=100%\begin{aligned} H &= 0.5(1) + 0.25(2) + 2(0.125)(3) = 1.75\ \text{bits/symbol} \\ \bar L_{SF} &= 0.5(1) + 0.25(2) + 0.125(3) + 0.125(3) = 1.75\ \text{bits/symbol} \\ \eta_{SF} &= \frac{1.75}{1.75} = 100\% \end{aligned}

Comparison with BCD

In BCD each symbol is sent as a 4-bit binary-coded-decimal word (0000, 0001, 0010, 0011), so Lˉ=4\bar L = 4:

ηBCD=1.754=43.75%\eta_{BCD} = \frac{1.75}{4} = 43.75\%
CodeLˉ\bar LEfficiency
Shannon–Fano1.75100 %
BCD (4 bits)443.75 %

Shannon–Fano reaches 100 % because all probabilities are powers of 12\frac12. (If "BCD" is read as the plain 2-bit binary code, η=1.75/2=87.5%\eta = 1.75/2 = 87.5\%; Shannon–Fano is still better.)

  • 2071 Chaitra (CS II) · 3+6 marks

State Nyquist Criteria for zero ISI in both time and frequency domain. What are two major difficulties with duo binary encoding method and explain how can they be solved?

Answer

Nyquist criterion for zero ISI

Let p(t)p(t) be the overall pulse (transmit filter, channel, receive filter), normalized so p(0)=1p(0) = 1, and TbT_b the bit period.

Time domain: the pulse must be zero at every sampling instant except its own:

p(nTb)={1,n=00,n≠0p(nT_b) = \begin{cases} 1, & n = 0 \\ 0, & n \ne 0 \end{cases}

Frequency domain: the spectrum and its copies shifted by multiples of Rb=1/TbR_b = 1/T_b must add to a constant:

∑n=−∞∞P(f−nTb)=Tb\sum_{n=-\infty}^{\infty} P\left(f - \frac{n}{T_b}\right) = T_b

The minimum-bandwidth solution is P(f)=Tb rect(fTb)P(f) = T_b\,\text{rect}(fT_b) (bandwidth Rb/2R_b/2, pulse sinc(t/Tb)\text{sinc}(t/T_b)); the practical solution is the raised cosine spectrum with bandwidth Rb2(1+α)\frac{R_b}{2}(1 + \alpha).

Two major difficulties with duobinary encoding and their solutions

Duobinary sends ck=ak+ak−1c_k = a_k + a_{k-1} with H(f)=2cos⁡(πfTb)e−jπfTbH(f) = 2\cos(\pi fT_b)e^{-j\pi fT_b}.

1. Error propagation

The receiver estimates a^k=ck−a^k−1\hat a_k = c_k - \hat a_{k-1}. If one decision is wrong, the wrong value is used for the next decision, and the error carries forward.

Solution: precoding. Before level mapping form

dk=bk⊕dk−1d_k = b_k \oplus d_{k-1}

Then ck=0c_k = 0 if bk=1b_k = 1 and ck=±2c_k = \pm 2 if bk=0b_k = 0, so the detector decides each bit from its own sample: ∣ck∣<1⇒1|c_k| < 1 \Rightarrow 1, otherwise 0. No previous decision is needed, so errors do not propagate.

Example (d0=1d_0 = 1): b=0 1 1b = 0\,1\,1 gives d=1 0 1d = 1\,0\,1, a=+1,−1,+1a = +1, -1, +1, c=+2,0,0c = +2, 0, 0, decoded 0 1 10\,1\,1.

2. Non-zero DC (low-frequency) content

∣H(f)∣=2cos⁡(πfTb)|H(f)| = 2\cos(\pi fT_b) is maximum at f=0f = 0, so the duobinary signal has a strong DC component. It cannot pass through AC-coupled (transformer or capacitor) lines, and it is unsuitable for single-sideband transmission, which needs a spectral null near zero frequency.

Solution: modified duobinary signalling. Correlate symbols two bits apart:

ck=ak−ak−2,H(f)=2jsin⁡(2πfTb) e−j2πfTbc_k = a_k - a_{k-2}, \qquad H(f) = 2j\sin(2\pi fT_b)\,e^{-j2\pi fT_b}

H(0)=0H(0) = 0, so there is no DC component. It is used with the precoder dk=bk⊕dk−2d_k = b_k \oplus d_{k-2} to avoid error propagation.

(Another drawback: three output levels instead of two need more signal power for the same error rate; this is accepted as the price for minimum bandwidth.)

  • 2070 Asar (CS II) · 1+3+1 marks

What is source coding? Develop Huffman coding of a 5 symbol source with probabilities: S0 = 0.3, S1 = 0.25, S2 = 0.2, S3 = 0.15, S4 = 0.1. And also calculate Coding efficiency.

Answer

Source coding

Source coding is the process of representing the symbols of an information source by binary code words with the least average number of bits, by removing redundancy, so that the average code length approaches the source entropy (e.g. Huffman, Shannon–Fano coding).

Huffman code

PP: S0 = 0.3, S1 = 0.25, S2 = 0.2, S3 = 0.15, S4 = 0.1.

Reduction (sum of two lowest moved up as high as possible):

StageProbabilities (descending)Combined
10.3, 0.25, 0.2, 0.15, 0.10.15 + 0.1 = 0.25
20.3, 0.25, 0.25, 0.20.25 + 0.2 = 0.45
30.45, 0.3, 0.250.3 + 0.25 = 0.55
40.55, 0.450.55 + 0.45 = 1
Symbolpip_iHuffman codelil_i
S00.3002
S10.25102
S20.2112
S30.150103
S40.10113

Coding efficiency

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
S00.31.73700.5211
S10.252.00000.5000
S20.22.32190.4644
S30.152.73700.4105
S40.13.32190.3322
Total12.2282
H=2.2282 bits/symbolLˉ=0.3(2)+0.25(2)+0.2(2)+0.15(3)+0.1(3)=2.25 bits/symbolη=HLˉ=2.22822.25=99.03%\begin{aligned} H &= 2.2282\ \text{bits/symbol} \\ \bar L &= 0.3(2)+0.25(2)+0.2(2)+0.15(3)+0.1(3) = 2.25\ \text{bits/symbol} \\ \eta &= \frac{H}{\bar L} = \frac{2.2282}{2.25} = 99.03\% \end{aligned}

Answer: S0, S1, S2 get 2-bit codes and S3, S4 get 3-bit codes; efficiency 99.03 %.

  • 2070 Asar (CS II) · 2+4 marks

Define Information and Entropy. Calculate the upper limit of the channel capacity as the bandwidth of the channel B tends to infinity.

Answer

Information and entropy

  • Information: the amount of information in a message mkm_k of probability pkp_k is Ik=log⁡21pkI_k = \log_2\frac{1}{p_k} bits. Less likely messages carry more information; a certain message carries none.
  • Entropy: the average information per symbol of a source:
H=∑k=1Mpklog⁡21pk bits/symbol,0≤H≤log⁡2MH = \sum_{k=1}^{M} p_k\log_2\frac{1}{p_k}\ \text{bits/symbol}, \qquad 0 \le H \le \log_2 M

Upper limit of channel capacity as B→∞B \to \infty

Shannon–Hartley: for an AWGN channel with signal power SS and noise PSD N0N_0 (so N=N0BN = N_0 B),

C=Blog⁡2(1+SN0B)C = B\log_2\left(1 + \frac{S}{N_0B}\right)

Let x=SN0Bx = \dfrac{S}{N_0 B}, so B=SN0⋅1xB = \dfrac{S}{N_0}\cdot\dfrac1x:

C=SN0⋅1xlog⁡2(1+x)=SN0log⁡2(1+x)1/xC = \frac{S}{N_0}\cdot\frac{1}{x}\log_2(1+x) = \frac{S}{N_0}\log_2(1+x)^{1/x}

When B→∞B \to \infty, x→0x \to 0, and the standard limit lim⁡x→0(1+x)1/x=e\lim_{x \to 0}(1+x)^{1/x} = e gives

C∞=SN0log⁡2e=1.44 SN0 bits/sC_\infty = \frac{S}{N_0}\log_2 e = 1.44\,\frac{S}{N_0}\ \text{bits/s}

Capacity stays finite because the noise power grows in proportion to the bandwidth. At this limit the energy per bit satisfies Eb/N0=ln⁡2=0.693E_b/N_0 = \ln 2 = 0.693 (−1.6 dB), the Shannon limit.

Answer: C∞=1.44 S/N0C_\infty = 1.44\,S/N_0 bits/s.

  • 2070 Asar (CS II) · 6 marks

State Nyquist pulse shaping criteria for Zero ISI. Discuss any one pulse shaping method of ISI reduction.

Answer

Nyquist criterion for zero ISI

For an overall pulse p(t)p(t) sampled every TbT_b seconds, there is no ISI if

p(nTb)={1,n=00,n≠0⟺∑n=−∞∞P(f−nTb)=Tbp(nT_b) = \begin{cases} 1, & n = 0 \\ 0, & n \ne 0 \end{cases} \quad\Longleftrightarrow\quad \sum_{n=-\infty}^{\infty} P\left(f - \frac{n}{T_b}\right) = T_b

The ideal solution is the rectangular spectrum of bandwidth B0=Rb/2B_0 = R_b/2, p(t)=sinc(t/Tb)p(t) = \text{sinc}(t/T_b), but it is not realizable and its slowly decaying tails make it very sensitive to timing errors.

Raised cosine pulse shaping

The raised cosine spectrum keeps the zero-ISI property but rolls off gradually:

P(f)={12B0,0≤∣f∣<f114B0[1+cos⁡π(∣f∣−f1)2B0−2f1],f1≤∣f∣<2B0−f10,∣f∣≥2B0−f1P(f) = \begin{cases} \dfrac{1}{2B_0}, & 0 \le |f| < f_1 \\[2mm] \dfrac{1}{4B_0}\left[1 + \cos\dfrac{\pi(|f| - f_1)}{2B_0 - 2f_1}\right], & f_1 \le |f| < 2B_0 - f_1 \\[2mm] 0, & |f| \ge 2B_0 - f_1 \end{cases}

with B0=Rb2B_0 = \frac{R_b}{2}, roll-off factor α=1−f1B0\alpha = 1 - \frac{f_1}{B_0} (0≤α≤10 \le \alpha \le 1).

Transmission bandwidth:

BT=B0(1+α)=Rb2(1+α)B_T = B_0(1 + \alpha) = \frac{R_b}{2}(1+\alpha)

Pulse:

p(t)=sinc(2B0t) cos⁡(2παB0t)1−16α2B02t2p(t) = \text{sinc}(2B_0t)\,\frac{\cos(2\pi\alpha B_0 t)}{1 - 16\alpha^2B_0^2t^2}

The sinc factor keeps zeros at t=nTbt = nT_b (zero ISI); the second factor makes the tails decay as 1/∣t∣31/|t|^3.

 P(f)
   |---------.                alpha = 0
   |----.     '.  .           alpha = 0.5
   |      '.    '.  '.        alpha = 1
   |        '.    '.  '.
   +----------+-----+----+--> f
   0       Rb/2  3Rb/4  Rb
α\alphaBandwidthRemarks
0Rb/2R_b/2Ideal Nyquist, unrealizable
0.50.75Rb0.75R_bCommon practical choice
1RbR_bFull cosine roll-off, easy filters, tails decay fastest

Example: Rb=10R_b = 10 kbps, α=0.5\alpha = 0.5 gives BT=5000×1.5=7.5B_T = 5000 \times 1.5 = 7.5 kHz.

Advantages: realizable filters, small ISI under timing jitter, wide eye opening. Cost: extra bandwidth αB0\alpha B_0. The filter is often split equally as root raised cosine filters at transmitter and receiver.

  • 2070 Asar (CS II) · 6 marks

A discrete source emits one of 6 possible symbols per 10 μs in statistically independent manner. The symbol probabilities are 1/4, 1/4, 1/4, 1/8, 1/16 and 1/16 respectively. Calculate symbol rate, entropy and information rate.

Answer

Given: one symbol per Ts=10 μT_s = 10\ \mus; P={14,14,14,18,116,116}P = \{\tfrac14, \tfrac14, \tfrac14, \tfrac18, \tfrac1{16}, \tfrac1{16}\} (sum = 1).

Symbol rate

r=1Ts=110×10−6=105 symbols/s=100 kbaudr = \frac{1}{T_s} = \frac{1}{10\times10^{-6}} = 10^5\ \text{symbols/s} = 100\ \text{kbaud}

Entropy

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
x10.252.00000.5000
x20.252.00000.5000
x30.252.00000.5000
x40.1253.00000.3750
x50.06254.00000.2500
x60.06254.00000.2500
Total12.3750
H=3(14log⁡24)+18log⁡28+2(116log⁡216)=3(0.5)+0.375+2(0.25)=1.5+0.375+0.5=2.375 bits/symbol\begin{aligned} H &= 3\left(\tfrac14\log_2 4\right) + \tfrac18\log_2 8 + 2\left(\tfrac1{16}\log_2 16\right) \\ &= 3(0.5) + 0.375 + 2(0.25) \\ &= 1.5 + 0.375 + 0.5 = 2.375\ \text{bits/symbol} \end{aligned}

(Maximum possible for 6 symbols: log⁡26=2.585\log_2 6 = 2.585 bits/symbol.)

Information rate

R=rH=105×2.375=2.375×105 bits/s=237.5 kbpsR = rH = 10^5 \times 2.375 = 2.375\times10^5\ \text{bits/s} = 237.5\ \text{kbps}

Answer: r=105r = 10^5 symbols/s, H=2.375H = 2.375 bits/symbol, R=237.5R = 237.5 kbps.

  • 2070 Chaitra (CS II) · 2+3 marks

Elaborate importance of source encoder? Write algorithm for Huffman's coding.

Answer

Importance of source encoder

The source encoder converts the source symbols into binary code words with the minimum average number of bits by removing redundancy.

  • It reduces the average code length toward the entropy (Lˉ→H\bar L \to H), so the bit rate, bandwidth and power needed are reduced.
  • It gives short code words to frequent symbols and long ones to rare symbols (variable-length coding).
  • It produces uniquely decodable (prefix) codes, so the receiver can decode without separators.
  • It saves storage space and makes room for channel coding redundancy.

Huffman coding algorithm

  1. Sort: list all source symbols in decreasing order of probability.
  2. Merge: combine the two symbols of lowest probability into one new symbol whose probability is the sum of the two.
  3. Reorder: insert the new probability into the list in its proper place (as high as possible among equal values); the list now has one fewer entry.
  4. Repeat steps 2–3 until only one entry (probability 1) is left.
  5. Assign bits: at each merge, give 0 to one branch (upper) and 1 to the other (lower).
  6. Read codes: trace each symbol's path from the final stage back to its original position; the bits along the path form its code word.
  7. Evaluate: Lˉ=∑pili\bar L = \sum p_i l_i, H=∑pilog⁡2(1/pi)H = \sum p_i\log_2(1/p_i), efficiency η=H/Lˉ\eta = H/\bar L.

Short example: P={0.5,0.25,0.125,0.125}P = \{0.5, 0.25, 0.125, 0.125\} → merge 0.125 + 0.125 = 0.25, then 0.25 + 0.25 = 0.5, then 0.5 + 0.5 = 1. Codes: 0, 10, 110, 111; Lˉ=1.75=H\bar L = 1.75 = H, η=100%\eta = 100\%.

  • 2070 Chaitra (CS II) · 2+3 marks

Differentiate between message and information? A discrete source is emitting one of 5 possible symbols per 10 microsec. The probabilities are 1/2, 1/4, 1/8, 1/16 and 1/16. Find (a) Symbol rate (b) Source entropy (c) Information rate

Answer

Message vs information

MessageInformation
The actual symbol or sequence produced by the sourceMeasure of uncertainty removed by receiving the message
Has physical form and meaningDepends only on probability, not meaning
Counted in symbolsMeasured in bits: I=log⁡2(1/p)I = \log_2(1/p)
A certain message is still a messageA certain message (p=1p = 1) carries 0 bits

Numerical

One of 5 symbols every 10 μ10\ \mus with P={12,14,18,116,116}P = \{\tfrac12, \tfrac14, \tfrac18, \tfrac1{16}, \tfrac1{16}\}.

(a) Symbol rate

r=110×10−6=105 symbols/sr = \frac{1}{10\times10^{-6}} = 10^5\ \text{symbols/s}

(b) Source entropy

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
x10.51.00000.5000
x20.252.00000.5000
x30.1253.00000.3750
x40.06254.00000.2500
x50.06254.00000.2500
Total11.8750
H=12(1)+14(2)+18(3)+116(4)+116(4)=0.5+0.5+0.375+0.25+0.25=1.875 bits/symbol\begin{aligned} H &= \tfrac12(1) + \tfrac14(2) + \tfrac18(3) + \tfrac1{16}(4) + \tfrac1{16}(4) \\ &= 0.5 + 0.5 + 0.375 + 0.25 + 0.25 = 1.875\ \text{bits/symbol} \end{aligned}

(c) Information rate

R=rH=105×1.875=1.875×105 bits/s=187.5 kbpsR = rH = 10^5 \times 1.875 = 1.875\times10^5\ \text{bits/s} = 187.5\ \text{kbps}

Answer: r=105r = 10^5 symbols/s, H=1.875H = 1.875 bits/symbol, R=187.5R = 187.5 kbps.

  • 2069 Chaitra (CS II) · 4 marks

A signal of bandwidth 4.5 kHz is sampled at the double rate given by Nyquist, the signal is quantized in 8 levels, the probability of occurrence of the level are 0.1, 0.15, 0.15, 0.05, 0.2, 0.05, 0.18, 0.12. Find the minimum no of bits per sample and information rate.

Answer

Given: fm=4.5f_m = 4.5 kHz; sampled at twice the Nyquist rate; 8 levels with P={0.1,0.15,0.15,0.05,0.2,0.05,0.18,0.12}P = \{0.1, 0.15, 0.15, 0.05, 0.2, 0.05, 0.18, 0.12\} (sum = 1).

Sampling rate: Nyquist rate =2fm=9= 2f_m = 9 kHz, so

fs=2×9 kHz=18 000 samples/sf_s = 2 \times 9\ \text{kHz} = 18\ 000\ \text{samples/s}

Minimum number of bits per sample: with a fixed-length binary code, 8 levels need

n=log⁡28=3 bits/samplen = \log_2 8 = 3\ \text{bits/sample}

Entropy (the theoretical minimum average bits per sample with ideal source coding):

Symbolpip_ilog⁡2(1/pi)\log_2(1/p_i)pilog⁡2(1/pi)p_i\log_2(1/p_i)
Q10.13.32190.3322
Q20.152.73700.4105
Q30.152.73700.4105
Q40.054.32190.2161
Q50.22.32190.4644
Q60.054.32190.2161
Q70.182.47390.4453
Q80.123.05890.3671
Total12.8622
H=2.8622 bits/sampleH = 2.8622\ \text{bits/sample}

Information rate:

R=fsH=18 000×2.8622=51 520.24 bits/s≈51.52 kbpsR = f_s H = 18\ 000 \times 2.8622 = 51\ 520.24\ \text{bits/s} \approx 51.52\ \text{kbps}

(With 3-bit PCM words the line bit rate is 18 000×3=5418\ 000 \times 3 = 54 kbps.)

Answer: 3 bits/sample (entropy limit 2.862 bits/sample); information rate ≈ 51.52 kbps.

  • 2069 Chaitra (CS II) · 2+6 marks

What is ISI? Explain two practical methods of minimizing ISI.

Answer

ISI

Intersymbol interference (ISI) is the interference caused at the sampling instant of a symbol by the spread-out tails of neighbouring symbols. A band-limited, dispersive channel stretches each pulse beyond its own interval, so the sample becomes

y(kTb)=μak+μ∑n≠kan p((k−n)Tb)+n(kTb)y(kT_b) = \mu a_k + \mu\sum_{n\ne k}a_n\,p\big((k-n)T_b\big) + n(kT_b)

The sum term is ISI; it reduces the eye opening and causes errors even without noise.

Method 1: Pulse shaping with raised cosine filters

The transmit and receive filters are designed so that the overall pulse satisfies the Nyquist criterion, p(nTb)=0p(nT_b) = 0 for n≠0n \ne 0. The ideal sinc pulse is not realizable, so the raised cosine spectrum is used:

  • Roll-off factor α\alpha (0≤α≤10 \le \alpha \le 1); bandwidth BT=Rb2(1+α)B_T = \frac{R_b}{2}(1 + \alpha).
  • p(t)=sinc(t/Tb)cos⁡(παt/Tb)1−4α2t2/Tb2p(t) = \text{sinc}(t/T_b)\dfrac{\cos(\pi\alpha t/T_b)}{1 - 4\alpha^2t^2/T_b^2} has zeros at all other sampling instants.
  • Tails decay as 1/t31/t^3, so small timing errors cause little ISI.
  • Usually split as root raised cosine filters at the transmitter and the receiver (also giving matched filtering).

Example: Rb=9600R_b = 9600 bps with α=0.5\alpha = 0.5 needs BT=4800×1.5=7200B_T = 4800 \times 1.5 = 7200 Hz.

Method 2: Equalization

An equalizer is a filter at the receiver whose response cancels the channel distortion, so that channel plus equalizer is close to a Nyquist pulse. The usual form is the transversal (tapped delay line) equalizer:

x(t)->[Tb]--->[Tb]--->[Tb]---> ...
   |      |       |       |
  c-N   c-N+1    ...     cN    (tap gains)
   |      |       |       |
   +------+---(sum)-------+---> y(t) to detector
y(kTb)=∑n=−NNcn x((k−n)Tb)y(kT_b) = \sum_{n=-N}^{N} c_n\,x\big((k-n)T_b\big)
  • Zero-forcing equalizer: taps chosen so that y=1y = 1 at k=0k = 0 and y=0y = 0 at the 2N2N nearest sampling points on each side, forcing ISI to zero there.
  • Adaptive equalizer: taps adjusted continuously (LMS algorithm) using a training sequence or decisions, so it tracks time-varying channels such as telephone and mobile links.

(Other methods: correlative coding such as duobinary, and choosing the best sampling instant from the eye pattern.)

Questions from Old Question Collection (BEI EX 656) (BEI Communication Systems (EX 656) exam papers, 2078 to 2081 Chaitra), Communication System I (EX 652) (BEX Communication System I (EX 652) papers 2064 to 2080, plus two old BCT Communication Systems papers (2068, 2071)) and Communication System II (EX 702) (BEX Communication System II (EX 702) exam papers, 2069 to 2081). Answers are written for this site; check them against your class notes.

Chapter titles and hours from the IOE syllabus ↗