近似最近邻搜索程序代码 ANN: A Library for Approximate Nearest Neighbor Searching

ANN: A Library for
Approximate Nearest Neighbor Searching
David M. Mount and Sunil Arya
Version 1.1.2
Release Date: Jan 27, 2010
近似最近邻搜索程序代码 ANN: A Library for Approximate Nearest Neighbor Searching_第1张图片
What is ANN?
ANN is a library written in C++, which supports data structures and algorithms for both exact and approximate nearest neighbor searching in arbitrarily high dimensions.

In the nearest neighbor problem a set of data points in d-dimensional space is given. These points are preprocessed into a data structure, so that given any query point q, the nearest or generally k nearest points of P to q can be reported efficiently. The distance between two points can be defined in many ways. ANN assumes that distances are measured using any class of distance functions called Minkowski metrics. These include the well known Euclidean distance, Manhattan distance, and max distance.

Based on our own experience, ANN performs quite efficiently for point sets ranging in size from thousands to hundreds of thousands, and in dimensions as high as 20. (For applications in significantly higher dimensions, the results are rather spotty, but you might try it anyway.)

The library implements a number of different data structures, based on kd-trees and box-decomposition trees, and employs a couple of different search strategies.

The library also comes with test programs for measuring the quality of performance of ANN on any particular data sets, as well as programs for visualizing the structure of the geometric data structures.

Why approximate nearest neighbors?
Computing exact nearest neighbors in dimensions much higher than 8 seems to be a very difficult task. Few methods seem to be significantly better than a brute-force computation of all distances. However, it has been shown that by computing nearest neighbors approximately, it is possible to achieve significantly faster running times (on the order of 10's to 100's) often with a relatively small actual errors. ANN allows the user to specify a maximum approximation error bound, thus allowing the user to control the tradeoff between accuracy and running time.
Conditions of Use
As of Version 1.0, ANN is distributed under the terms of the GNU Lesser Public License. Please also check out the Copyright Notice andLicense Terms.

The University of Maryland and the authors make no representations about the suitability or fitness of this software for any purpose. It is provided "as is" without express or implied warranty.

 
System Requirements
Compiling ANN requires an ANSI C++ compiler. It has been successfully compiled and run on a number of platforms, including Sun workstations running SunOS 5.x (Solaris) and Linux 2.x platforms using the g++ compiler, and under Microsoft Windows using VisualStudio 2005 (Version 8.0) and Visual C++ 2005.
How can I get ANN?
The latest version of ANN can be downloaded here. The changes in version 1.1.2 are very minor, and primarily involve fixing compilation errors with modern C++ compilers. See ReadMe.txt for more information.
  • ANN Version 1.1.2 (Release date: Jan 27, 2010)
    • ann_1.1.2.zip: Complete source code and documentation in zip format. (617K)
    • ann_1.1.2.tar.gz: Same contents as ann_1.1.2.zip, but in tar.gz format. (590K)
    • ANN Programming Manual (pdf) and documentation source files.
    • ReadMe.txt: Text file containing general information about the library.
  • ANN Version 1.1.2: Precompiled files for for users of Microsoft Windows XP. Contains precompiled library (.dll and .lib), include files, and executables needed for using ANN.
    • ann_1.1.2_MS_Win32_bin.zip: In zip format. (556K)
    • ann_1.1.2_MS_Win32_bin.tar.gz: Same contents as ann_1.1.2_MS_Win32_bin.zip, but in tar.gz format. (560K)

Older versions of ANN are also available, but not supported.

  • ANN Version 1.1.1 (Release date: 08/04/06)
    • ann_1.1.1.tar.gz: Complete source code and documentation. (588K)
    • ann_1.1.1_MS_Win32_bin.tar.gz. (225K)
  • ANN Version 1.1 (Release date: 05/03/05)
    • ann_1.1.tar.gz: Complete source code and documentation. (588K)
    • ann_1.1_MS_Win32_bin.tar.gz. (222K)
  • ANN Version 1.0 (Release date: 04/01/05)
    • ann_1.0.tar.gz. (550K)
    • ann_1.0_MS_Win32_bin.tar.gz. (150K)
  • ANN Version 0.2 (Release date: 06/24/98)
    • ann_0.2.tar.gz. (166K)
  • ANN Version 0.1 (Release date: 03/04/98)
    • ann_0.1.tar.gz. (165K)
Questions/Comments?
If you have questions or comments, please email them to Dave Mount: [email protected].
 
Acknowledgments
We would like to thank the numerous user's of ANN who have made contributions in the form of suggestions, makefile entries, and finding bugs (and waited so patiently for this release). We would also like to acknowledge the support of the NSF under grants CCR-9712379 and CCR-0098151.

Back to Dave Mount's home page.

Last updated on Jan 28, 2010.


from: http://www.cs.umd.edu/~mount/ANN/

你可能感兴趣的:(近似最近邻,程序,代码,ANN,搜索,Codes/Projects)