To show the flexibility of our technique, in this section we present the approach to answer the continuous CNN queries where the distance bounds and can be changed by user at any time. Consider the running example of Fig. , where the lower bound is changed from to . Below we present the technique to efficiently compute the nearest neighbor after such change in constraints.
Suppose the lower distance bound is changed from to and upper bound is changed from to . Let be the distance of current NN from . To update the results, first we delete the objects from that do not lie in the new range. More specifically we delete every where or . If , the algorithm starts calling CircularTrip with radius and iteratively increases it by unless NNs are found or radius equals or exceeds . If NNs are not found and the radius equals to , the algorithm continues by calling CircularTrip with radius unless NNs are found or the radius equals to . Note that, if radius equals to and NNs have not been found this means there are less than objects that lie in the constrained region. We illustrate our technique with following example.
[Lower bound changes from to ] [ is still the CNN] |
Muhammad Aamir Cheema 2007-10-11