Let us $x, y \in F_{2}^{n}$ such that $d(x,y) = m$. How many are there $z \in F_{2}^{n}$ such that
$d(x,z) = k , d(y,z) = r$ ?
Let us $x, y \in F_{2}^{n}$ such that $d(x,y) = m$. How many are there $z \in F_{2}^{n}$ such that
$d(x,z) = k , d(y,z) = r$ ?
Copyright © 2021 JogjaFile Inc.
Hint: With $\oplus$ denoting the bit-wise XOR, we have $$ d(x \oplus v,x \oplus w) = d(v \oplus w). $$ Thus, we can assume without loss of generality that $x = \mathbf 0$. With that in mind, we can reframe the question into the following:
We note that at least one such $z$ can be produced if and only if $|m-k| \leq r$ and $m-k \equiv r \pmod 2$.
Under the assumption that this condition holds, each vector $z$ can be uniquely produced via the following procedure: