HammingDistance

HammingDistance[u,v]

gives the Hamming distance between strings or vectors u and v.

Details and Options

Examples

open all close all

Basic Examples  (2)

Hamming distance between two strings:

In[1]:=
Click for copyable input
Out[1]=

Hamming distance between two vectors:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Options  (1)

Applications  (2)

Properties & Relations  (2)

Introduced in 2007
(6.0)