Pattern Masking for Dictionary Matching
ISAAC(2020)
摘要
In the Pattern Masking for Dictionary Matching (PMDM) problem, we are given a dictionary 𝒟 of d strings, each of length ℓ, a query string q of length ℓ, and a positive integer z, and we are asked to compute a smallest set K⊆{1,…,ℓ}, so that if q[i], for all i∈ K, is replaced by a wildcard, then q matches at least z strings from 𝒟. The PMDM problem lies at the heart of two important applications featured in large-scale real-world systems: record linkage of databases that contain sensitive information, and query term dropping. In both applications, solving PMDM allows for providing data utility guarantees as opposed to existing approaches. We first show, through a reduction from the well-known k-Clique problem, that a decision version of the PMDM problem is NP-complete, even for strings over a binary alphabet. We present a data structure for PMDM that answers queries over 𝒟 in time 𝒪(2^ℓ/2(2^ℓ/2+τ)ℓ) and requires space 𝒪(2^ℓd^2/τ^2+2^ℓ/2d), for any parameter τ∈[1,d]. We also approach the problem from a more practical perspective. We show an 𝒪((dℓ)^k/3+dℓ)-time and 𝒪(dℓ)-space algorithm for PMDM if k=|K|=𝒪(1). We generalize our exact algorithm to mask multiple query strings simultaneously. We complement our results by showing a two-way polynomial-time reduction between PMDM and the Minimum Union problem [Chlamtáč et al., SODA 2017]. This gives a polynomial-time 𝒪(d^1/4+ϵ)-approximation algorithm for PMDM, which is tight under plausible complexity conjectures.
更多查看译文
关键词
dictionary matching
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络