gpt4 book ai didi

algorithm - Cure算法的缺点

转载 作者:塔克拉玛干 更新时间:2023-11-03 04:56:46 25 4
gpt4 key购买 nike

找了很多都没有找到Cure算法的缺点。 Cure聚类算法有什么局限性吗?

谢谢

最佳答案

Wikipedia Article 中获取此解释关于治愈算法

简短的回答是运行时复杂性

  • 运行时间为 O(n^2 log(n))
  • 空间复杂度为 O(n)

对于数据库应用程序,这是一个相当高的运行时复杂度,因此您可能无法将其直接应用于大型数据库

根据维基百科,可以使用以下方法缓解此限制

  • Random sampling : random sampling supports large data sets. Generally the random sample fits in main memory. The random sampling involves a trade off between accuracy and efficiency.
  • Partitioning : The basic idea is to partition the sample space into p partitions. Each partition contains n/p elements. The first pass partially clusters each partition until the final number of clusters reduces to n/pq for some constant q ≥ 1. A second clustering pass on n/q partially clusters partitions. For the second pass only the representative points are stored since the merge procedure only requires representative points of previous clusters before computing the representative points for the merged cluster. Partitioning the input reduces the execution times.
  • Labeling data on disk : Given only representative points for k clusters, the remaining data points are also assigned to the clusters. For this a fraction of randomly selected representative points for each of the k clusters is chosen and data point is assigned to the cluster containing the representative point closest to it.

关于algorithm - Cure算法的缺点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44313576/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com