Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A109382
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A109382 Levenshtein distance between successive English names of nonnegative integers, excluding spaces and hyphens. +0
3
4, 3, 4, 5, 3, 3, 4, 5, 4, 3, 4, 4, 6, 3, 3, 2, 4, 4, 3, 7, 3, 3, 4, 5, 3, 3, 4, 5, 4, 7, 3, 3, 4, 5, 3, 3, 4, 5, 4, 7, 3, 3, 4, 5, 3, 3, 4, 5, 4, 6, 3, 3, 4, 5, 3, 3, 4, 5, 4, 6, 3, 3, 4, 5, 3, 3, 4, 5, 4, 7, 3, 3, 4, 5, 3, 3, 4, 5, 4, 8, 3, 3, 4, 5, 3, 3, 4, 5, 4, 7, 3, 3, 4, 5, 3, 3, 4, 5, 4, 7, 3, 4, 5, 3, 3 (list; graph; listen)
OFFSET

0,1

COMMENT

The Levenshtein distance (also called edit distance) between two strings is equal to the minimum number of insertion, deletion, or substitution operations needed to transform one string into the other. It is named after the Russian scientist Vladimir I. Levenshtein, who developed this metric in 1965. Levenshtein distance is a generalization of Hamming distance. The Levenshtein distance has several simple upper and lower bounds, particularly for this sequence, it is always at least the difference of the sizes of the two strings. Hence LD(name of n, name of n+1) is >= | A005589(n)-A005589(n+1) |, since A005589 is "Number of letters in the English name of n, excluding spaces and hyphens."

REFERENCES

V. I. Levenshtein, Efficient reconstruction of sequences from their subsequences or supersequences, J. Combin. Theory Ser. A 93 (2001), no. 2, 310-332.

LINKS

Michael Gilleland, Levenshtein Distance, in Three Flavors.

FORMULA

a(n) = LD(nameof(n), nameof(n+1)).

EXAMPLE

a(0) = 4 since LD(ZERO,ONE) requires 4 edits.

a(1) = 3 since LD(ONE,TWO) which requires 3 substitutions.

a(2) = 4 since LD(TWO,THREE) = requires 4 edits (leave the leftmost T unchanged), then 2 substitutions (W to H, O to R), then 2 insertions (E,E).

a(4) = 3 as LD(FOUR,FIVE) leaves the leftmost F unchanged, then requires 3 substitutions. From FIVE to SIX leaves the I unchanged. From SIX to SEVEN leaves the S unchanged. From TEN to ELEVEN leaves the EN unchanged. From ELEVEN to TWELVE leaves an E,L,V,E unchanged. From THIRTEEN to FOURTEEN leaves RTEEN unchanged. TWENTYNINE to THIRTY takes 7 edits. THIRTYNINE to FORTY takes 7 edits. SEVENTYNINE to EIGHTY takes 8 edits. EIGHTYNINE to NINETY takes 7 edits. NINETYNINE to ONEHUNDRED takes 7 edits.

CROSSREFS

Cf. A001477, A005589, A081355, A081356, A081230, A109809, A109811.

Sequence in context: A049788 A002558 A099634 this_sequence A090369 A132293 A135103

Adjacent sequences: A109379 A109380 A109381 this_sequence A109383 A109384 A109385

KEYWORD

easy,nonn,word

AUTHOR

Jonathan Vos Post (jvospost2(AT)yahoo.com), Aug 25 2005

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Jan 31 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research