English

Computing The Packedness of Curves

Computational Geometry 2022-02-04 v3

Abstract

A polygonal curve PP with nn vertices is cc-packed, if the sum of the lengths of the parts of the edges of the curve that are inside any disk of radius rr is at most crcr, for any r>0r>0. Similarly, the concept of cc-packedness can be defined for any scaling of a given shape. Assuming LL is the diameter of PP and δ\delta is the minimum distance between points on disjoint edges of PP, we show the approximation factor of the existing O(log(L/δ)ϵn3)O(\frac{\log (L/\delta)}{\epsilon}n^3) time algorithm is 1+ϵ1+\epsilon-approximation algorithm. The massively parallel versions of these algorithms run in O(log(L/δ))O(\log (L/\delta)) rounds. We improve the existing O((nϵ3)43\polylognϵ)O((\frac{n}{\epsilon^3})^{\frac 4 3}\polylog \frac n \epsilon) time (6+ϵ)(6+\epsilon)-approximation algorithm by providing a (4+ϵ)(4+\epsilon)-approximation O(n(log2n)(log21ϵ)+nϵ)O(n(\log^2 n)(\log^2 \frac{1}{\epsilon})+\frac{n}{\epsilon}) time algorithm, and the existing O(n2)O(n^2) time 22-approximation algorithm improving the existing O(n2logn)O(n^2\log n) time 22-approximation algorithm. Our exact cc-packedness algorithm takes O(n5)O(n^5) time, which is the first exact algorithm for disks. We show using α\alpha-fat shapes instead of disks adds a factor α2\alpha^2 to the approximation. We also give a data-structure for computing the curve-length inside query disks. It has O(n6logn)O(n^6\log n) construction time, uses O(n6)O(n^6) space, and has query time O(logn+k)O(\log n+k), where kk is the number of intersected segments with the query shape. We also give a massively parallel algorithm for relative cc-packedness with O(1)O(1) rounds.

Keywords

Cite

@article{arxiv.2012.04403,
  title  = {Computing The Packedness of Curves},
  author = {Sepideh Aghamolaei and Vahideh Keikha and Mohammad Ghodsi and Ali Mohades},
  journal= {arXiv preprint arXiv:2012.04403},
  year   = {2022}
}
R2 v1 2026-06-23T20:48:48.497Z