Show the following properties of Hamming weight

  • Thread starter Thread starter lenti
  • Start date Start date
  • Tags Tags
    Properties Weight
Click For Summary
SUMMARY

The discussion focuses on the properties of Hamming weight for binary words x and y of equal length. Key properties include the equations: a) w(x+y) = w(x) + w(y) - 2w(x*y), b) w(x+y) ≥ w(x) - w(y), c) for w(y) even, w(x+y) is even iff w(x) is even, and d) for w(y) odd, w(x+y) is odd iff w(x) is even. The Hamming weight, denoted as w(x), is defined as the count of non-zero components in a binary word, expressed mathematically as w(x) = ∑I{x≠0}. The discussion also clarifies the operations involved, particularly the dot product interpretation of x*y.

PREREQUISITES
  • Understanding of binary operations and representations
  • Familiarity with Hamming weight and its mathematical definition
  • Knowledge of vector operations, specifically dot products
  • Basic concepts of binary addition and logical operations
NEXT STEPS
  • Study the properties of Hamming weight in detail
  • Learn about binary addition and its implications on Hamming weight
  • Explore the concept of dot products in binary vectors
  • Investigate applications of Hamming weight in error detection and correction
USEFUL FOR

Mathematicians, computer scientists, and engineers working with binary data, particularly in fields related to coding theory, data transmission, and error correction algorithms.

lenti
Messages
5
Reaction score
0
hi,

I have to show the following properties of the Hamming weight for binary words x and y of equal lenght:

a)w(x+y)=w(x)+w(y)-2w(x*y)

b)w(x+y)>=w(x)-w(y)

c) For w(y) even, w(x+y) is even iff w(x) is even

d) For w(y) odd, w(x+y) is odd iff w(x) is even

can anybody help me,

thanks

lenti
 
Last edited:
Physics news on Phys.org
You probably won't get much help if you don't at least provide us the formula for Hamming weight.
 
Well the Hamming weight of a length-N word x denoted w(x) is defined as the number of components (symbols) of x that are nonzero.

Well there is no special formula about the hamming weight it can be formulated as w(x)= \sumI{x\neq0}

where I{x\neq0}, the indicator of event {x\neq0}, is 1 if x\neq0 and 0 if x=0

thanks
 
Last edited:
a) I'm not sure what x*y means, but I suspect it is the dot product of the two words treated as vectors. If so, w(x*y) gives a measure of how many bits in x are 1 at the same place they are in y. If each bit in x is different from the corresponding bit in y, w(x*y) = 0. Is this correct?

For example, if
x = 1011
y = 0111

then x*y = 0011.

Also, x + y seems to be a new word of the same length as x (and as y), where a given bit is 1 in x + y if the corresponding bit in x or in y (or in both) is set.

For example, if
x = 1011
y = 0111
then x + y = 1111.

If I'm on the right track here, it seems that the formula should be w(x + y) = w(x) + w(y) - w(x*y), without the factor of 2 that you showed. Of course, I might not be on the right track, since I'm not sure what w(x*y) means.
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
3K
Replies
8
Views
2K
Replies
11
Views
3K
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K