Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

The Parameterized Position Heap of a Trie

Published 14 Mar 2019 in cs.DS | (1903.06289v1)

Abstract: Let Σ\Sigma and Π\Pi be disjoint alphabets of respective size σ\sigma and π\pi. Two strings over Σ∪Π\Sigma \cup \Pi of equal length are said to parameterized match (p-match) if there is a bijection f:Σ∪Π→Σ∪Πf:\Sigma \cup \Pi \rightarrow \Sigma \cup \Pi such that (1) ff is identity on Σ\Sigma and (2) ff 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\mathcal{T} and a string pattern PP such that every path that p-matches PP has to be reported. Let NN be the size of the given trie T\mathcal{T}. In this paper, we propose the parameterized position heap for T\mathcal{T} that occupies O(N)O(N) space and supports p-matching queries in O(mlog⁡(σ+π)+mπ+pocc))O(m \log (\sigma + \pi) + m \pi + \mathit{pocc})) time, where mm is the length of a query pattern PP and pocc\mathit{pocc} is the number of paths in T\mathcal{T} to report. We also present an algorithm which constructs the parameterized position heap for a given trie T\mathcal{T} in O(N(σ+π))O(N (\sigma + \pi)) time and working space.

Citations (6)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.