Package io.openml.gearbox.binarytree
package io.openml.gearbox.binarytree
-
ClassDescriptionAn abstract
Visitor
that performs a non-recursive (iterative) in-order traversal of a binary tree.An abstractVisitor
that performs an iterative post-order traversal (Left, Right, Root).An abstractVisitor
that performs an iterative pre-order traversal (Root, Left, Right).Binary tree gearbox that can be used practically.Serializes and deserializes a binary search tree.ImmutableTreeNode
encapsulates the value, left tree reference, and right tree reference in an immutable state; it also represents a concrete 'Element', i.e.MutableTreeNode
saves the memory footprint ofTreeNode
and is suitable for the performance intensive application.TreeGraph<T>TreeGraph
is a view on top of a binary tree and maps each tree node to its neighbors, including parent and left&right children.TreeNode<T>An interface representing a node in a binary tree.A class responsible for the traversal logic, separated from theVisitor
.Visitable<T>Represents the 'Element' participant in the Visitor pattern.Visitor<T>Represents the 'Visitor' participant in the Visitor pattern.