开发者

Multi key balanced trees

开发者 https://www.devze.com 2023-04-06 12:27 出处:网络
I am looking for a data structures that is like an AVL tree but with multiple keys. I want a balanced tree to prevent skewing average lookup time. I have a situation where a node can have multiple k

I am looking for a data structures that is like an AVL tree but with multiple keys.

I want a balanced tree to prevent skewing average lookup time. I have a situation where a node can have multiple keys so I want to specify one of the keys for lookup and wildcard the other.

Before, thinking of making a composite key based on the other keys, I want to c开发者_JAVA百科heck out if there are other ways to do it.

Any papers, suggestions?

Thanks in advance


A kd tree is useful when the number of dimensions is <= 5 (around). As dimensions increase, it gets less efficient.


Update: Mostly a k-d tree or R-Tree should do the job.

Cheers

0

精彩评论

暂无评论...
验证码 换一张
取 消