Levenshtein Distance - Relationship With Other Edit Distance Metrics

Relationship With Other Edit Distance Metrics

Levenshtein distance is not the only popular notion of edit distance. Variations can be obtained by changing the set of allowable edit operations: for instance,

  • length of the longest common subsequence is the metric obtained by allowing only addition and deletion, not substitution;
  • the Damerau–Levenshtein distance allows addition, deletion, substitution, and the transposition of two adjacent characters;
  • the Hamming distance only allows substitution (and hence, only applies to strings of the same length).

Edit distance in general is usually defined as a parametrizable metric in which a repertoire of edit operations is available, and each operation is assigned a cost (possibly infinite). This is further generalized by DNA sequence alignment algorithms such as the Smith–Waterman algorithm, which make an operation's cost depend on where it is applied.

Read more about this topic:  Levenshtein Distance

Famous quotes containing the words relationship with, relationship, edit and/or distance:

    When a mother quarrels with a daughter, she has a double dose of unhappiness—hers from the conflict, and empathy with her daughter’s from the conflict with her. Throughout her life a mother retains this special need to maintain a good relationship with her daughter.
    Terri Apter (20th century)

    From infancy, a growing girl creates a tapestry of ever-deepening and ever- enlarging relationships, with her self at the center. . . . The feminine personality comes to define itself within relationship and connection, where growth includes greater and greater complexities of interaction.
    Jeanne Elium (20th century)

    To a philosopher all news, as it is called, is gossip, and they who edit it and read it are old women over their tea.
    Henry David Thoreau (1817–1862)

    Her personality had an architectonic quality; I think of her when I see some of the great London railway termini, especially St. Pancras, with its soot and turrets, and she overshadowed her own daughters, whom she did not understand—my mother, who liked things to be nice; my dotty aunt. But my mother had not the strength to put even some physical distance between them, let alone keep the old monster at emotional arm’s length.
    Angela Carter (1940–1992)