edited by
774 views
0 votes
0 votes

Consider a simple code $\mathcal{C}$ for error detection and correction. Each codeword in $\mathcal{C}$ consists of $2$ data bits $[d_1, d_0]$ followed by check bits $[c_2, c_1, c_0]$. The check bits are computed as follows: $c_2 = d_1+d_0, \: c_1=d_1$ and  $c_0=d_0$, where $'+'$ is a modulo-$2$ addition.

  1. Write down all the codewords for $\mathcal{C}$
  2. Determine the minimum Hamming distance between any two distinct codewords of $\mathcal{C}$
edited by

1 Answer

1 votes
1 votes

The Minimum hamming distance between any two distinct codewords will be 3.Here as per given $d_1,d_0$ are independent..Hence taken them into consideration.

Related questions

1 votes
1 votes
1 answer
1
akash.dinkar12 asked Apr 8, 2019
505 views
Write a $C$ program to fins all permutations of a string (having at most 6 characters). For example, a string of $3$ characters like $“abc"$ has 6 possible permutations...
0 votes
0 votes
1 answer
2
go_editor asked Sep 20, 2018
719 views
Write the number $(-5)^{\frac{1}{2}}$ in single precision IEEE 754 floating point form.
0 votes
0 votes
2 answers
4
go_editor asked Sep 20, 2018
406 views
Write a complete ANSI C code using recursion to calculate the $sum(s)$ of the digits of an integer number (i) consisting of maximum 5 digits. For example, (1) = if $i=123...