English

Lightweight Fingerprints for Fast Approximate Keyword Matching Using Bitwise Operations

Data Structures and Algorithms 2017-11-27 v1

Abstract

We aim to speed up approximate keyword matching by storing a lightweight, fixed-size block of data for each string, called a fingerprint. These work in a similar way to hash values; however, they can be also used for matching with errors. They store information regarding symbol occurrences using individual bits, and they can be compared against each other with a constant number of bitwise operations. In this way, certain strings can be deduced to be at least within the distance kk from each other (using Hamming or Levenshtein distance) without performing an explicit verification. We show experimentally that for a preprocessed collection of strings, fingerprints can provide substantial speedups for k=1k = 1, namely over 2.52.5 times for the Hamming distance and over 1010 times for the Levenshtein distance. Tests were conducted on synthetic and real-world English and URL data.

Keywords

Cite

@article{arxiv.1711.08475,
  title  = {Lightweight Fingerprints for Fast Approximate Keyword Matching Using Bitwise Operations},
  author = {Aleksander Cisłak and Szymon Grabowski},
  journal= {arXiv preprint arXiv:1711.08475},
  year   = {2017}
}

Comments

16 pages, 1 figure, 4 tables

R2 v1 2026-06-22T22:54:30.304Z