---
title: "Source encoding vs channel encoding"
subject: "Communication Systems"
chapter: 6
key: "semester_6/communication_systems:source-vs-channel-encoding"
source: https://www.bctengineer.com/q/semester_6/communication_systems/source-vs-channel-encoding
site: BCT Engineering
---

# Source encoding vs channel encoding

Communication Systems · Chapter 6: Baseband Digital Data Transmission

- Asked in: 2081 Bhadra (CS II), 4 marks
- Video: [Source and Channel Coding](https://www.youtube.com/watch?v=u4nI6G4ZR5c) — Dr. Manjunath Byrappa
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_6/communication_systems/source-vs-channel-encoding
- Whole chapter: https://www.bctengineer.com/md/semester_6/communication_systems/chapter-6

## Question

How does source encoding differ from channel encoding?

## Short answer

Source encoding removes redundancy to compress data, reducing bit rate; channel encoding adds controlled redundancy for error detection/correction. Source aims for efficiency (compression), channel aims for reliability (error control).

## 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.

| Point | Source encoding | Channel encoding |
|---|---|---|
| Aim | Compression (efficiency) | Reliability (error control) |
| Redundancy | Removed | Added (parity/check bits) |
| Effect on bit rate | Lowered | Raised (code rate $k/n < 1$) |
| Based on | Source statistics (entropy $H$) | Channel noise (capacity $C$) |
| Governing theorem | Shannon source coding theorem: $\bar L \ge H$ | Shannon channel coding theorem: $R \le C$ |
| Position in system | Right after the source | After the source encoder, before the modulator |
| Examples | Huffman, Shannon–Fano, LZW, PCM/DPCM, MP3, JPEG | Parity, Hamming, CRC, BCH, convolutional, turbo, LDPC |

```text
 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).

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. What does each encoding do to redundancy?
   A. Both add it
   B. Source adds it; channel removes it
   C. Source removes it; channel adds controlled redundancy
   D. Both remove it
   Answer: C. Source coding compresses by removing redundancy, while channel coding adds parity bits for error control. (Key point: Redundancy)

2. How does channel encoding affect the bit rate?
   A. Raises it (code rate k/n < 1)
   B. Makes it zero
   C. Lowers it
   D. Leaves it unchanged
   Answer: A. Adding check bits makes n > k, so more bits are sent per message bit. (Key point: Bit rate effect)

3. Which condition belongs to the channel coding theorem?
   A. R <= C
   B. H <= log2 M
   C. L >= H
   D. L = H
   Answer: A. Source coding is governed by L >= H; channel coding by R <= C. (Key point: Governing theorem)

4. Where does the channel encoder sit?
   A. After the source encoder, before the modulator
   B. After the channel
   C. Before the source encoder
   D. After the demodulator
   Answer: A. The chain is source, source encoder, channel encoder, modulator, channel. (Key point: System order)

## Related in Communication Systems

- [Source vs channel coding; Huffman for five symbols](https://www.bctengineer.com/question.md?key=semester_6%2Fcommunication_systems%3Asource-channel-huffman-five) — Communication Systems, chapter 6
- [Advantages of digital communication; source and channel encoders](https://www.bctengineer.com/question.md?key=semester_6%2Fcommunication_systems%3Adigital-advantages-source-channel-encoders) — Communication Systems, chapter 1
- [Analog vs digital source; atmospheric noise](https://www.bctengineer.com/question.md?key=semester_6%2Fcommunication_systems%3Aanalog-vs-digital-source-atmospheric-noise) — Communication Systems, chapter 1
- [Importance of source coding; Shannon-Fano vs fixed length (seven symbols)](https://www.bctengineer.com/question.md?key=semester_6%2Fcommunication_systems%3Asource-coding-sf-fixed-seven) — Communication Systems, chapter 6
- [Importance of source coding; fixed vs Shannon-Fano (five symbols)](https://www.bctengineer.com/question.md?key=semester_6%2Fcommunication_systems%3Asource-coding-fixed-sf-five) — Communication Systems, chapter 6
- [Importance of source coding; Shannon-Fano vs BCD (four symbols)](https://www.bctengineer.com/question.md?key=semester_6%2Fcommunication_systems%3Asource-coding-sf-bcd-four) — Communication Systems, chapter 6

## Related in other subjects

- [Source coding vs channel coding](https://www.bctengineer.com/question.md?key=semester_5%2Fdata_communication%3Asource-vs-channel-coding) — Data Communication, chapter 8
- [Source coding; fixed vs variable length codes](https://www.bctengineer.com/question.md?key=semester_5%2Fdata_communication%3Asource-coding-fixed-variable) — Data Communication, chapter 8
- [CCI vs ACI and co-channel reuse ratio proof](https://www.bctengineer.com/question.md?key=semester_7%2Fwireless_communication%3Acci-aci-prove-reuse-ratio) — Wireless Communication, chapter 2
- [Analog vs digital multiplexing; 24-channel system](https://www.bctengineer.com/question.md?key=semester_8%2Ftelecommunications%3Aanalog-digital-mux-24-channel) — Telecommunications, chapter 3
