English

String Sanitization Under Edit Distance: Improved and Generalized

Data Structures and Algorithms 2024-03-12 v2

Abstract

Let WW be a string of length nn over an alphabet Σ\Sigma, kk be a positive integer, and S\mathcal{S} be a set of length-kk substrings of WW. The ETFS problem asks us to construct a string XEDX_{\mathrm{ED}} such that: (i) no string of S\mathcal{S} occurs in XEDX_{\mathrm{ED}}; (ii) the order of all other length-kk substrings over Σ\Sigma (and thus the frequency) is the same in WW and in XEDX_{\mathrm{ED}}; and (iii) XEDX_{\mathrm{ED}} has minimal edit distance to WW. When WW represents an individual's data and S\mathcal{S} represents a set of confidential patterns, the ETFS problem asks for transforming WW to preserve its privacy and its utility [Bernardini et al., ECML PKDD 2019]. ETFS can be solved in O(n2k)\mathcal{O}(n^2k) time [Bernardini et al., CPM 2020]. The same paper shows that ETFS cannot be solved in O(n2δ)\mathcal{O}(n^{2-\delta}) time, for any δ>0\delta>0, unless the Strong Exponential Time Hypothesis (SETH) is false. Our main results can be summarized as follows: (i) an O(n2log2k)\mathcal{O}(n^2\log^2k)-time algorithm to solve ETFS; and (ii) an O(n2log2n)\mathcal{O}(n^2\log^2n)-time algorithm to solve AETFS, a generalization of ETFS in which the elements of S\mathcal{S} can have arbitrary lengths. Our algorithms are thus optimal up to polylogarithmic factors, unless SETH fails. Beyond string sanitization, our techniques may inspire solutions to other problems related to regular expressions or context-free grammars.

Keywords

Cite

@article{arxiv.2007.08179,
  title  = {String Sanitization Under Edit Distance: Improved and Generalized},
  author = {Takuya Mieno and Solon P. Pissis and Leen Stougie and Michelle Sweering},
  journal= {arXiv preprint arXiv:2007.08179},
  year   = {2024}
}

Comments

Published at CPM 2021. Abstract abridged to satisfy arxiv requirements

R2 v1 2026-06-23T17:09:41.501Z