Past exam question: 2071 Chaitra, Q12(a)
Open in the Padhaiko appQuestion
Define Dataword and Codeword with suitable example.
Solution
Dataword and Codeword Definitions: In channel block coding:
- Dataword: A block of information/message bits generated by the source encoder that represents the original user data without error-control protection. There are possible distinct datawords.
- Codeword: A block of bits () created by the channel encoder by appending redundant parity check bits to the -bit dataword:
There are possible -bit patterns, but only of them are valid codewords in the codebook.
Example: Consider a Hamming block code:
- data bits Dataword .
- parity check bits are calculated: .
- code bits Codeword .
Answer:
A dataword is a -bit block of original user data, and a codeword is the -bit () block formed by appending redundant parity bits for error control (e.g., in a code, dataword 1011 becomes codeword 1011010).