Finding the decoding transformation for a hamming code

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 4K views
Icheb
Messages
42
Reaction score
0
I have the following linear transformation

http://img162.imageshack.us/img162/3306/hammingcodeex4.gif

with G being a generating matrix for a hamming code and I have to find a matrix B so that the following:

[tex]\delta \cdot\gamma(\upsilon) = \upsilon[/tex] for all [tex]\upsilon \in Z^4_2[/tex]

is true for the transformation

[tex]\delta := \varphi_B: Z^7_2 \longrightarrow Z^4_2, c \longmapsto Bc[/tex]The way I understand this is that I have to reverse the initial transformation by finding the correct B. I figure it would be sufficient to invert G (since G * G^-1 * v = 1 * v = v and then B = G^-1), but how would that comply with the requirement that the first transformation goes from [tex]Z^4_2[/tex] to [tex]Z^7_2[/tex] and the second one goes the other way round?

If I can't just invert G, how would I go about this then?
 
Last edited by a moderator:
Physics news on Phys.org
You cannot take the inverse of non-square matrices. Let me think about this one a bit.

- Warren
 
I figure I'd have to "invent" a solution and then find a B that's based on that? I just have no idea how that would work.
 
Can you produce a 4x7 matrix so that the product with G is:
Code:
1 0 0 0 0 0 0
0 1 0 0 0 0 0
0 0 1 0 0 0 0
0 0 0 1 0 0 0
0 0 0 0 0 0 0 
0 0 0 0 0 0 0 
0 0 0 0 0 0 0
 
Wouldn't the resulting matrix be of type 4x4?

Here's what I found for that scenario:

Code:
1 0 0 0 0 0 0
1 0 0 0 0 0 0
0 1 0 0 0 0 0
1 0 0 0 0 0 0