I am dealing with error correction using a (10,6,3) shortened hamming code. I can do the linear algebra for decoding a (7,4) hamming code so i sort of understand what going on here. However now I am working on a (10,6,3) shortened hamming code and I have not been given the the parity check matrix. i need to implement the decoder in c++.
2026-04-01 05:08:19.1775020099
Finding the parity check matrix for (10,6,3) shortened Hamming Code
1.9k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
A $(10,6,3)$-code is gotten by shortening a $(15,11,3)$ Hamming code. You can find the parity check matrix of the latter for example here. Take the four top rows and the first 15 columns of that table. Basically any check matrix with the fifteen columns being all the non-zero combinations four bits will do as long as the users agree on it, but this one is most common.
Shortening by five bits simply means that five data bits are set to zero. Again you need to agree with the other users, which five were picked to be zero. My first guess would be that in the linked diagram you set the five last data bits $d_7=d_8=d_9=d_{10}=d_{11}=0$. The point of this is that as those bits are always zero there is no need to transmit them. The decoder of $(15,11,3)$-code will work just fine on $(10,6,3)$-code, because it, too, knows that those five bits were set to zero.
Extra(not necessary for your question, a pet peeve with that Wiki-article): When using an error-correcting code there is, at least in theory, no sharp division between parity and data bits. Any set of linearly independent columns will serve equally well. Of course, the users of the said code need to agree how the payload message is encoded, but there are several possible ways to do that.