York University ITEC 2620 Assignment 2: Binary Search Tree in Java
VerifiedAdded on  2023/01/17
|13
|706
|64
Practical Assignment
AI Summary
This document presents a complete Java implementation of a Binary Search Tree (BST) as a solution to an assignment for York University's ITEC 2620 course. The code includes the essential methods for BST functionality, such as inserting and deleting nodes, and a method called oneChildMax to determine a specific property of the tree. The provided code includes the BST.java file which defines the class BST, implementing the insert and delete methods, along with the oneChildMax method to check for nodes having at most one child. The code also defines the BSTNode class and the Tree interface. The implementation adheres to the assignment's requirements, providing a functional and well-structured solution. The included code provides a practical example for students studying data structures and algorithms, specifically binary search trees.
1 out of 13