pith. sign in

arxiv: 0910.3503 · v2 · pith:7TTOZUY6new · submitted 2009-10-19 · 💻 cs.DS

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

classification 💻 cs.DS
keywords giventimelinearlongestproblemsubstringalgorithmbitstream
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.