HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Package0.1.0.6Optimisation

circle-packing

Simple heuristic for packing discs of varying radii in a circle

  • Version0.1.0.6
  • CategoryOptimisation
  • LicenceBSD-3-Clause
  • AuthorJoachim Breitner <mail@joachim-breitner.de>
  • MaintainerJoachim Breitner <mail@joachim-breitner.de>
  • Pinned byhackage circle-packing 0.1.0.6
  • Sourcehackage.haskell.org/package/circle-packing-0.1.0.6

Modules

1 module

Description

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.

You can explore the algorithm live at http://darcs.nomeata.de/circle-packing/ghcjs/ghcjs-demo.html.

Contributions of better algorithms are welcome.

Depends on

1 package

Used by in this set · 0

Nothing in this set depends on it.