paper

The Parameterized Position Heap of a Trie

arXiv:1903.06289

Abstract

Let and be disjoint alphabets of respective size and . Two strings over of equal length are said to parameterized match (p-match) if there is a bijection such that (1) is identity on and (2) maps the characters of one string to those of the other string so that the two strings become identical. We consider the p-matching problem on a (reversed) trie and a string pattern such that every path that p-matches has to be reported. Let be the size of the given trie . In this paper, we propose the parameterized position heap for that occupies space and supports p-matching queries in time, where is the length of a query pattern and is the number of paths in to report. We also present an algorithm which constructs the parameterized position heap for a given trie in time and working space.