arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1708.05223cs.DS
收藏

流$k$ -不匹配问题

The streaming $k$-mismatch problem

Raphaël Clifford, Tomasz Kociumaka, Ely Porat

摘要:

我们认为流的复杂性的一个基本任务,在近似模式匹配:$k$ -失配问题。它要求计算长度为$n$的模式与汉明距离不超过给定阈值$k$的文本的所有长度为$n$的子串之间的汉明距离。在我们的问题公式中,我们不仅报告汉明距离,而且根据需要报告完整的\emph{mismatch information},即不匹配的符号对及其索引的列表。流式模式匹配的双重挑战源自于既需要实现小的工作空间又需要保证快速处理每个到达的输入符号。我们提出了一个流算法的$k$ -不匹配的问题,它使用$O(k\log{n}\log\frac{n}{k})$位的空间,并花费\ourcomplexity的时间在每个符号的输入流,其中包括由文本的模式。运行时间几乎匹配经典的离线解决方案,空间使用率在最佳的对数因子内。因此,我们的新算法有效地解决,也扩展了FOCS'09中首次提出的开放问题。在这个解决方案的途中,我们还给出了一个确定性的$O( k (\log \frac{n}{k} + \log |Σ|) )$位编码的所有路线与汉明距离最多$k$的长度$n$模式内的文本长度$O(n)$。这个次要的结果提供了一个自然的通信复杂性问题,这可能是独立的利益的最佳解决方案。

英文摘要:

We consider the streaming complexity of a fundamental task in approximate pattern matching: the $k$-mismatch problem. It asks to compute Hamming distances between a pattern of length $n$ and all length-$n$ substrings of a text for which the Hamming distance does not exceed a given threshold $k$. In our problem formulation, we report not only the Hamming distance but also, on demand, the full \emph{mismatch information}, that is the list of mismatched pairs of symbols and their indices. The twin challenges of streaming pattern matching derive from the need both to achieve small working space and also to guarantee that every arriving input symbol is processed quickly. We present a streaming algorithm for the $k$-mismatch problem which uses $O(k\log{n}\log\frac{n}{k})$ bits of space and spends \ourcomplexity time on each symbol of the input stream, which consists of the pattern followed by the text. The running time almost matches the classic offline solution and the space usage is within a logarithmic factor of optimal. Our new algorithm therefore effectively resolves and also extends an open problem first posed in FOCS'09. En route to this solution, we also give a deterministic $O( k (\log \frac{n}{k} + \log |Σ|) )$-bit encoding of all the alignments with Hamming distance at most $k$ of a length-$n$ pattern within a text of length $O(n)$. This secondary result provides an optimal solution to a natural communication complexity problem which may be of independent interest.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑