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

在线性时间内搜索比特流,以获得任何给定密度的最长子串

Searching a bitstream in linear time for the longest substring of any given density

Benjamin A. Burton

摘要:

给定一个任意的比特流,我们考虑的问题,找到最长的子串的1到0的比例等于一个给定的值。本文的中心结果是一个算法,解决这个问题的线性时间。该方法涉及(i)重新制定的问题,作为一个约束的走查稀疏矩阵,然后(ii)开发一个数据结构,使我们能够执行每一步的步行在摊销常数时间的稀疏矩阵。我们还给出了一个线性时间算法,以找到最长的子串的1到0的比例是有界的给定值以下。这两个问题都与密码学和生物信息学有实际关系。

英文摘要:

Given an arbitrary bitstream, we consider the problem of finding the longest substring whose ratio of ones to zeroes equals a given value. The central result of this paper is an algorithm that solves this problem in linear time. The method involves (i) reformulating the problem as a constrained walk through a sparse matrix, and then (ii) developing a data structure for this sparse matrix that allows us to perform each step of the walk in amortised constant time. We also give a linear time algorithm to find the longest substring whose ratio of ones to zeroes is bounded below by a given value. Both problems have practical relevance to cryptography and bioinformatics.

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

↑