“School of Computer Science”

Back to Papers Home
Back to Papers of School of Computer Science

Paper   IPM / Computer Science / 10830
School of Computer Science
  Title:   Label updating to avoid point-shaped obstacles in fixed model
  Author(s): 
1.  F. Rostamabadi
2.  M. Ghodsi
  Status:   Published
  Journal: Theoretical Computer Science
  No.:  1-3
  Vol.:  396
  Year:  2006
  Pages:   197-210
  Publisher(s):   Elsevier
  Supported by:  IPM
  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(nlgn) 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(nlgn) 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.

Download TeX format
back to top
scroll left or right