Unix and Linux Discussions Tagged with faster |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
2,248 |
UNIX for Advanced & Expert Users |
|
|
|
9 |
2,105 |
Shell Programming and Scripting |
|
|
|
2 |
3,673 |
AIX |
|
|
|
2 |
2,793 |
Shell Programming and Scripting |
|
|
|
5 |
10,149 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
3,085 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,231 |
Solaris BigAdmin RSS |
|
|
|
13 |
8,137 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,092 |
UNIX and Linux RSS News |
|
|
|
5 |
9,173 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
3,908 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,944 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
10,507 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,746 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,671 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,226 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
3 |
2,894 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
3 |
2,418 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,914 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
4,613 |
UNIX for Dummies Questions & Answers |
Levenshtein(3pm) User Contributed Perl Documentation Levenshtein(3pm)
NAME
Text::Levenshtein - An implementation of the Levenshtein edit distance
SYNOPSIS
use Text::Levenshtein qw(distance);
print distance("foo","four");
# prints "2"
print fastdistance("foo","four");
# prints "2" faster
my @words=("four","foo","bar");
my @distances=distance("foo",@words);
print "@distances";
# prints "2 0 3"
DESCRIPTION
This module implements the Levenshtein edit distance. The Levenshtein edit distance is a measure of the degree of proximity between two
strings. This distance is the number of substitutions, deletions or insertions ("edits") needed to transform one string into the other one
(and vice versa). When two strings have distance 0, they are the same. A good point to start is: <http://www.merriampark.com/ld.htm>
"fastdistance" can be called with two scalars and is faster in most cases.
See also Text::LevenshteinXS on CPAN if you do not require a perl-only implementation. It is extremely faster in nearly all cases.
See also Text::WagnerFischer on CPAN for a configurable edit distance, i.e. for configurable costs (weights) for the edits.
AUTHOR
Copyright 2002 Dree Mistrut <dree@friul.it>
This package is free software and is provided "as is" without express or implied warranty. You can redistribute it and/or modify it under
the same terms as Perl itself.
perl v5.10.0 2009-01-19 Levenshtein(3pm)