Compact representations of character-sets

Sudarshan S. Chawathe · 2018

Programming libraries for text processing, such as those for string- and pattern-matching, require a method for representing sets of characters, such as the set of lower-case Latin letters or the set of numerals. A compact and efficient representation of character sets is especially important with the adoption of Unicode, and its very large domain (over a million code points). This paper studies design criteria for such representations, reviews existing implementations, describes new representations, and provides an experimental comparison of representations on real and synthetic data. The new representations combine the strengths of bitmaps and inversion lists while avoiding the worst-case behavior of both.

Read the paper · More papers on PaperTik