Efficient algorithm for detecting parameterized multiple clones in a large software system

0Citations
Citations of this article
6Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Two code fragments are said to be similar if they are similar in their program text or in their functionalities. The first kind of similarity can be detected with the help of parameterized string matching. In this type of matching, a given pattern P is said to match with a sub-string t of the text T, if there exists a bijection between the symbols of P and the symbols of t. The parameterized string matching problem has been efficiently solved by Fredriksson and Mozgovoy by using the shift-or (PSO) algorithm. The drawback of this algorithm is: it is unable to handle patterns of length greater than the word length (w) of a computer. In this paper, we solve this word length problem in a bit-parallel parameterized matching by extending the BLIM algorithm of exact string matching. Extended algorithm is also suitable for searching multiple patterns simultaneously. Experimentally, it has been observed that our algorithm is comparable with PSO for pattern length ≤ w and has ability to handle longer patterns efficiently. © 2011 Springer-Verlag.

Cite

CITATION STYLE

APA

Prasad, R., Agarwal, S., Sharma, A. K., Singh, A., & Misra, S. (2011). Efficient algorithm for detecting parameterized multiple clones in a large software system. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 6786 LNCS, pp. 398–409). https://doi.org/10.1007/978-3-642-21934-4_32

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free