Ball tree
In computer science, a ball tree, balltree or metric tree, is a space partitioning data structure for organizing points in a multi-dimensional space.[src] A ball tree partitions data points into a nested set of balls.[src] The resulting data structure has characteristics that make it useful for a number of applications, most notably nearest neighbor search.[src]
In computer science, a ball tree, balltree or metric tree, is a space partitioning data structure for organizing points in a multi-dimensional space.[src] A ball tree partitions data points into a nested set of balls.[src] The resulting data structure has characteristics that make it useful for a number of applications, most notably nearest neighbor search.[src] D^{B}(t) = \begin{cases} \max(|t - \textit{B.pivot}| - \textit{B.radius}, D^\textit{B.parent}), & \text{if }B \neq Root \\ \max(|t - \textit{B.pivot}| - \textit{B.radius}, 0), & \text{if }B = Root \\ \end{cases} Where D^{B}(t) is the minimum possible distance from any point in the ball to some point .[src] Ball-trees are related to the M-tree, but only support binary splits, whereas in the M-tree each level splits m to 2m fold, thus leading to a shallower tree structure, therefore need fewer distance computations, which usually yields faster queries.[src] Furthermore, M-trees can better be stored on disk, which is organized in pages.[src] The M-tree also keeps the distances from the parent node precomputed to speed up queries.[src] Vantage-point trees are also similar, but they binary split into one ball, and the remaining data, instead of using two balls.[src] B.pivot := p B.child1 := construct_balltree(L), B.child2 := construct_balltree(R), let B.radius be maximum distance from p among children return B end if end function ==References==[src]
12 sentences · 12 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Ball tree." encyclopegia.org, 2026, https://encyclopegia.org/wiki/ball-tree. Accessed 25 November 2026.
Chicago
"Ball tree." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/ball-tree.
APA
encyclopegia.org. (2026). Ball tree. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/ball-tree
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON