arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2306.04850cs.DS
收藏

用于简洁 k-谱的最长公共前缀数组

Longest Common Prefix Arrays for Succinct k-Spectra

Jarno N. Alanko, Elena Biagi, Simon J. Puglisi

AI总结:

本文研究从 k-谱的 SBWT 表示构造 LCP 数组,提出 O(nk) 直接算法、最优 O(n) 算法及缓存友好的次优算法,以支持伪比对加速和变阶 de Bruijn 图模拟。

摘要:

字符串的 k-谱是该字符串中出现的所有长度为 k 的不同子串组成的集合。K-谱在生物信息学中有许多应用,包括伪比对和基因组组装。Spectral Burrows-Wheeler Transform(SBWT,谱 Burrows-Wheeler 变换)最近被提出,作为一种高效表示和查询这些对象的算法工具。k-谱的最长公共前缀(LCP)数组是一个长度为 n 的数组,用于存储按字典序排列的相邻 k-mer 之间的最长公共前缀长度。LCP 数组至少有两个重要应用,即使用 SBWT 加速伪比对算法,以及在 SBWT 框架内模拟变阶 de Bruijn 图。本文研究如何从 k-谱的 SBWT 表示高效计算 LCP 数组的算法。从一个直接的 O(nk) 时间算法开始,我们描述了在理论和实践上都高效的算法。我们证明 LCP 数组可以在最优 O(n) 时间内计算,其中 n 是该谱的 SBWT 长度。在实际基因组学场景中,我们表明这种理论上最优的算法确实具有实用性,但在 k 值较小时,其性能往往不如一种渐近次优但与 CPU 缓存交互更好的算法。我们的算法与经典 Burrows-Wheeler 逆变换算法以及后缀数组的 LCP 数组构造算法具有一些共同特征。

英文摘要:

The k-spectrum of a string is the set of all distinct substrings of length k occurring in the string. K-spectra have many applications in bioinformatics including pseudoalignment and genome assembly. The Spectral Burrows-Wheeler Transform (SBWT) has been recently introduced as an algorithmic tool to efficiently represent and query these objects. The longest common prefix (LCP) array for a k-spectrum is an array of length n that stores the length of the longest common prefix of adjacent k-mers as they occur in lexicographical order. The LCP array has at least two important applications, namely to accelerate pseudoalignment algorithms using the SBWT and to allow simulation of variable-order de Bruijn graphs within the SBWT framework. In this paper we explore algorithms to compute the LCP array efficiently from the SBWT representation of the k-spectrum. Starting with a straightforward O(nk) time algorithm, we describe algorithms that are efficient in both theory and practice. We show that the LCP array can be computed in optimal O(n) time, where n is the length of the SBWT of the spectrum. In practical genomics scenarios, we show that this theoretically optimal algorithm is indeed practical, but is often outperformed on smaller values of k by an asymptotically suboptimal algorithm that interacts better with the CPU cache. Our algorithms share some features with both classical Burrows-Wheeler inversion algorithms and LCP array construction algorithms for suffix arrays.

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

↑