![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
pingzishinee
这个作者很懒,什么都没留下…
展开
-
hashMap
起源一道编程题,如下: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may no...原创 2018-03-07 19:54:35 · 117 阅读 · 0 评论 -
K-means算法原理、代码实现,优缺点及改进
k-Means是一种无监督的聚类算法,实现起来比较简单,聚类效果也不错,因此被广泛应用。原理物以类聚,人以群分。无监督 聚类。简单地说,就是把相似的物体聚到一个簇。同一簇内相似度尽可能大,不同簇间相似度尽可能低。采用距离度量相似程度。算法1、初始化k个中心点,有了k个簇2、对所有样本,计算每个样本与k个中心点的距离,将各样本划分到距离最近的中心点所在的簇3、重新计算各簇的中心:为各...原创 2019-02-26 11:20:31 · 2891 阅读 · 3 评论