Suppose that is a set of -dimensional moving data points. Each data point is represented by . The data points change their location in an unpredictable fashion and frequently. At each timestamp, the data point which moves from to , issues a location update as . Updates of query points are recorded similarly.
Figure illustrates our continuous NN query monitoring system. There are four components in the system, query table, NN computation module, monitoring computation module, and CircularTrip module. Once a new continuous NN query arrives, it is first registered in the query table. Then, NN computation module retrieves the initial NN results. When either data points or query points move, monitoring computation module receives the location updates and reports the new NN results to the corresponding queries. CircularTrip module is invoked by both the NN computation module and monitoring computation module, which guarantees the minimum number of cells are accessed during all the computation. By accessing or visiting a cell, we mean that all the objects lying inside it are retrieved and their distances from are calculated. We use another term encountering a cell by which we mean to calculate the of that cell from . Clearly, the cost of encountering a cell is negligible as compared to accessing a cell.
Each cell contains an object list that contains all the objects lying in . Influence list of a cell contains every query such that . Intuitively, influence list of cell records all the queries affected by this cell . Both the object lists and influence lists are implemented as hash tables so that insertion, deletion or retrieval of any element takes constant time.
As shown in Algorithm , our CircularTrip-based continuous NN algorithm consists of two phases. In phase 1, the initial results of each new continuous NN query are computed. Then, the results are incrementally updated by continuous monitoring module at each time stamp upon the moves of query points and data points. Both phases take advantages of CircularTrip algorithm. Phase 1 and phase 2 are presented in Section and Section , respectively.
Muhammad Aamir Cheema 2007-10-11