基于迭代主成分分析的哈希算法研究与实现
2018-09-29李志韩王洪亚
李志韩 王洪亚

摘 要:为了提高高维空间近邻搜索算法的查询性能,本文结合DSH算法和迭代PCA方法的优点提出迭代PCA哈希算法。该算法查询效果良好,充分利用数据集的分布信息、有严格的理论保证。该算法在达到相同精度的条件下较LSH算法和DSH算法查询花费时间少。该算法提供了一种解决近邻搜索问题有效方法。
关键词:近邻查找; 迭代PCA; 查询性能; 哈希算法
Abstract: In order to improve the query performance of the neighbor search algorithm, this paper combines the advantages of DSH algorithm and iterative PCA method to propose an iterative PCA hash algorithm. The algorithm has a strict theoretical guarantee and makes full use of the distribution information of the data set, therefore has a good query effect. Compared with the LSH algorithm and the DSH algorithm, this algorithm requires less query time to achieve the same accuracy. The algorithm provides an effective method to solve the neighbor search problem.
Key words: nearest neighbor search; iterative PCA; query performance; hash algorithm
引言
近邻搜索被广泛应用在信息检索、数据库、图像识别、数据挖掘以及机器学习等方面。特别是在当下的大数据时代,亿万级别的数据量等待着计算机来处理,因此能否提出一种近邻搜索的高效方法,在有限的时间和空间之内满足用户的近邻查询需求就显得尤为重要。
针对以上背景,本文提出迭代PCA哈希算法。介绍了迭代PCA哈希算法的基本思想;通过实验验证了迭代PCA哈希算法的实验效果优于DSH算法和LSH算法。
1 迭代PCA哈希算法
在近邻搜索研究领域,LSH算法[1]已经具有相当不错的查询效果。但LSH算法在维度升高时,查询效果下降明显。为了能更好地利用数据分布信息,学者们提出了不同的哈希学习近邻搜索算法,比如DSH算法[5]和迭代PCA方法[4]。本文结合DSH算法和迭代PCA方法的优点,提出了迭代PCA哈希算法,并运用python编程实现LSH算法、DSH算法、迭代PCA哈希算法,基于实验结果进而分析3种算法的查询效果。
1.1 基本思想
文献[5]提出的DSH算法实现简单,查询效果优于LSH算法。但DSH算法没有理论证明,对数据集只進行一次PCA,没能充分利用数据集的分布信息。……
