Label updating to avoid point-shaped obstacles in fixed model

  • Authors:
  • Farshad Rostamabadi;Mohammad Ghodsi

  • Affiliations:
  • Computer Engineering Department, Sharif University of Technology, Tehran, Iran and School of Computer Science, Institute for Studies in Fundamental Sciences, Tehran, Iran;Computer Engineering Department, Sharif University of Technology, Tehran, Iran and School of Computer Science, Institute for Studies in Fundamental Sciences, Tehran, Iran

  • Venue:
  • Theoretical Computer Science
  • Year:
  • 2006

Quantified Score

Hi-index 5.23

Visualization

Abstract

In this paper, we present efficient algorithms for updating the labeling of a set of n points after the presence of a random obstacle that appears on the map repeatedly. We update the labeling so that the given obstacle does not appear in any of the labels, the new labeling is valid, and the labels are as large as possible (called the optimal labeling). Each point is assumed to have an axis-parallel, square-shaped label of unit size, attached exclusively to that point in the middle of one of its edges. We consider two models: (1) the 2PM model, where each label is attached to its feature only on the middle of one of its horizontal edges, and (2) the r4PM model, where each label is attached to its feature on the middle of either one of its horizontal or vertical edges (known in advance). We assume that a sequence of point-shaped obstacles appear on the map on random locations. Three settings are considered for the behavior of the obstacle: (1) the obstacle is removed afterwards, (2) it remains on the map, and (3) it receives a similar label and remains on the map. Only two operations are permitted on the labels: flipping one or more labels, and/or resizing all labels. In the first setting, we suggest a data structure of O(n) space and O(n lg n) time in the 2PM model, and of O(n2) time in the r4PM model, so that the updated labeling can be constructed for any obstacle position in O(lgn + k) time, where k is the minimum number of operations needed. For the second and third problems, we suggest an O(n) space and O(n lg n) time data structure that can place each obstacle (possibly with a label) on the map in O(lgn + k) time, if k label flips are sufficient to make room to place the new obstacle. Otherwise, two O(n) time algorithms are suggested when a relabeling of all points is required.