×

K-NEAREST NEIGHBOR SEARCH METHOD, K-NEAREST NEIGHBOR SEARCH PROGRAM, AND K-NEAREST NEIGHBOR SEARCH DEVICE

  • US 20090210413A1
  • Filed: 01/30/2009
  • Published: 08/20/2009
  • Est. Priority Date: 02/19/2008
  • Status: Active Grant
First Claim
Patent Images

1. A k-nearest neighbor search method of receiving a query point which becomes a search start point and searching for a query number k of nearest points to the query point in a database including multidimensional points and a spatial index where a region including the points is divided into a plurality of regions to set child regions in the region, and a tree structure including branches and leaf nodes is created from the points and the region, and a database management system for managing the database,the method comprising:

  • setting the query point and the query number as search conditions;

    judging which of a lowest branch and an intermediate branch of the spatial index a nearest region to the query point is;

    calculating, when the nearest region is judged to be the intermediate branch having a child region, a distance between the query point and the child region of the nearest region as a region distance;

    storing information on a region which has become a calculation target of the region distance to obtain a nearest region to the region;

    calculating, when a result of the judging which of the lowest branch and the intermediate branch shows that the nearest region is the lowest branch having no child region, a distance between the query point and a point included in the nearest region as a point distance;

    storing information on the point which has become a calculation target of the point distance;

    repeating, until the search conditions are satisfied, search processing from the judging which of the lowest branch and the intermediate branch of the spatial index the nearest region to the query point is to the storing the information on the point which has become the calculation target of the point distance, and finishing the search processing when the search conditions are satisfied; and

    obtaining, after the finishing the search processing, a record of the stored point as a search result from the database management system.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×