paper

An invertible transform for efficient string matching in labeled digraphs

arXiv:1905.03424 · doi:10.4230/LIPIcs.CPM.2021.20

Abstract

Let be a digraph where each vertex is unlabeled, each edge is labeled by a character in some alphabet , and any two edges with both the same head and the same tail have different labels. The powerset construction gives a transform of into a weakly connected digraph that enables solving the decision problem of whether there is a walk in matching an arbitrarily long query string in time linear in and independent of and . We show is uniquely determined by when for every , there is some distinct string on such that is the origin of a closed walk in matching , and no other walk in matches unless it starts and ends at . We then exploit this invertibility condition to strategically alter any so its transform enables retrieval of all terminal vertices of walks in the unaltered matching in time. We conclude by proposing two defining properties of a class of transforms that includes the Burrows-Wheeler transform and the transform presented here.

13 pages, 3 figures; v7 is the content of the camera-ready copy for CPM 2021 incorporating reviewer feedback