The Parameterized Suffix Tray

Abstract

Let and be disjoint alphabets, respectively called the static alphabet and the parameterized alphabet. Two strings x and y over of equal length are said to parameterized match (p-match) if there exists a renaming bijection f on and which is identity on and maps the characters of x to those of y so that the two strings become identical. The indexing version of the problem of finding p-matching occurrences of a given pattern in the text is a well-studied topic in string matching. In this paper, we present a state-of-the-art indexing structure for p-matching called the parameterized suffix tray of an input text T, denoted by PSTray(T). We show that PSTray(T) occupies O(n) space and supports pattern matching queries in O(m + (σ+π) + occ) time, where n is the length of T, m is the length of a query pattern P, π is the number of distinct symbols of || in T, σ is the number of distinct symbols of || in T and occ is the number of p-matching occurrences of P in T. We also present how to build PSTray(T) in O(n) time from the parameterized suffix tree of T.

0

Discussion (0)

Sign in to join the discussion.

Loading comments…