Let be a -ary alphabet and let . Consider the space of words of length as a metric space with the Hamming distance. Then, given any word and integer radius , the solid sphere has volume given by the formula…
22 Jan 20251 min read
Let A be a q-ary alphabet and let n∈N. Consider the space of words An of length n as a metric space with the Hamming distance. Then, given any word w∈An and integer radius ϵ∈N, the solid sphere Sϵ(w) has volume vol(Sϵ(w))=∣Sϵ(w)∣ given by the formula…
∣Sϵ(w)∣=(0n)+(1n)(q−1)+(2n)(q−1)2+…+(ϵn)(q−1)ϵ=i=0∑ϵ(in)(q−1)i