Finding Longest Common Substrings in Documents
Open Access
- 8 August 2015
- journal article
- Published by MECS Publisher in International Journal of Image, Graphics and Signal Processing
- Vol. 7 (9) , 27-33
Abstract
This paper introduces an algorithm to address the problem of finding the longest common substring between two documents. This problem is known as the longest common substring (LCS) problem. The proposed algorithm is based on the convolution between the two sequences (named major sequence (X) which is represented as array and the minor one (Y) which is represented as circular linked list. An array of linked lists is established and a new node is created for each match between two substrings. If two or more matches in different locations in string Y share the same location in string X, the corresponding nodes will construct a unique linked-list. Accordingly, by the end of processing, we obtain a group of linked-lists containing nodes arranged in certain manner representing all possible matches between sequences X and Y. The algorithm has been implemented and tested in C# language under Windows platform. The obtained results presented a very good speedups and indicated that impressive improvements had been achieved.Keywords
This publication has 5 references indexed in Scilit:
- Minutiae Distances and Orientation Fields Based Thumbprint Identification of Identical TwinsInternational Journal of Image, Graphics and Signal Processing, 2013
- Wavelet Based Lossless DNA Sequence Compression for Faster Detection of Eukaryotic Protein Coding RegionsInternational Journal of Image, Graphics and Signal Processing, 2012
- Algorithms on Strings, Trees, and Sequences: Computer Science and Computational BiologyJournal of the American Statistical Association, 1999
- An empirical approach for detecting program similarity and plagiarism within a university programming environmentComputers & Education, 1987
- A tool that detects plagiarism in Pascal programsACM SIGCSE Bulletin, 1981