Abstract

Given a set S of n disjoint line segments in R2, the visibility counting problem (VCP) is to preprocess S such that the number of segments in S visible from any query point p can be computed quickly. This problem can be solved trivially in O(log⁡n) query time using O(n4log⁡n) preprocessing time and O(n4) space.Gudmundsson and Morin (2010) [10] proposed a 2-approximation algorithm for this problem with a tradeoff between the space and the query time. For any constant 0≤α≤1, their algorithm answers any query in Oϵ(m(1−α)/2) time with Oϵ(m1+α) of preprocessing time and space, where ϵ>0 is a constant that can be made arbitrarily small and Oϵ(f(n))=O(f(n)nϵ) and m=O(n2) is a number that depends on the configuration of the segments.In this paper, we propose two randomized approximation algorithms for VCP. The first algorithm depends on two constants 0≤β≤23 and 0<δ≤1, and the expected preprocessing time, the expected space, and the expected query time are O(m2−3β/2log⁡m), O(m2−3β/2), and O(1δ2mβ/2log⁡m), respectively. The algorithm, in the preprocessing phase, selects a sequence of random samples, whose size and number depend on the tradeoff parameters. When a query point p is given by an adversary unaware of the random sample of our algorithm, it computes the number of visible segments from p, denoted by mp, exactly, if mp≤3δ2mβ/2log⁡(2m). Otherwise, it computes an approximated value, mp′, such that with the probability of at least 1−1m, we have (1−δ)mp≤mp′≤(2+2δ)mp. The preprocessing time and space of the second algorithm are O(n2log⁡n) and O(n2), respectively. This algorithm computes the exact value of mp if mp≤1δ2nlog⁡n, otherwise it returns an approximated value mp″ in expected O(1δ2nlog⁡n) time, such that with the probability at least 1−1log⁡n, we have (1−3δ)mp≤mp″≤(1.5+3δ)mp.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.