Looking for Java libraries that implement binary trees [closed]

Is there a Java library that can use binary trees? I don't expect to test and implement myself

Solution

The Java standard API contains only libraries that are generally useful and extraordinary A basic tree is a trivial implementation:

class BinaryTree {
    BinaryTree left;
    BinaryTree right;
    Object value;
}

Nontrivial trees are not universally useful: they need to be part of the application data model, better modeled using domain specific classes (components have a list of subcomponents), or used as a concrete algorithm Algorithms usually require specific structures from nodes (for example, the color or weight of nodes required to maintain tree balance), so general tree nodes are almost meaningless

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>