Algorithms for Nearest Neighbor Search.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Algorithms for Nearest Neighbor Search.ppt

Algorithms for Nearest Neighbor Search Piotr Indyk MIT Nearest Neighbor Search Given: a set P of n points in Rd Goal: a data structure, which given a query point q, finds the nearest neighbor p of q in P Outline of this talk Variants Motivation Main memory algorithms: quadtrees kd-trees Locality Sensitive Hashing Secondary storage algorithms: R-tree (and its variants) VA-file Variants of nearest neighbor Near neighbor (range search): find one/all points in P within distance r from q Spatial join: given two sets P,Q, find all pairs p in P, q in Q, such that p is within distance r from q Approximate near neighbor: find one/all points p’ in P, whose distance to q is at most (1+e) times the distance from q to its nearest neighbor Motivation Depends on the value of d: low d: graphics, vision, GIS, etc high d: similarity search in databases (text, images etc) finding pairs of similar objects (e.g., copyright violation detection) useful subroutine for clustering Algorithms Main memory (Computational Geometry) linear scan tree-based: quadtree kd-tree hashing-based: Locality-Sensitive Hashing Secondary storage (Databases) R-tree (and numerous variants) Vector Approximation File (VA-file) Quadtree Simplest spatial structure on Earth ! Quadtree ctd. Split the space into 2d equal subsquares Repeat until done: only one pixel left only one point left only a few points left Variants: split only one dimension at a time k-d-trees (in a moment) Range search Near neighbor (range search): put the root on the stack repeat pop the next node T from the stack for each child C of T: if C is a leaf, examine point(s) in C if C intersects with the ball of radius r around q, add C to the stack Near neighbor ctd Nearest neighbor Start range search with r = ? Whenever a point is found, update r Only investigate nodes with respect to current r Quadtree ctd. Simple data structure Versatile, easy to implement So why doesn’t this talk end here ? Empty spaces: if the points form sparse clouds,

文档评论(0)

wsh1288 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档