Maintaining software through bit-parallelism and hashing the parameterized q-grams

Rajesh Prasad, Suneeta Agarwal, Sanjay Misra, Anuj Sharma, Alok Kumar Singh · Covenant University Repository (Covenant University) · 2012

In the software maintenance, it is often required to find duplicity present in the codes. Two code fragments are equivalent, if one can be transformed into the other via consistent renaming of identifiers, literals and variables. This equivalency can be detected by parameterized string matching. In this matching, a given pattern is said to match with a substring of the text , if there exists a one-to-one correspondence between symbols of and symbols of . In this paper, we propose an efficient algorithm for this problem by using both the overlapping and non-overlapping -gram.We show the effect of running time of the algorithm on increasing the duplicity present in the code.

Read the paper · More papers on PaperTik