All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.berkeley.cs.jqf.examples.trees.RedBlackBSTNode Maven / Gradle / Ivy

package edu.berkeley.cs.jqf.examples.trees;

/**
 * Created by clemieux on 9/18/17.
 */
public class RedBlackBSTNode {

    public Key key;           // key
    public Value val;         // associated data
    public RedBlackBSTNode left, right;  // links to left and right subtrees
    public boolean color;     // color of parent link
    public int size;          // subtree count

    public RedBlackBSTNode(Key key, Value val, boolean color, int size) {
        this.key = key;
        this.val = val;
        this.color = color;
        this.size = size;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy