Abstract
This paper presents a study of an n-gram-based document comparison method. The method is intended to build a large-scale plagiarism detection system. The work focuses not only on an efficiency of the text similarity extraction but also on the execution performance of the implemented algorithms. We took notice of detection performance, storage requirements and execution time of the proposed approach. The obtained results show the trade-offs between detection quality and computational requirements. The GPGPU and multi-CPU platforms were considered to implement the algorithms and to achieve good execution speed. The method consists of two main algorithms: a document's feature extraction and fast text comparison. The winnowing algorithm is used to generate a compressed representation of the analyzed documents. The authors designed and implemented a dedicated test framework for the algorithm. That allowed for the tuning, evaluation, and optimization of the parameters. Well-known metrics (e.g. precision, recall) were used to evaluate detection performance. The authors conducted the tests to determine the performance of the winnowing algorithm for obfuscated and unobfuscated texts for a different window and n-gram size. Also, a simplified version of the text comparison algorithm was proposed and evaluated to reduce the computational complexity of the text comparison process. The paper also presents GPGPU and multi-CPU implementations of the algorithms for different data structures. The implementation speed was tested for different algorithms' parameters and the size of data. The scalability of the algorithm on multi-CPU platforms was verified. The authors of the paper provide the repository of software tools and programs used to perform the conducted experiments.
Keywords
Cite this article
@article{cai-2519,
author = {Maciej Wielgosz and Paweł Szczepka and Paweł Russek and Ernest Jamro and Kazimierz Wiatr and Marcin Pietroń and Dominik Żurek},
title = {Evaluation and Implementation of n-Gram-Based Algorithm for Fast Text Comparison},
journal = {Computing and Informatics},
volume = {36},
number = {4},
pages = {887--907},
year = {2017},
issn = {1335-9150},
doi = {10.4149/cai_2017_4_887}
}
TY - JOUR AU - Maciej Wielgosz AU - Paweł Szczepka AU - Paweł Russek AU - Ernest Jamro AU - Kazimierz Wiatr AU - Marcin Pietroń AU - Dominik Żurek TI - Evaluation and Implementation of n-Gram-Based Algorithm for Fast Text Comparison JO - Computing and Informatics VL - 36 IS - 4 SP - 887 EP - 907 PY - 2017 SN - 1335-9150 DO - 10.4149/cai_2017_4_887 UR - https://doi.org/10.4149/cai_2017_4_887 KW - Text similarity analysis KW - n-gram-based model KW - GPGPU implementation KW - multi-CPU implementation ER -
Wielgosz, M., Szczepka, P., Russek, P., Jamro, E., Wiatr, K., Pietroń, M., & Żurek, D. (2017). Evaluation and Implementation of n-Gram-Based Algorithm for Fast Text Comparison. Computing and Informatics, 36(4), 887–907. https://doi.org/10.4149/cai_2017_4_887