• DocumentCode
    2080536
  • Title

    K nearest neighbor queries and kNN-Joins in large relational databases (almost) for free

  • Author

    Yao, Bin ; Li, Feifei ; Kumar, Piyush

  • Author_Institution
    Comput. Sci. Dept., Florida State Univ., Tallahassee, FL, USA
  • fYear
    2010
  • fDate
    1-6 March 2010
  • Firstpage
    4
  • Lastpage
    15
  • Abstract
    Finding the k nearest neighbors (kNN) of a query point, or a set of query points (kNN-Join) are fundamental problems in many application domains. Many previous efforts to solve these problems focused on spatial databases or stand-alone systems, where changes to the database engine may be required, which may limit their application on large data sets that are stored in a relational database management system. Furthermore, these methods may not automatically optimize kNN queries or kNN-Joins when additional query conditions are specified. In this work, we study both the kNN query and the kNN-Join in a relational database, possibly augmented with additional query conditions. We search for relational algorithms that require no changes to the database engine. The straightforward solution uses the user-defined-function (UDF) that a query optimizer cannot optimize.We design algorithms that could be implemented by SQL operators without changes to the database engine, hence enabling the query optimizer to understand and generate the ¿best¿ query plan. Using only a small constant number of random shifts for databases in any fixed dimension, our approach guarantees to find the approximate kNN with only logarithmic number of page accesses in expectation with a constant approximation ratio and it could be extended to find the exact kNN efficiently in any fixed dimension. Our design paradigm easily supports the kNN-Join and updates. Extensive experiments on large, real and synthetic, data sets confirm the efficiency and practicality of our approach.
  • Keywords
    SQL; learning (artificial intelligence); query processing; relational databases; SQL operators; database engine; k nearest neighbor queries; kNN-joins; query conditions; query optimization; query point; relational databases; spatial databases; stand-alone systems; user-defined-function; Algorithm design and analysis; Application software; Computer science; Design optimization; Engines; Nearest neighbor searches; Optimization methods; Pattern recognition; Relational databases; Spatial databases;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Data Engineering (ICDE), 2010 IEEE 26th International Conference on
  • Conference_Location
    Long Beach, CA
  • Print_ISBN
    978-1-4244-5445-7
  • Electronic_ISBN
    978-1-4244-5444-0
  • Type

    conf

  • DOI
    10.1109/ICDE.2010.5447837
  • Filename
    5447837