Hostname: page-component-89b8bd64d-shngb Total loading time: 0 Render date: 2026-05-09T13:11:56.703Z Has data issue: false hasContentIssue false

Calculating a linear-time solution to the densest-segment problem

Published online by Cambridge University Press:  14 December 2015

SHARON CURTIS
Affiliation:
Oxford University, UK (e-mail: sharon.curtis@ndph.ox.ac.uk)
SHIN-CHENG MU
Affiliation:
Academia Sinica, Taiwan (e-mail: scm@iis.sinica.edu.tw)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

The problem of finding a densest segment of a list is similar to the well-known maximum segment sum problem, but its solution is surprisingly challenging. We give a general specification of such problems, and formally develop a linear-time online solution, using a sliding-window style algorithm. The development highlights some elegant properties of densities, involving partitions that are decreasing and all right-skew.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2015 
Submit a response

Discussions

No Discussions have been published for this article.