The Parameterized Position Heap of a Trie

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 f: → such that (1) f is identity on and (2) f 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 T and a string pattern P such that every path that p-matches P has to be reported. Let N be the size of the given trie T. In this paper, we propose the parameterized position heap for T that occupies O(N) space and supports p-matching queries in O(m (σ + π) + m π + pocc)) time, where m is the length of a query pattern P and pocc is the number of paths in T to report. We also present an algorithm which constructs the parameterized position heap for a given trie T in O(N (σ + π)) time and working space.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…