Block coding
BLOCK CODING
 In block coding, we divide the message into blocks,
each of k bits, called data words
 We add r redundant bits to each block to make the
length.
 n=k+r
 The resulting n-bit blocks are called code words.
Block coding
 •With kbits, wecan createacombination of2k datawords; with nbits,wecan createacombination of2”codewords.
 •Sincen>k,thenumberofpossible codewordsislargerthan thenumberofpossible datawords. Thesame dataword isalways
encodedasthesame codeword.Othercodewords areinvalid orillegal.
For eg:
If K=4
n=5
2 =2⁴ =16;
2 = 2⁵ =32; (2 – 2 )
16 only valid out of these 32 codewords.
Remaining bits are invalid.
K
n n K
Error detection in block coding
Thank you

Block Coding.pptx

  • 1.
  • 2.
    BLOCK CODING  Inblock coding, we divide the message into blocks, each of k bits, called data words  We add r redundant bits to each block to make the length.  n=k+r  The resulting n-bit blocks are called code words.
  • 3.
    Block coding  •Withkbits, wecan createacombination of2k datawords; with nbits,wecan createacombination of2”codewords.  •Sincen>k,thenumberofpossible codewordsislargerthan thenumberofpossible datawords. Thesame dataword isalways encodedasthesame codeword.Othercodewords areinvalid orillegal.
  • 4.
    For eg: If K=4 n=5 2=2⁴ =16; 2 = 2⁵ =32; (2 – 2 ) 16 only valid out of these 32 codewords. Remaining bits are invalid. K n n K
  • 5.
    Error detection inblock coding
  • 6.