Charalampopoulos, Panagiotis ;
Chen, Huiping ;
Christen, Peter ;
Loukides, Grigorios ;
Pisanti, Nadia ;
Pissis, Solon P. ;
Radoszewski, Jakub
Pattern Masking for Dictionary Matching
Abstract
Data masking is a common technique for sanitizing sensitive data maintained in database systems, and it is also becoming increasingly important in various application areas, such as in record linkage of personal data. This work formalizes the Pattern Masking for Dictionary Matching (PMDM) problem. In PMDM, 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] is replaced by a wildcard for all i β K, then q matches at least z strings from π. Solving PMDM allows providing data utility guarantees as opposed to existing approaches.
We first show, through a reduction from the wellknown kClique problem, that a decision version of the PMDM problem is NPcomplete, even for strings over a binary alphabet. We thus approach the problem from a more practical perspective. We show a combinatorial πͺ((dπ)^{K/3}+dπ)time and πͺ(dπ)space algorithm for PMDM for K = πͺ(1). In fact, we show that we cannot hope for a faster combinatorial algorithm, unless the combinatorial kClique hypothesis fails [Abboud et al., SIAM J. Comput. 2018; Lincoln et al., SODA 2018]. We also generalize this algorithm for the problem of masking multiple query strings simultaneously so that every string has at least z matches in π.
Note that PMDM can be viewed as a generalization of the decision version of the dictionary matching with mismatches problem: by querying a PMDM data structure with string q and z = 1, one obtains the minimal number of mismatches of q with any string from π. The query time or space of all known data structures for the more restricted problem of dictionary matching with at most k mismatches incurs some exponential factor with respect to k. A simple exact algorithm for PMDM runs in time πͺ(2^π d). We present a data structure for PMDM that answers queries over π in time πͺ(2^{π/2}(2^{π/2}+Ο)π) and requires space πͺ(2^π dΒ²/ΟΒ²+2^{π/2}d), for any parameter Ο β [1,d].
We complement our results by showing a twoway polynomialtime reduction between PMDM and the Minimum Union problem [ChlamtΓ‘Δ et al., SODA 2017]. This gives a polynomialtime πͺ(d^{1/4+Ξ΅})approximation algorithm for PMDM, which is tight under a plausible complexity conjecture.
BibTeX  Entry
@InProceedings{charalampopoulos_et_al:LIPIcs.ISAAC.2021.65,
author = {Charalampopoulos, Panagiotis and Chen, Huiping and Christen, Peter and Loukides, Grigorios and Pisanti, Nadia and Pissis, Solon P. and Radoszewski, Jakub},
title = {{Pattern Masking for Dictionary Matching}},
booktitle = {32nd International Symposium on Algorithms and Computation (ISAAC 2021)},
pages = {65:165:19},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {9783959772143},
ISSN = {18688969},
year = {2021},
volume = {212},
editor = {Ahn, HeeKap and Sadakane, Kunihiko},
publisher = {Schloss Dagstuhl  LeibnizZentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/opus/volltexte/2021/15498},
URN = {urn:nbn:de:0030drops154982},
doi = {10.4230/LIPIcs.ISAAC.2021.65},
annote = {Keywords: string algorithms, dictionary matching, wildcards, record linkage, query term dropping}
}
30.11.2021
Keywords: 

string algorithms, dictionary matching, wildcards, record linkage, query term dropping 
Seminar: 

32nd International Symposium on Algorithms and Computation (ISAAC 2021)

Issue date: 

2021 
Date of publication: 

30.11.2021 