计算机科学 > 数据结构与算法
[提交于 2009年10月19日]
标题:Searching a bitstream in linear time for the longest substring of any given density
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Benjamin Burton[v1] 2009年10月19日 星期一 10:06:34 UTC