Binary encoding function problem

  • Thread starter Thread starter sara15
  • Start date Start date
  • Tags Tags
    Binary Function
Click For Summary

Homework Help Overview

The discussion revolves around a binary encoding function that transforms a 3-dimensional input vector (a1, a2, a3) into a 7-dimensional output vector. Participants are exploring how to derive the generator matrix, the parity check matrix, and the minimum distance of the code, as well as how to decode specific binary messages.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the linear transformation involved in the encoding process and the dimensions of the transformation matrix. Questions arise regarding the error correction mechanism and the definition of minimum distance, specifically whether it refers to Hamming distance.

Discussion Status

Some participants have successfully derived the generator matrix and are seeking further guidance on finding the parity check matrix and minimum distance. There is an ongoing exploration of the relationship between input and output vectors, as well as how to decode the provided binary messages.

Contextual Notes

Participants are working within the constraints of binary encoding and decoding, with specific attention to error detection and correction mechanisms. The discussion includes considerations of the properties of the transformation matrix and the implications for decoding.

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
[tex]\left[<br /> \begin{array} {c c c} <br /> 1&0&0\\0&1&0\\0&0&1\\<br /> 1&1&0\\0&1&1\\1&0&1\\1&1&1\end{array} \right][/tex]
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.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K