简体   繁体   English

用于四叉树风格的完整n-ary树的Java库

[英]Java library for full n-ary trees in the style of quadtrees

I'm looking for a Java library to manipulate full n-ary trees in the style of quadtrees. 我正在寻找一个Java库来操作四叉树风格的完整n-ary树。 Actually, i just need it for n=9, but i reckon the extra generality is worthwhile for others. 实际上,我只需要n = 9,但我认为额外的普遍性对其他人来说是值得的。 It's for a GIS i'm developing wherein 2D regions are partitioned into elements on a 3^kx 3^k grid (instead of a 2^kx 2^k grid when using quadtrees). 这是我正在开发的GIS,其中2D区域被划分为3 ^ kx 3 ^ k网格上的元素(而不是使用四叉树时的2 ^ kx 2 ^ k网格)。 In particular, i'd like the library to have efficient methods for adding nodes, traversing the tree, and doing range searches. 特别是,我希望库能够有效地添加节点,遍历树和进行范围搜索。 Do you know of such a library? 你知道这样的图书馆吗?

I couldn't find one in my Google searches, but i want to double check with you all for its existence before making my own. 我在Google搜索中找不到一个,但我想在制作自己的搜索之前仔细检查一下它的存在。

Thanks. 谢谢。

您可能想要查找KD Tree实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM