Search 向VP树添加元素(VP树维护)
我在VP树上读了一些关于相似性knn的资料。 没有人写过向exists树添加元素的事,这是维护所必需的。 添加元素的说明将非常好。Search 向VP树添加元素(VP树维护),search,tree,binary-search-tree,similarity,approximate-nn-searching,Search,Tree,Binary Search Tree,Similarity,Approximate Nn Searching,我在VP树上读了一些关于相似性knn的资料。 没有人写过向exists树添加元素的事,这是维护所必需的。 添加元素的说明将非常好。add add public boolean add(E point) Adds a single point to this vp-tree. Addition of a point executes in O(log n) time in the best case (where n is the number of points in the tree),
add
add
public boolean add(E point)
Adds a single point to this vp-tree. Addition of a point executes in O(log n) time in the best case (where n is the number of points in the tree), but may also trigger a node partition that takes additional time.
Specified by:
add in interface Collection<E extends GeospatialPoint>
Parameters:
point - the point to add to this tree
Returns:
true if the tree was modified by the addition of this point; vp-trees are always modified by adding points, so this method always returns true
addAll
public boolean addAll(Collection<? extends E> points)
Adds all of the points in the given collection to this vp-tree.
Specified by:
addAll in interface Collection<E extends GeospatialPoint>
Parameters:
points - the points to add to this tree
Returns:
true if the tree was modified by the addition of the points; vp-trees are always modified by adding points, so this method always returns true
公共布尔加法(E点)
将单个点添加到此vp树。在最佳情况下(其中n是树中的点数),添加一个点以O(logn)时间执行,但也可能触发需要额外时间的节点分区。
指定人:
外接程序接口集合
参数:
点-要添加到此树的点
返回:
如果通过添加此点修改了树,则为true;vp树始终通过添加点进行修改,因此此方法始终返回true
阿道尔
公共布尔addAll(collectionary)你是想说点什么来获得答案,还是我应该删除它?