The resultant equation will be,
D =
+ c
According to the given question,
Hamming space is given, k = 3
Binary components are given in decimals,
4 = 100
0 = 000
Let us consider the linear solution for any equation,
y = mx + b
y = D
x = n
m = f(n)
b= y-intercept, What is D if k = 0
Calculating the value for m,
if D = maximum then n = 1
if D = minimum then n =
m =
m =
after solving,
m =
------ equation 1
For calculating the value for b we do not know what n = 0 means so let us consider a known point on the line ( n = 1, D = k )
D = mx + b
k = mn + b
k - m = b
b = k + [
] ------- equation 2
Putting together both equations,
D = -[
] n + k + [
]
∴ At every level, you have more elements you could add while keeping the hamming distance the same as you had at the previous level.
Therefore, the resultant equation will be,
D =
+ c