{"title":"近似近似模式匹配","authors":"J. Studeny, P. Uznański","doi":"10.4230/LIPIcs.CPM.2019.15","DOIUrl":null,"url":null,"abstract":"Given a text $T$ of length $n$ and a pattern $P$ of length $m$, the approximate pattern matching problem asks for computation of a particular \\emph{distance} function between $P$ and every $m$-substring of $T$. We consider a $(1\\pm\\varepsilon)$ multiplicative approximation variant of this problem, for $\\ell_p$ distance function. In this paper, we describe two $(1+\\varepsilon)$-approximate algorithms with a runtime of $\\widetilde{O}(\\frac{n}{\\varepsilon})$ for all (constant) non-negative values of $p$. For constant $p \\ge 1$ we show a deterministic $(1+\\varepsilon)$-approximation algorithm. Previously, such run time was known only for the case of $\\ell_1$ distance, by Gawrychowski and Uznanski [ICALP 2018] and only with a randomized algorithm. For constant $0 \\le p \\le 1$ we show a randomized algorithm for the $\\ell_p$, thereby providing a smooth tradeoff between algorithms of Kopelowitz and Porat [FOCS~2015, SOSA~2018] for Hamming distance (case of $p=0$) and of Gawrychowski and Uznanski for $\\ell_1$ distance.","PeriodicalId":236737,"journal":{"name":"Annual Symposium on Combinatorial Pattern Matching","volume":"75 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":"{\"title\":\"Approximating Approximate Pattern Matching\",\"authors\":\"J. Studeny, P. Uznański\",\"doi\":\"10.4230/LIPIcs.CPM.2019.15\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Given a text $T$ of length $n$ and a pattern $P$ of length $m$, the approximate pattern matching problem asks for computation of a particular \\\\emph{distance} function between $P$ and every $m$-substring of $T$. We consider a $(1\\\\pm\\\\varepsilon)$ multiplicative approximation variant of this problem, for $\\\\ell_p$ distance function. In this paper, we describe two $(1+\\\\varepsilon)$-approximate algorithms with a runtime of $\\\\widetilde{O}(\\\\frac{n}{\\\\varepsilon})$ for all (constant) non-negative values of $p$. For constant $p \\\\ge 1$ we show a deterministic $(1+\\\\varepsilon)$-approximation algorithm. Previously, such run time was known only for the case of $\\\\ell_1$ distance, by Gawrychowski and Uznanski [ICALP 2018] and only with a randomized algorithm. For constant $0 \\\\le p \\\\le 1$ we show a randomized algorithm for the $\\\\ell_p$, thereby providing a smooth tradeoff between algorithms of Kopelowitz and Porat [FOCS~2015, SOSA~2018] for Hamming distance (case of $p=0$) and of Gawrychowski and Uznanski for $\\\\ell_1$ distance.\",\"PeriodicalId\":236737,\"journal\":{\"name\":\"Annual Symposium on Combinatorial Pattern Matching\",\"volume\":\"75 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2018-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"4\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Annual Symposium on Combinatorial Pattern Matching\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.4230/LIPIcs.CPM.2019.15\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Annual Symposium on Combinatorial Pattern Matching","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4230/LIPIcs.CPM.2019.15","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Given a text $T$ of length $n$ and a pattern $P$ of length $m$, the approximate pattern matching problem asks for computation of a particular \emph{distance} function between $P$ and every $m$-substring of $T$. We consider a $(1\pm\varepsilon)$ multiplicative approximation variant of this problem, for $\ell_p$ distance function. In this paper, we describe two $(1+\varepsilon)$-approximate algorithms with a runtime of $\widetilde{O}(\frac{n}{\varepsilon})$ for all (constant) non-negative values of $p$. For constant $p \ge 1$ we show a deterministic $(1+\varepsilon)$-approximation algorithm. Previously, such run time was known only for the case of $\ell_1$ distance, by Gawrychowski and Uznanski [ICALP 2018] and only with a randomized algorithm. For constant $0 \le p \le 1$ we show a randomized algorithm for the $\ell_p$, thereby providing a smooth tradeoff between algorithms of Kopelowitz and Porat [FOCS~2015, SOSA~2018] for Hamming distance (case of $p=0$) and of Gawrychowski and Uznanski for $\ell_1$ distance.