Coding theory MOC

Hamming distance

Let 𝑆 be an arbitrary set. The Hamming distance 𝑑(𝑥,𝑦) of 𝑥,𝑦 𝑆𝑛 is the number of positions in which they differ, #m/def/code i.e.

𝑑(𝑥,𝑦)=𝑛𝑖=1[𝑥𝑖=𝑦𝑖]

where we have used an Iverson bracket. This defines a metric on 𝑆𝑛.


#state/tidy | #lang/en | #SemBr