Complexity Analysis and K-D Tree datastructure

本文探讨了K最近邻(KNN)算法的时间和空间复杂度,指出KNN的时间复杂度为O(N*D),其中N是训练集大小,D是数据维度。K-D树作为优化KNN搜索的手段,适用于低维数据集,但随着维度增加,其时间复杂度呈指数增长,不适用于高维数据。文章还提到了K-D树在地图搜索中的应用,以及加权KNN的概念,并提供了Python实现K-D树的参考链接。在sk-learn库中也使用K-D树进行最近邻搜索。
摘要由CSDN通过智能技术生成

Complexity for KNN algorithm and the Optimization for KNN search.

Time complexity

Space complexity

Time/space complexity for recurssive algorithm.

Master theorem for complexity analysis:

https://www.jianshu.com/p/ca2cc9c5703b

http://people.csail.mit.edu/thies/6.046-web/master.pdf

https://blog.csdn.net/lanchunhui/article/details/52451362

 

这里写图片描述

The Time complexity for KNN is O(N*D). N is the size of the training size and D is the dimension of the data.

1. Choose specific training sample from the training data set such as clustering

2. Approximate KNN algorithm, will lose the accuracy!

https://www.cs.umd.edu/~mount/ANN/

 

3. K-D tree search for low dimension data set

</

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值