The Parameterized Position Heap of a Trie

03/14/2019
by   Noriki Fujisato, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/03/2018

Right-to-left online construction of parameterized position heaps

Two strings of equal length are said to parameterized match if there is ...
research
12/18/2020

The Parameterized Suffix Tray

Let Σ and Π be disjoint alphabets, respectively called the static alphab...
research
09/05/2019

A Simple Reduction for Full-Permuted Pattern Matching Problems on Multi-Track Strings

In this paper we study a variant of string pattern matching which deals ...
research
11/22/2018

The Statistical Dictionary-based String Matching Problem

In the Dictionary-based String Matching (DSM) problem, a retrieval syste...
research
08/21/2022

Teaching the Burrows-Wheeler Transform via the Positional Burrows-Wheeler Transform

The Burrows-Wheeler Transform (BWT) is often taught in undergraduate cou...
research
04/18/2022

Practical KMP/BM Style Pattern-Matching on Indeterminate Strings

In this paper we describe two simple, fast, space-efficient algorithms f...
research
04/09/2020

Pattern Discovery in Colored Strings

We consider the problem of identifying patterns of interest in colored s...

Please sign up or login with your details

Forgot password? Click here to reset