@article{Cisłak_Grabowski_2017, title={A Practical Index for Approximate Dictionary Matching with Few Mismatches}, volume={36}, url={https://www.cai.sk/ojs/index.php/cai/article/view/2017_5_1088}, abstractNote={Approximate dictionary matching (checking if a pattern occurs in a collection of strings) is a classic problem with applications in e.g. spellchecking, online catalogs, and web searchers. We present a simple solution called split index, which is based on the Dirichlet principle, for matching a keyword with few mismatches, and experimentally show that it offers competitive space-time tradeoffs. Our implementation in the C++ language is focused mostly on data compaction, which is beneficial for the search speed. We compare our solution with other algorithms and we show that it is faster when the Hamming distance is used. Query times in the order of 1 microsecond were reported for one mismatch for a few-megabyte natural language dictionary on a medium-end PC. We also demonstrate that a basic compression technique consisting in q-gram substitution can significantly reduce the index size (up to 50 % of the input text size for the DNA sequences).}, number={5}, journal={COMPUTING AND INFORMATICS}, author={Cisłak, Aleksander and Grabowski, Szymon}, year={2017}, month={Dec.}, pages={1088–1106} }