Binary encoding function problem

  • Thread starter Thread starter sara15
  • Start date Start date
  • Tags Tags
    Binary Function
sara15
Messages
14
Reaction score
0
consider the binary encoding function that sends (a1,a2,a3) into (a1,a2,a3,a1+a2, a2+a3, a1+a3,a1+a2+a3). First , how can I give a generator matrix of this code
. then how can I provide the parity check matrix , giving n,k and the minimum distance of the code. Finall, how to decode m1=1100010 and m2= 0111010
please help me
 
Physics news on Phys.org


sara15 said:
consider the binary encoding function that sends (a1,a2,a3) into (a1,a2,a3,a1+a2, a2+a3, a1+a3,a1+a2+a3). First , how can I give a generator matrix of this code
. then how can I provide the parity check matrix , giving n,k and the minimum distance of the code. Finall, how to decode m1=1100010 and m2= 0111010
please help me

Hey there sara and welcome to the forums.

Since the transformation you are looking for is a linear transformation, we know that we can use linear algebra (ie a matrix).

So we have a three dimensional input and we want to generate a seven dimensional output.

So let's assign our vector as a 1x3 (row vector) and our output as a 1x7 (column vector).

So we have to compose a transformation that goes from
1x3 x (axb) = 1x7

This means that our transformation matrix has dimensions 3x7.

Using this information and the properties of matrix multiplication can you now populate your 3x7 matrix with values?
 


Thank you very much
 


ok I could get the generator matrix , but I still do not know how to find the parity check matrix and the minimum distance and then decode m1= 1100010 and m2 = 0111010
Many thanks
Sara
 


What kind of codes are you dealing with?

The older parity codes only used one bit for the block, but it seems here you are using four bits for the error correction. So two questions?

1) What is the error correction code mechanism you are using?
2) Is the distance you are referring to called the "Hamming distance"?
 


Your transformation matrix is
\left[<br /> \begin{array} {c c c} <br /> 1&amp;0&amp;0\\0&amp;1&amp;0\\0&amp;0&amp;1\\<br /> 1&amp;1&amp;0\\0&amp;1&amp;1\\1&amp;0&amp;1\\1&amp;1&amp;1\end{array} \right]
The bottom four rows are used for error detection.

Since you're dealing with binary values, there are eight possible values for an input (a1, a2, a3), so there are eight possible output vectors.

I would guess that the minimum distance you mentioned is the shortest distance between any two of the eight possible output vectors. I'm not sure that this is what you're supposed to do, as it would entail finding the distance between all pairs of the eight vectors, which would be pretty tedious.

On the other hand, maybe what you're supposed to do for the two vectors you are supposed to decode, is to find which of the eight output vectors is the closest. So for example, if the vector you're supposed to decode is (1,1,0,0,0,1,0), and you determine that the closest vector is (1,1,0,0,1,1,0), then the latter would be the corrected vector, which you could decode as a1 = 1, a2 = 1, and a3 = 0.
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...

Similar threads

Replies
11
Views
4K
Replies
6
Views
2K
Replies
7
Views
3K
Replies
3
Views
3K
Replies
2
Views
7K
Replies
3
Views
2K
Back
Top