In this section we present algorithm to continuously monitor a CNN query where the region of the query is constrained by distance from . Formally, such a query continuously monitors the nearest neighbors among a set of objects such that for all , where and are the upper and lower bounds of distance, respectively. Let and be the circles centered at and with radii and , respectively. The constrained region is the donut shaped area shown shaded in Fig. .
As opposed to simple NN queries where the result would have been , the result of such query is because does not satisfy the constraint. Such queries have many applications. For example a user might be interested in NNs that are not nearer to him than 10km and not farther than 20km. Below we present the continuous monitoring of such queries.