Software maintenance by multi-patterns parameterized string matching with q-gram
Authors:
Open Access
- 11 May 2010
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGSOFT Software Engineering Notes
- Vol. 35 (3) , 1-5
Abstract
In the multi-patterns parameterized string matching problem, a set of patterns P0, P1, P2...Pr-1, r≥1, are said to match with a sub-string t of the text T, if there exists a one-one correspondence between the symbols of patterns and the symbols of t. This problem has an important application in software maintenance , where it is often required to find equivalency between two sections of codes. Two sections of codes are said to be equivalent if one can be transformed into the other by renaming only identifiers and variables. In this paper, we extend Forward Non-deterministic Directed Acyclic Word Graph (DAWG) matching (FNDM) algorithm to PQFNDM for parameterized string matching problem by using the q-gram. Experimentally it has been observed that the performance of PQFNDM improves with increasing value of q up to half the length of the pattern. We further modify PQFNDM to MPQFNDM for handling multiple patterns. We compare the performance of PQFNDM (for q=1) with parameterized shift-or (PSO) algorithm and found that PQFNDM is better than PSO. We also show the benefits of using multiple patterns.Keywords
This publication has 16 references indexed in Scilit:
- Improving practical exact string matchingInformation Processing Letters, 2010
- Parameterized shift-and string matching algorithm using super alphabet2008
- Efficient parameterized string matchingInformation Processing Letters, 2006
- Fast and flexible string matching by combining bit-parallelism and suffix automataACM Journal of Experimental Algorithmics, 2000
- Parameterized Pattern Matching: Algorithms and ApplicationsJournal of Computer and System Sciences, 1996
- Alphabet dependence in parameterized matchingInformation Processing Letters, 1994
- A new approach to text searchingCommunications of the ACM, 1992
- A very fast substring search algorithmCommunications of the ACM, 1990
- A fast string searching algorithmCommunications of the ACM, 1977
- Efficient string matchingCommunications of the ACM, 1975