circle-packing: Simple heuristic for packing discs of varying radii in a circle

[ bsd3, library, optimisation ] [ Propose Tags ]
Dependencies base (>=4.5 && <4.7) [details]
License BSD-3-Clause
Copyright 2012, Joachim Breitner
Author Joachim Breitner <>
Maintainer Joachim Breitner <>
Category Optimisation
Source repo head: darcs get
Uploaded by JoachimBreitner at Mon Dec 17 09:17:57 UTC 2012
Distributions LTSHaskell:, NixOS:, openSUSE:
Downloads 10004 total (65 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Given a number of circles with their radii, this packags tries to arrange them tightly, without overlap and forming a large circle.

Finding the optimal solution is NP hard, so only heuristics are feasible. This particular implementation is neither very good nor very fast, compared to the state of the art in research. Nevertheless it is simple to use and gives visually acceptable results.

Contributions of better algorithms are welcome.




Maintainer's Corner

For package maintainers and hackage trustees