Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 600 Bytes

File metadata and controls

20 lines (11 loc) · 600 Bytes

genericTree

A generic tree implementation in Java aimed to provide as many different tree implementations as possible.

Usage

Create a class that implements the INodeValue interface. Implement the compareTo method to compare values the desired way. See the benchmark folder for a working example.

Available Trees

###Binary Tree The tree will insert values with a maximum children count of two. The value inserted first act as pivot point for the rest of the values. Lesser values are placed in the left branch, greater values in the right branch.