{"title":"基于样本的无后续距离近似法","authors":"Omer Cohen Sidon, Dana Ron","doi":"10.1007/s00453-024-01233-4","DOIUrl":null,"url":null,"abstract":"<div><p>In this work, we study the problem of approximating the distance to subsequence-freeness in the sample-based distribution-free model. For a given subsequence (word) <span>\\(w = w_1 \\ldots w_k\\)</span>, a sequence (text) <span>\\(T = t_1 \\ldots t_n\\)</span> is said to contain <i>w</i> if there exist indices <span>\\(1 \\le i_1< \\cdots < i_k \\le n\\)</span> such that <span>\\(t_{i_{j}} = w_j\\)</span> for every <span>\\(1 \\le j \\le k\\)</span>. Otherwise, <i>T</i> is <i>w</i>-free. Ron and Rosin (ACM Trans Comput Theory 14(4):1–31, 2022) showed that the number of samples both necessary and sufficient for one-sided error testing of subsequence-freeness in the sample-based distribution-free model is <span>\\(\\Theta (k/\\epsilon )\\)</span>. Denoting by <span>\\(\\Delta (T,w,p)\\)</span> the distance of <i>T</i> to <i>w</i>-freeness under a distribution <span>\\(p:[n]\\rightarrow [0,1]\\)</span>, we are interested in obtaining an estimate <span>\\(\\widehat{\\Delta }\\)</span>, such that <span>\\(|\\widehat{\\Delta }- \\Delta (T,w,p)| \\le \\delta \\)</span> with probability at least 2/3, for a given error parameter <span>\\(\\delta \\)</span>. Our main result is a sample-based distribution-free algorithm whose sample complexity is <span>\\(\\tilde{O}(k^2/\\delta ^2)\\)</span>. We first present an algorithm that works when the underlying distribution <i>p</i> is uniform, and then show how it can be modified to work for any (unknown) distribution <i>p</i>. We also show that a quadratic dependence on <span>\\(1/\\delta \\)</span> is necessary.</p></div>","PeriodicalId":50824,"journal":{"name":"Algorithmica","volume":"86 8","pages":"2519 - 2556"},"PeriodicalIF":0.9000,"publicationDate":"2024-05-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://link.springer.com/content/pdf/10.1007/s00453-024-01233-4.pdf","citationCount":"0","resultStr":"{\"title\":\"Sample-Based Distance-Approximation for Subsequence-Freeness\",\"authors\":\"Omer Cohen Sidon, Dana Ron\",\"doi\":\"10.1007/s00453-024-01233-4\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>In this work, we study the problem of approximating the distance to subsequence-freeness in the sample-based distribution-free model. For a given subsequence (word) <span>\\\\(w = w_1 \\\\ldots w_k\\\\)</span>, a sequence (text) <span>\\\\(T = t_1 \\\\ldots t_n\\\\)</span> is said to contain <i>w</i> if there exist indices <span>\\\\(1 \\\\le i_1< \\\\cdots < i_k \\\\le n\\\\)</span> such that <span>\\\\(t_{i_{j}} = w_j\\\\)</span> for every <span>\\\\(1 \\\\le j \\\\le k\\\\)</span>. Otherwise, <i>T</i> is <i>w</i>-free. Ron and Rosin (ACM Trans Comput Theory 14(4):1–31, 2022) showed that the number of samples both necessary and sufficient for one-sided error testing of subsequence-freeness in the sample-based distribution-free model is <span>\\\\(\\\\Theta (k/\\\\epsilon )\\\\)</span>. Denoting by <span>\\\\(\\\\Delta (T,w,p)\\\\)</span> the distance of <i>T</i> to <i>w</i>-freeness under a distribution <span>\\\\(p:[n]\\\\rightarrow [0,1]\\\\)</span>, we are interested in obtaining an estimate <span>\\\\(\\\\widehat{\\\\Delta }\\\\)</span>, such that <span>\\\\(|\\\\widehat{\\\\Delta }- \\\\Delta (T,w,p)| \\\\le \\\\delta \\\\)</span> with probability at least 2/3, for a given error parameter <span>\\\\(\\\\delta \\\\)</span>. Our main result is a sample-based distribution-free algorithm whose sample complexity is <span>\\\\(\\\\tilde{O}(k^2/\\\\delta ^2)\\\\)</span>. We first present an algorithm that works when the underlying distribution <i>p</i> is uniform, and then show how it can be modified to work for any (unknown) distribution <i>p</i>. We also show that a quadratic dependence on <span>\\\\(1/\\\\delta \\\\)</span> is necessary.</p></div>\",\"PeriodicalId\":50824,\"journal\":{\"name\":\"Algorithmica\",\"volume\":\"86 8\",\"pages\":\"2519 - 2556\"},\"PeriodicalIF\":0.9000,\"publicationDate\":\"2024-05-13\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://link.springer.com/content/pdf/10.1007/s00453-024-01233-4.pdf\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Algorithmica\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://link.springer.com/article/10.1007/s00453-024-01233-4\",\"RegionNum\":4,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q4\",\"JCRName\":\"COMPUTER SCIENCE, SOFTWARE ENGINEERING\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Algorithmica","FirstCategoryId":"94","ListUrlMain":"https://link.springer.com/article/10.1007/s00453-024-01233-4","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
Sample-Based Distance-Approximation for Subsequence-Freeness
In this work, we study the problem of approximating the distance to subsequence-freeness in the sample-based distribution-free model. For a given subsequence (word) \(w = w_1 \ldots w_k\), a sequence (text) \(T = t_1 \ldots t_n\) is said to contain w if there exist indices \(1 \le i_1< \cdots < i_k \le n\) such that \(t_{i_{j}} = w_j\) for every \(1 \le j \le k\). Otherwise, T is w-free. Ron and Rosin (ACM Trans Comput Theory 14(4):1–31, 2022) showed that the number of samples both necessary and sufficient for one-sided error testing of subsequence-freeness in the sample-based distribution-free model is \(\Theta (k/\epsilon )\). Denoting by \(\Delta (T,w,p)\) the distance of T to w-freeness under a distribution \(p:[n]\rightarrow [0,1]\), we are interested in obtaining an estimate \(\widehat{\Delta }\), such that \(|\widehat{\Delta }- \Delta (T,w,p)| \le \delta \) with probability at least 2/3, for a given error parameter \(\delta \). Our main result is a sample-based distribution-free algorithm whose sample complexity is \(\tilde{O}(k^2/\delta ^2)\). We first present an algorithm that works when the underlying distribution p is uniform, and then show how it can be modified to work for any (unknown) distribution p. We also show that a quadratic dependence on \(1/\delta \) is necessary.
期刊介绍:
Algorithmica is an international journal which publishes theoretical papers on algorithms that address problems arising in practical areas, and experimental papers of general appeal for practical importance or techniques. The development of algorithms is an integral part of computer science. The increasing complexity and scope of computer applications makes the design of efficient algorithms essential.
Algorithmica covers algorithms in applied areas such as: VLSI, distributed computing, parallel processing, automated design, robotics, graphics, data base design, software tools, as well as algorithms in fundamental areas such as sorting, searching, data structures, computational geometry, and linear programming.
In addition, the journal features two special sections: Application Experience, presenting findings obtained from applications of theoretical results to practical situations, and Problems, offering short papers presenting problems on selected topics of computer science.