On Locating Disjoint Segments with Maximum Sum of Densities
Author(s) -
Hsiao-Fei Liu,
KunMao Chao
Publication year - 2007
Publication title -
algorithmica
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.647
H-Index - 78
eISSN - 1432-0541
pISSN - 0178-4617
DOI - 10.1007/s00453-007-9122-6
Subject(s) - disjoint sets , combinatorics , sequence (biology) , mathematics , theory of computation , running time , discrete mathematics , algorithm , genetics , biology
Given a sequence A of n real numbers and two positive integers l and k, where , we study the problem of locating k disjoint segments of A, each of length at least l, such that the sum of their densities is maximized. The best previously known algorithm, due to Bergkvist and Damaschke, runs in O(nl+k 2 l 2) time. In this paper, we propose an O(n+k 2 llog l)-time algorithm for it. We also give an optimal algorithm for a related problem raised by Lin et al. in 2003, where the goal is to locate k disjoint maximum-density segments in a given sequence.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom