doi: 10.4304/jsw.9.8.2154-2159
Algorithm for Fast Finding High-Frequency Strings from Large-Scale Corpus<sup>1</sup>
- School of Computer Science and Technology Xinjiang Normal University, Urumqi China, 830054
Abstract
In high-frequency string extraction, there exists enormous time and memory waste in taking statistics of tremendous low-frequency strings, which causes low efficiency. Based on the incremental n-gram model, this paper puts forward Hierarchical Pruning Algorithm (HPA) to filter out low-frequency garbage strings and to extract candidate repeats for reducing I/O reading-writing times and enhancing efficiency of memory usage. On the basis of candidate repeats, external sort method is applied to merge all of them in order to obtain the final repeat set. For improving the efficiency of candidate repeats merging, this paper proposes to employ improved Radix Sort method to process strings in <span id="cke_bm_90S" style="display: none;"> </span><em>O</em><span id="cke_bm_90E" style="display: none;"> </span>(<em>dn</em>). With 32 gigabyte plain text corpus, experiments show that the relationship between I/O reading-writing times of HPA and the corpus size is nearly linear, and the algorithm can efficiently extract repeats from corpus whose size is much larger than that of memory.
Keywords
- repeats
- hash table
- low-frequency strin
How to Cite
Haijun Zhang, "Algorithm for Fast Finding High-Frequency Strings from Large-Scale Corpus<sup>1</sup>," Journal of Software, vol. 9, no. 8, pp. 2154-2159, 2014. https://doi.org/ 10.4304/jsw.9.8.2154-2159
Copyright & License
Copyright © 2014 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).
