Visibility testing and counting

  • Authors:
  • Sharareh Alipour;Alireza Zarei

  • Affiliations:
  • Department of Mathematical Sciences, Sharif University of Technology, Tehran, Iran;Department of Mathematical Sciences, Sharif University of Technology, Tehran, Iran

  • Venue:
  • FAW-AAIM'11 Proceedings of the 5th joint international frontiers in algorithmics, and 7th international conference on Algorithmic aspects in information and management
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

For a set of n disjoint line segments S in R2, the visibility counting problem (VCP) is to preprocess S such that the number of visible segments in S from a query point p can be computed quickly. For this configuration, the visibility testing problem (VTP) is to test whether p sees a fixed segment s. These problems can be solved in logarithmic query time by using O(n4) preprocessing time and space. In this paper, we approximately solve this problem using quadratic preprocessing time and space. Our methods are superior to current approximation algorithms in terms of both approximation factor and preprocessing cost. In this paper, we propose a 2-approximation algorithm for the VCP using at most quadratic preprocessing time and space. The query time of this method is Oε(n2/√k) where k is the preprocessing time and Oε(f(n)) = O(f(n)nε). We also solve the VTP in expected logarithmic query time using quadratic time and space.