From: Phillip Gawlowski Date: 2008-04-30T10:56:30+09:00 Subject: Re: Levenshtein_distance and recreate the string -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David A. Black wrote: | | But isn't it the same for RUBY -> RUBE and RUBA -> RUBE ? In which | case, if you had RUBE and the L. distance, you could not recreate | RUBY; you'd have a whole set of strings that were exactly that | distance from RUBE. Good point. I don't know if the L. distance is unique for each possibility or not. Considering how the algorithm looks, the solutions probably aren't unique. But then again, you can use weighted probabilities to achieve the correct result, I guess. N.B.: I'm a bit out of my depth here, having no comp.sci. background (which I regret..). - -- Phillip Gawlowski Twitter: twitter.com/cynicalryan Blog: http://justarubyist.blogspot.com ~ - You know you've been hacking too long when... ...you wake up and desperately try to start a compiler so you can use the 15 minute waiting period to sleep some more. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgX0csACgkQbtAgaoJTgL9Z2wCfcXY3WwdwtlgRjvFb0luHMTry X6EAniZeT0iOJjL/kiWw5vnrFSpKNzmj =Er07 -----END PGP SIGNATURE-----