English

Degree of Convexity and Expected Distances in Polygons

Computational Geometry 2022-11-01 v2 Metric Geometry

Abstract

We present an algorithm for computing the so-called Beer-index of a polygon PP in O(n2)O(n^2) time, where nn is the number of corners. The polygon PP may have holes. The Beer-index is the probability that two points chosen independently and uniformly at random in PP can see each other. Given a finite set MM of mm points in a simple polygon PP, we also show how the number of pairs in MM that see each other can be computed in O(nlogn+m4/3logαmlogn)O(n\log n+m^{4/3}\log^\alpha m\log n) time, where α<1.78\alpha<1.78 is a constant. We likewise study the problem of computing the expected geodesic distance between two points chosen independently and uniformly at random in a simple polygon PP. We show how the expected L1L_1-distance can be computed in optimal O(n)O(n) time by a conceptually very simple algorithm. We then describe an algorithm that outputs a closed-form expression for the expected L2L_2-distance in O(n2)O(n^2) time.

Keywords

Cite

@article{arxiv.2208.07106,
  title  = {Degree of Convexity and Expected Distances in Polygons},
  author = {Mikkel Abrahamsen and Viktor Fredslund-Hansen},
  journal= {arXiv preprint arXiv:2208.07106},
  year   = {2022}
}

Comments

29 pages, 17 figures. This version corrects an error in the running time in Theorem 2 and Corollary 3 from the first version