An invertible transform for efficient string matching in labeled digraphs
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.
Cite
@article{arxiv.1905.03424,
title = {An invertible transform for efficient string matching in labeled digraphs},
author = {Abhinav Nellore and Austin Nguyen and Reid F. Thompson},
journal= {arXiv preprint arXiv:1905.03424},
year = {2021}
}
Comments
13 pages, 3 figures; v7 is the content of the camera-ready copy for CPM 2021 incorporating reviewer feedback