Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

An implementation of Chung's linear-time algorithm for solution of the Maximum Density Segment Problem with extended applications

Project description

An implementation of Chung & Lu [1]’s linear time algorithm for solution of the Maximum Density Segment Problem with additional features, namely simultaneous identification of Minimum Density Segments and consideration of content constraints

[1]K.-M. Chung and H.-I. Lu. An optimal algorithm for the maximum-density segment problem. SIAM Journal on Computing, 34(2), 2005.


  • Python >= 3.2
  • Numpy >= 1.7


Using easy_install, all dependencies will be installed automatically if missing:

$ easy_install3 chungpy

When installing manually from, just execute:

$ python3 install


Copyright (c) 2014 Corinna Ernst <> (see LICENSE)

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
chungpy-1.0.1.tar.gz (14.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page