一种识别近似好括号表达式的流算法
Streaming algorithms for recognizing nearly well-parenthesized expressions
摘要:
研究了当输入串中有少量错误时,1-turn-Dyck 2和Dyck 2的成员问题的流复杂度。1-turn-Dyck 2错误:我们证明了存在一个随机的一遍算法,给定x检查是否存在一个字符串x'在1-turn-Dyck 2,使x是通过翻转最多$k$位置的x'使用:- O(k log n)空间,O(k log n)随机性,和聚(k log n)时间每项和错误最多1/聚(n)。- O(k^{1+ n} + log n)的空间,O(log n)的随机性,O(polylog(n)+ poly(k))的时间,误差最多为1/8。在这里,我们还证明了任何随机的一遍算法,使错误在最多k/n需要至少Ω(k log(n/k))空间接受字符串,这是完全k-远离字符串在1-turn-Dyck 2和拒绝字符串,这是完全(k+2)-远离字符串在1-turn-Dyck 2。由于1-turn-Dyck 2和汉明距离问题密切相关,我们也得到了这个问题的新的上界和下界。Dyck 2错误:我们证明了存在一个随机的一遍算法,给定x检查是否存在一个字符串x'在Dyck 2,使x是从x'通过改变(以某种限制的方式)在最多k个位置使用:- O(k log n + sqrt(n log n))空间,O(k log n)的随机性,聚(k log n)每个元素的时间和错误最多1/聚(n)。- O(k^(1+ n)+ sqrt(n log n))空间对于每个0 <= n <= 1,O(log n)随机性,O(polylog(n)+ poly(k))时间每个元素,误差最多1/8。
英文摘要:
We study the streaming complexity of the membership problem of 1-turn-Dyck2 and Dyck2 when there are a few errors in the input string. 1-turn-Dyck2 with errors: We prove that there exists a randomized one-pass algorithm that given x checks whether there exists a string x' in 1-turn-Dyck2 such that x is obtained by flipping at most $k$ locations of x' using: - O(k log n) space, O(k log n) randomness, and poly(k log n) time per item and with error at most 1/poly(n). - O(k^{1+epsilon} + log n) space for every 0 <= epsilon <= 1, O(log n) randomness, O(polylog(n) + poly(k)) time per item, with error at most 1/8. Here, we also prove that any randomized one-pass algorithm that makes error at most k/n requires at least Omega(k log(n/k)) space to accept strings which are exactly k-away from strings in 1-turn-Dyck2 and to reject strings which are exactly (k+2)-away from strings in 1-turn-Dyck2. Since 1-turn-Dyck2 and the Hamming Distance problem are closely related we also obtain new upper and lower bounds for this problem. Dyck2 with errors: We prove that there exists a randomized one-pass algorithm that given x checks whether there exists a string x' in Dyck2 such that x is obtained from x' by changing (in some restricted manner) at most k positions using: - O(k log n + sqrt(n log n)) space, O(k log n) randomness, poly(k log n) time per element and with error at most 1/poly(n). - O(k^(1+epsilon)+ sqrt(n log n)) space for every 0 <= epsilon <= 1, O(log n) randomness, O(polylog(n) + poly(k)) time per element, with error at most 1/8.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。