×

K-nearest neighbor search method, k-nearest neighbor search program, and k-nearest neighbor search device

  • US 8,090,745 B2
  • Filed: 01/30/2009
  • Issued: 01/03/2012
  • Est. Priority Date: 02/19/2008
  • Status: Active Grant
First Claim
Patent Images

1. A k-nearest neighbor search method of searching a database for a query number k of nearest points to a query point, the 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, a tree structure including branches and leaf nodes being created from the points and the region,the search method comprising:

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

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

    calculating, when the nearest region is judged to be an 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 shows that the nearest region is a 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 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 finishing the search processing, a record of the stored point as a search result from a database management system for managing the database.

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