CISSAlgorithm origin & lineage registry

AlgorithmsStringsEdit on GitHubEdit history

q-gram Distance

1992

The L1 distance between the occurrence-count vectors of the length-q substrings (q-grams) of two strings. It is computable in linear time and can be used to derive a lower bound on edit distance, which makes it useful for filtering in approximate search.

Origin

Esko Ukkonen (1992). Approximate string-matching with q-grams and maximal matches. Theoretical Computer Science 92(1).doi:10.1016/0304-3975(92)90143-4 — checked against Crossref, 2026-11-08

Lineage

Algorithms 3 · Relations 2

Parent algorithms

Where it came from
Levenshtein Distance1965VariantEstimated65%

Structural analysisThe q-gram distance is used to derive a lower bound on edit distance for filtering approximate-matching candidates.

Notable implementations

No implementations registered yet. Try a repo scan to find some. Repo scan

Find more: GitHub · Semantic Scholar · Google Scholar · arXiv

Claims & disputes

Loading…