避免字的优化计算
Optimal Computation of Avoided Words
摘要:
在给定序列$x$中,单词$w$的观测频率与其预期频率的偏差用于确定是否避免该单词。这个概念在DNA语言分析中特别有用。用$std(w)$表示的$w$的标准差的值通过词在其出现的上下文中的边缘对比度来有效地表征词的范围。如果对于给定的阈值$ρ< 0$,$std(w) \leq ρ$,长度为$k>2$的字$w$是$x$中的$ρ$避免字。请注意,这样的单词可能在$x$中完全不存在。因此,单纯地计算所有这些单词可能是一个非常耗时的过程,特别是对于大型$k$。在这篇文章中,我们提出了一个$O(n)$ -时间和$O(n)$ -空间的算法来计算所有的$ρ$ -避免在一个给定的序列长度$n$在一个固定大小的字母表的$x$ $x$的长度$k$字。我们还提出了一个时间最优的$O(σn)$ -时间和$O(σn)$ -空间算法来计算所有的$ρ$ -避免字(任何长度)的长度$n$序列的大小$σ$的字母表。此外,我们提供了一个紧渐近上界的$ρ$ -避免字的数量和最长的一个的预期长度。我们提供我们的算法的开源实现。实验结果表明,使用真实和合成数据,我们的实现的效率。
英文摘要:
The deviation of the observed frequency of a word $w$ from its expected frequency in a given sequence $x$ is used to determine whether or not the word is avoided. This concept is particularly useful in DNA linguistic analysis. The value of the standard deviation of $w$, denoted by $std(w)$, effectively characterises the extent of a word by its edge contrast in the context in which it occurs. A word $w$ of length $k>2$ is a $ρ$-avoided word in $x$ if $std(w) \leq ρ$, for a given threshold $ρ< 0$. Notice that such a word may be completely absent from $x$. Hence computing all such words na\"ıvely can be a very time-consuming procedure, in particular for large $k$. In this article, we propose an $O(n)$-time and $O(n)$-space algorithm to compute all $ρ$-avoided words of length $k$ in a given sequence $x$ of length $n$ over a fixed-sized alphabet. We also present a time-optimal $O(σn)$-time and $O(σn)$-space algorithm to compute all $ρ$-avoided words (of any length) in a sequence of length $n$ over an alphabet of size $σ$. Furthermore, we provide a tight asymptotic upper bound for the number of $ρ$-avoided words and the expected length of the longest one. We make available an open-source implementation of our algorithm. Experimental results, using both real and synthetic data, show the efficiency of our implementation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。