Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Hamming distance
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Properties == For a fixed length ''n'', the Hamming distance is a [[Metric (mathematics)|metric]] on the set of the [[word (formal language theory)|words]] of length ''n'' (also known as a [[Hamming space]]), as it fulfills the conditions of non-negativity, symmetry, the Hamming distance of two words is 0 if and only if the two words are identical, and it satisfies the [[triangle inequality]] as well:<ref name="Robinson2003" /> Indeed, if we fix three words ''a'', ''b'' and ''c'', then whenever there is a difference between the ''i''th letter of ''a'' and the ''i''th letter of ''c'', then there must be a difference between the ''i''th letter of ''a'' and ''i''th letter of ''b'', or between the ''i''th letter of ''b'' and the ''i''th letter of ''c''. Hence the Hamming distance between ''a'' and ''c'' is not larger than the sum of the Hamming distances between ''a'' and ''b'' and between ''b'' and ''c''. The Hamming distance between two words ''a'' and ''b'' can also be seen as the [[Hamming weight]] of ''a'' β ''b'' for an appropriate choice of the β operator, much as the difference between two integers can be seen as a distance from zero on the number line.{{clarify|date=June 2020}} For binary strings ''a'' and ''b'' the Hamming distance is equal to the number of ones ([[Hamming weight|population count]]) in ''a'' [[Exclusive or|XOR]] ''b''.<ref name="Warren_2013" /> The metric space of length-''n'' binary strings, with the Hamming distance, is known as the ''Hamming cube''; it is equivalent as a metric space to the set of distances between vertices in a [[hypercube graph]]. One can also view a binary string of length ''n'' as a vector in <math>\mathbb{R}^{n}</math> by treating each symbol in the string as a real coordinate; with this embedding, the strings form the vertices of an ''n''-dimensional [[hypercube]], and the Hamming distance of the strings is equivalent to the [[Manhattan distance]] between the vertices.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Hamming distance
(section)
Add topic