The Parameterized Suffix Tray
The Parameterized Suffix Tray
复制标题
DOI:
10.1007/978-3-030-75242-2_18
复制
发表时间:
2020-12
期刊:
影响因子:
--
通讯作者:
Noriki Fujisato;Yuto Nakashima;Shunsuke Inenaga;H. Bannai;M. Takeda
中科院分区:
文献类型:
--
作者:
Noriki Fujisato;Yuto Nakashima;Shunsuke Inenaga;H. Bannai;M. Takeda
Let $$\varSigma $$ Σ and $$\varPi $$ Π be disjoint alphabets, respectively called the static alphabet and the parameterized alphabet. Two stringsxandyover $$\varSigma \cup \varPi $$ Σ ∪ Π of equal length are said toparameterized match(p-match) if there exists a renaming bijectionfon $$\varSigma $$ Σ and $$\varPi $$ Π which is identity on $$\varSigma $$ Σ and maps the characters ofxto those ofyso 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 theparameterized suffix trayof an input textT, denoted by $$\mathsf {PSTray}(T)$$ PSTray ( T ) . We show that $$\mathsf {PSTray}(T)$$ PSTray ( T ) occupiesO(n) space and supports pattern matching queries in $$O(m + \log (\sigma +\pi ) + occ )$$ O ( m + log ( σ + π ) + o c c ) time, wherenis the length oft,mis the length of a query patternP, $$\pi $$ π is the number of distinct symbols of $$|\varPi |$$ | Π | inT, $$\sigma $$ σ is the number of distinct symbols of $$|\varSigma |$$ | Σ | inTand $$ occ $$ occ is the number of p-matching occurrences ofPinT. We also present how to build $$\mathsf {PSTray}(T)$$ PSTray ( T ) inO(n) time from the parameterized suffix tree ofT.