0, a d-near-palindrome is a string of Hamming"/>

Streaming for Aibohphobes: Longest Palindrome with Mismatches

FSTTCS(2017)

引用 6|浏览47
暂无评分
摘要
A palindrome is a string that reads the same as its reverse, such as "aibohphobia" (fear of palindromes). Given an integer d>0, a d-near-palindrome is a string of Hamming distance at most d from its reverse. We study the natural problem of identifying a longest d-near-palindrome in data streams. The problem is relevant to the analysis of DNA databases, and to the task of repairing recursive structures in documents such as XML and JSON. We present an algorithm that returns a d-near-palindrome whose length is within a multiplicative (1+ϵ)-factor of the longest d-near-palindrome. Our algorithm also returns the set of mismatched indices of the d-near-palindrome, using 𝒪(dlog^7 n/ϵlog(1+ϵ)) bits of space, and 𝒪(dlog^6 n/ϵlog(1+ϵ)) update time per arriving symbol. We show that Ω(dlog n) space is necessary for estimating the length of longest d-near-palindromes with high probability. We further obtain an additive-error approximation algorithm and a comparable lower bound, as well as an exact two-pass algorithm that solves the longest d-near-palindrome problem using 𝒪(d^2√(n)log^6 n) bits of space.
更多
查看译文
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要