博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
近邻搜索算法
阅读量:6327 次
发布时间:2019-06-22

本文共 2369 字,大约阅读时间需要 7 分钟。

最近邻搜索(Nearest Neighbor Search)

Name of the problem: nearest neighbors, k nearest neighbors (kNN, k-NN), nearset neighbor search, proximity search, similarity search, approximate nearest neighbors (ANN), range queries, maximal intersection queries, post-office problem, partial match, best match file searching, best match retrieval, sequence nearest neighbors (SNN). 

Solution concepts: locality-sensitive hashing (LSH), low-distortion embeddings, k-d trees, kd-trees, metric trees, M-trees, R*-trees, vp-trees, vantage point trees, vantage point forest, multi-vantage point tree, bisector trees, Orchard's algorithm, random projections, fixed queries tree, Voronoi tree, BBD-tree, min-wise independent permutations, Burkhard-Keller tree, generalized hyperplane tree, geometric near-neighbor access tree (GNAT), approximating eliminating search algorithm (AESA), inverted index, spatial approximation tree (SAT). 
Applications: k-nearest neighbor classification algorithm, image similarity identification, audio similarity identification, fingerprint search, audio/video compression (MPEG), optical character recognition, coding theory, function approximation, recommendation systems, near-duplicate detection, targeting on-line ads, distributional similarity computation, spelling correction, nearest neighbor interpolation. 

常见的近邻搜索库包括ANN,FLNN,当然八叉树也可以实现近邻搜索。也可以通过狄洛尼三角网实现近邻的判断。

1.K近邻搜索、近似近邻搜索

 

2.k-d树

 

3.R树

 

 对应点的matlab显示

fileID = fopen('data2\\correspondence_1.txt');C =textscan(fileID,'%f%f%f%f%f%f%d%d%f') ;modelx=C{
1};modely=C{
2};modelz=C{
3};datax=C{
4};datay=C{
5};dataz=C{
6};distance=C{
9};%误差向量vectorx=modelx-datax;vectory=modely-datay;vectorz=modelz-dataz;figure(1);hold on plot3(modelx,modely,modelz, 'r+'); plot3(datax,datay,dataz, 'b+'); %% 连线 for i = 1:size(modelx,1) plot3([modelx(i) datax(i)], [modely(i) datay(i)], [modelz(i) dataz(i)], 'g--') end axis equalhold offfigure(2);hold on hist(distance,100);hold off

参考文献:

1. http://www.cnblogs.com/breakinen/archive/2012/03/31/bigdata_nearest_neighbor_search.html?utm_source=tuicool&utm_medium=referral

2. http://www.cnblogs.com/v-July-v/archive/2012/11/20/3125419.html

3. http://blog.sina.com.cn/s/blog_72e1c7550101dsc3.html

https://en.wikipedia.org/wiki/Nearest_neighbor_search#Approximate_nearest_neighbor

转载于:https://www.cnblogs.com/yhlx125/p/5251771.html

你可能感兴趣的文章
每日构造与冒烟测试
查看>>
WindowsPhone7入手,实在的照片
查看>>
iptables实现7层过滤
查看>>
《TCP/IP详解卷1:协议》第6章 ICMP:Internet控制报文协议---读书笔记
查看>>
AS3.0中的显示编程(四)-- DisplayObjectContainer
查看>>
Lock应用之 可中断
查看>>
varnish缓存实现动静分离
查看>>
[jQuery]empty()和remove()的区别
查看>>
WSUS Technology Overview
查看>>
运营商NAT部署方案探讨
查看>>
Debenham养老金项目关键流程4-Opt in 流程
查看>>
安装和配置SQL Server 2016 With SP1
查看>>
Android Action Bar 加入Back键
查看>>
U盘修复
查看>>
NFS服务器问题
查看>>
MSP430学习笔记5-利用蜂鸣器演奏音乐
查看>>
Asp.Net中几种相似数据绑定标记符号的解释及用法
查看>>
Python黑帽编程2.4 流程控制
查看>>
Spoj 2713 Can you answer these queries IV 水线段树
查看>>
玩转Google开源C++单元测试框架Google Test系列(gtest)之六 - 运行参数
查看>>