Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: Approximate matching of company namesby toma (Vicar) |
on Oct 30, 2003 at 04:26 UTC ( [id://303198]=note: print w/replies, xml ) | Need Help?? |
Here is the requested example that shows how n-tuples
work: In this example, take n=3. The company names to compare are "tomacorp" and "tomarcorp". The 3-tuples of tomacorp are: The 3-tuples of tomarcorp are: The tuples in common are: Four of the six 3-tuples in tomacorp appear in tomarcorp. This is a 75% match.
It should work perfectly the first time! - toma
In Section
Seekers of Perl Wisdom
|
|