Lably
Skip to content

Hamming distance

Number of bits that differ between two strings

  • 8 min read
  • 6 chapters

Related on Lably

Through String (computer science), Symbol and Triangle inequality

A major application is in coding theory, more specifically to block codes, in which the equal-length strings are vectors over a finite field.

Definition

The Hamming distance between two equal-length strings of symbols is the number of positions at which the corresponding symbols are different.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Computing and communication