Reverse k nearest neighbor query method based on Voronoi pictures
A query method and nearest neighbor technology, applied in the field of query and spatial data query, can solve problems such as low efficiency and unsupported, and achieve the effect of taking into account the query speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] A kind of reverse k-nearest neighbor query method based on Voronoi graph, comprises the following steps:
[0037] Step 1: Generate corresponding Voronoi diagrams according to the set of query sites, the method is: the existing Voronoi diagram generation method; because each k-order Voronoi diagram in the present invention can query R(k-1)NN, RkNN and R(k+1 ) NN results, so according to the needs of the query to generate 1, 3, 6, 9... order Voronoi diagram;
[0038] Step 2: Import the query object data set, the method is: read the data file and display the data;
[0039] Step 3: Input the k value and the coordinates of the query point q, call the Voronoi diagram with order m generated in step 1 according to the k value, and get the RkNN query result, where:
[0040] When k=m, all query objects within the polygon containing station q are the results,
[0041] When k
Embodiment 2
[0045] Such as image 3 As shown, a real human landscape landmark data set CD is used to further illustrate the reverse k-nearest neighbor query method based on the Voronoi diagram proposed by the present invention. Include the following steps:
[0046] Step 1: Generate Voronoi graphic data according to the CD human landscape site collection, and save the file.
[0047] The document saved by the generate graphics module is as follows Figure 4 As shown, the data in the figure is the data of the third-order Voronoi diagram. Each row of data may describe a Voronoi polygon. The data in each row is divided into three parts, namely the generator, the vertices of the Voronoi polygon and the minimum bounding rectangle MBR. Each part of data is separated by ":". Let's look at the first row of data, the 6 sets of numbers before the first ":" are the generators of the polygon. Every two sets of numbers represent a pair of coordinates, because it is a polygon of order 3, and 3 pair...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 