Logo image
A framework for designing space-efficient dictionaries for parameterized and order-preserving matching
期刊文章   同儕審查

A framework for designing space-efficient dictionaries for parameterized and order-preserving matching

Arnab Ganguly, Wing-Kai Hon, Kunihiko Sadakane, Rahul Shah, Sharma V. ThankachanYilin Yang
Theoretical Computer Science
2020

摘要

AC automaton Sparsification Succinct data structures Trie Theoretical Computer Science Computer Science (all)
Let P be a collection of d patterns {P <sub>1</sub> ,P <sub>2</sub> ,…,P <sub>d</sub> } of total length n characters, which are chosen from an alphabet Σ of size σ. Given a text T (over Σ), the dictionary indexing problem is to create a data structure using which we can report all positions j (called occurrences) where at least one of the patterns P <sub>i</sub> ∈P is a match with the same-length substring of T that starts at j. We consider this problem under the following definitions of matching. • Parameterized Matching: The characters of Σ are partitioned into static characters and parameterized characters. Two equal length strings S and S <sup>′</sup> are a parameterized match iff the static characters match exactly, and there exists a one-to-one function which renames the parameterized characters in S to those in S <sup>′</sup> . • Order-Preserving Matching: The alphabet Σ is ordered. Two equal length strings S and S <sup>′</sup> are an order-preserving match iff for any two integers i,j∈[1,|S|], S[i]≺S[j]⇔S <sup>′</sup> [i]≺S <sup>′</sup> [j], where ≺ denotes the precedence order in Σ. Let ε>0 be an arbitrarily small constant. For parameterized matching, we first present a compact O(nlog⁡σ+dlog⁡n)-bit index that reports all occ occurrences in O(|T|(log⁡σ+log <sub>σ</sub> ⁡n)+occ) time, and then a succinct nlog⁡σ+o(nlog⁡σ)+O(dlog⁡n)-bit index that reports all occ occurrences in O(|T|(log⁡σ+log <sup>ε</sup> ⁡nlog <sub>σ</sub> ⁡n)+occ) time. For order-preserving matching, we present indexes of the same sizes, but with slightly increased query time.

相關連結

指標

1 檢視次數

詳細資料

Logo image