Index
All Classes and Interfaces|All Packages
B
- BinaryTree - Class in edu.neu.khoury.cs6510.f24.wp161
-
The BinaryTree class represents a binary tree, where each node has a left and right child.
- BinaryTree() - Constructor for class edu.neu.khoury.cs6510.f24.wp161.BinaryTree
-
Constructs an empty binary tree (i.e., a tree with no nodes).
- BinaryTree(Node) - Constructor for class edu.neu.khoury.cs6510.f24.wp161.BinaryTree
-
Constructs a binary tree with the specified root node.
E
- edu.neu.khoury.cs6510.f24.wp161 - package edu.neu.khoury.cs6510.f24.wp161
- equals(Object) - Method in class edu.neu.khoury.cs6510.f24.wp161.BinaryTree
- equals(Object) - Method in class edu.neu.khoury.cs6510.f24.wp161.Node
-
Compares this node to another object for equality.
G
- getLeft() - Method in class edu.neu.khoury.cs6510.f24.wp161.Node
-
Returns the left child of this node.
- getMaxDepth() - Method in class edu.neu.khoury.cs6510.f24.wp161.BinaryTree
-
Returns the maximum depth of the binary tree.
- getMaxValue() - Method in class edu.neu.khoury.cs6510.f24.wp161.BinaryTree
-
Returns the maximum value held in the binary tree.
- getRight() - Method in class edu.neu.khoury.cs6510.f24.wp161.Node
-
Returns the right child of this node.
- getRoot() - Method in class edu.neu.khoury.cs6510.f24.wp161.BinaryTree
-
Returns the root node of the binary tree.
- getValue() - Method in class edu.neu.khoury.cs6510.f24.wp161.Node
-
Returns the integer value stored in this node.
H
- hashCode() - Method in class edu.neu.khoury.cs6510.f24.wp161.BinaryTree
- hashCode() - Method in class edu.neu.khoury.cs6510.f24.wp161.Node
-
Returns a hash code value for this node.
I
- isBst() - Method in class edu.neu.khoury.cs6510.f24.wp161.BinaryTree
-
Checks if the binary tree is a binary search tree (BST).
- isLeaf() - Method in class edu.neu.khoury.cs6510.f24.wp161.Node
-
Determines if this node is a leaf node.
N
- Node - Class in edu.neu.khoury.cs6510.f24.wp161
-
The Node class represents a single node in a binary tree.
- Node(Integer) - Constructor for class edu.neu.khoury.cs6510.f24.wp161.Node
-
Constructs a new Node with a given integer value.
S
- setLeft(Node) - Method in class edu.neu.khoury.cs6510.f24.wp161.Node
-
Sets the left child of this node.
- setRight(Node) - Method in class edu.neu.khoury.cs6510.f24.wp161.Node
-
Sets the right child of this node.
- setValue(Integer) - Method in class edu.neu.khoury.cs6510.f24.wp161.Node
-
Sets the integer value of this node.
T
- toString() - Method in class edu.neu.khoury.cs6510.f24.wp161.Node
-
Returns a string representation of the node, including its value, left child, and right child.
All Classes and Interfaces|All Packages