Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

Download files

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

Files for chungpy, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size chungpy-1.0.1.tar.gz (14.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page