Skip to main content
QUICK REVIEW

[Paper Review] Faster Algorithm of String Comparison

Qi Yang, Sung Sam Yuan|ArXiv.org|Dec 21, 2001
Algorithms and Data CompressionComputer Science18 references6 citations
TL;DR

This paper proposes a novel substring-based algorithm package—MCWPM—for field similarity computation, significantly improving upon the token-based method of [LL+99]. By leveraging substring matching with optimized bounds (UBWS, LBWS) and the ERMA heuristic, the approach achieves O(knm) time complexity (k < 0.75) in the worst case, O(βn) with β < 6 in the average case, and O(1) in the best case, while demonstrating higher accuracy in similarity matching through comparative examples and experiments.

ABSTRACT

In many applications, it is necessary to determine the string similarity. Edit distance[WF74] approach is a classic method to determine Field Similarity. A well known dynamic programming algorithm [GUS97] is used to calculate edit distance with the time complexity O(nm). (for worst case, average case and even best case) Instead of continuing with improving the edit distance approach, [LL+99] adopted a brand new approach-token-based approach. Its new concept of token-base-retain the original semantic information, good time complex-O(nm) (for worst, average and best case) and good experimental performance make it a milestone paper in this area. Further study indicates that there is still room for improvement of its Field Similarity algorithm. Our paper is to introduce a package of substring-based new algorithms to determine Field Similarity. Combined together, our new algorithms not only achieve higher accuracy but also gain the time complexity O(knm) (k&lt;0.75) for worst case, O(*n) where &lt;6 for average case and O(1) for best case. Throughout the paper, we use the approach of comparative examples to show higher accuracy of our algorithms compared to the one proposed in [LL+99]. Theoretical analysis, concrete examples and experimental result show that our algorithms can significantly improve the accuracy and time complexity of the calculation of Field Similarity. [US97] D. Guseld. Algorithms on Strings, Trees and Sequences, in Computer Science and Computational Biology. [LL+99] Mong Li Lee, Cleansing data for mining and warehousing, In Proceedings of the 10th International Conference on Database and Expert Systems Applications (DEXA99), pages 751-760,August 1999. [WF74] R. Wagner and M. Fisher, The String to String Correction Problem, JACM 21 pages 168-173, 1974.

Motivation & Objective

  • To address the limitations in accuracy and efficiency of the token-based field similarity algorithm proposed in [LL+99].
  • To develop a new algorithmic framework that preserves semantic information while improving computational performance.
  • To achieve better time complexity—specifically O(knm) for worst case (k < 0.75), O(βn) for average case (β < 6), and O(1) for best case—without sacrificing accuracy.
  • To validate the superiority of the new method through theoretical analysis, concrete examples, and experimental evaluation on real and synthetic datasets.

Proposed method

  • Introduces a substring-based approach to field similarity, replacing the token-based method of [LL+99] with a focus on overlapping substring matches.
  • Employs upper and lower bound windowing strategies (UBWS and LBWS) to restrict comparison scope and reduce unnecessary computations.
  • Applies the ERMA (Efficient Rejection of Mismatched Alternatives) heuristic to rapidly eliminate non-matching substrings early in the process.
  • Uses SCAMSUC (Sum of the Contribution of All Matching Strings Up to the Current round) and MMSLFC (Maximum Matching String Length From the Current round) to dynamically track similarity contributions and guide decision-making.
  • Implements a multi-round decision framework where similarity is evaluated based on thresholds (ST), with conditions for duplication or unduplication based on MMSL, LBWS, and SCAMSUC comparisons.
  • Integrates a threshold-based conclusion engine that uses MMSL * < LBWS or SCAMSUC * ≥ ST to classify records as duplicate or unduplicate.

Experimental results

Research questions

  • RQ1Can a substring-based approach outperform the token-based method in terms of both accuracy and time complexity for field similarity computation?
  • RQ2What is the theoretical time complexity of the proposed substring-based algorithms, and how does it compare to the O(nm) complexity of the [LL+99] method?
  • RQ3How do the introduced bounds (UBWS, LBWS) and heuristics (ERMA) contribute to reducing computation time without compromising accuracy?
  • RQ4To what extent does the MCWPM algorithm improve accuracy in practical comparisons, as demonstrated by concrete examples and experimental results?
  • RQ5Can the algorithm achieve O(1) time complexity in the best-case scenario, and under what conditions does this occur?

Key findings

  • The proposed MCWPM algorithm achieves a worst-case time complexity of O(knm) with k < 0.75, representing a significant improvement over the O(nm) complexity of the [LL+99] method.
  • In the average case, the algorithm runs in O(βn) time with β < 6, indicating a substantial performance gain over the baseline.
  • The best-case time complexity is O(1), which occurs when the initial substring match is sufficient to determine similarity, as in the case of identical strings.
  • Experimental results on the campus survey, census, and synthetic datasets confirm that MCWPM outperforms the [LL+99] method in both accuracy and efficiency.
  • The use of SCAMSUC and MMSLFC enables dynamic, threshold-driven classification, allowing the algorithm to correctly identify duplicates with high precision.
  • The integration of UBWS and LBWS constraints, along with ERMA, reduces the number of comparisons by up to 75% in practice, contributing to the improved time complexity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.