Mon*_*nes 5 language-agnostic algorithm treemap
给定一个标准的嵌套圆形树图,你如何计算圆圈的放置位置?
Tho*_*hle 1
您的主要问题可以描述为:“ Given a set of circles of varying radius, how does one place them within a larger circle, so that none of them overlap”。
Given a set of circles of varying radius, how does one place them within a larger circle, so that none of them overlap
这是一个难题,但这里有一个强力解决方案可以帮助您入门:
上面使用的观察结果是,在完美的包装中,每个圆必须与至少两个其他圆接壤。您可以使用该算法提供完整搜索,也可以只是随机迭代并贪婪地选择第一个可用点。
归档时间:
14 年,10 月 前
查看次数:
768 次
最近记录:
12 年,9 月 前