# CSC508: Define your own Binary Search Tree (BST) data structure using Linked List: Data Structure Assignment, UiTM, Malaysia

 University Universiti Teknologi MARA (UiTM) Subject CSC508: Data Structure

QUESTION

1. Define your own Binary Search Tree (BST) data structure using Linked List You can name your BST as MyBST.

2. Define methods in the BST to perform the following operations :
a. Determine whether the BST is empty
b. Insert an item in the BST.
c. Traverse the BST (preorder, inorder, postorder)
d. Calculate the height of the BST
e. Calculate the number of nodes in the BST
f. Calculate the number of leaves in the BST
g. Calculate the minimum/maximum value in the BST
h. Calculate the total/average value in the BST

3. Write the application class which contains main() to declare object but from class MyBST.

4. Ask the user to enter at least 20 numbers into the BST.
5. Call the following methods (c – h) from main() and display the results accordingly.

Online Exam & Assignment Writing Services

11770+ Orders Delivered

4.9/5
5 Star Rating

Confidential & Secure Assignment Help For

Group Assignment Help

Online Exam -Test & Quiz

Cheapest Price Quote

Diploma & Certificate Levels

Semester & FYP Papers

Summative & Individual

GBA & Reflective

Last Minute Assistance

##### ASC303 Financial Mathematics Assignment Sample UiTM Malaysia
ASC303 Financial Mathematics is a very important course that all finance students should take. The course covers various financial topics, including the time value of money, annuities, mortgages, and loan…
Mathematics
##### BSR453 Building Design UITM Assignment Sample Malaysia
BSR453 Building Design course is the perfect way to gain a deeper understanding of the building design process. This course focuses on the underlying principles and theories of designing for…
Engineering

UP TO 15 % DISCOUNT

Instant Paper Writing Services by Native Malaysia Writers

Plagiarism Free Solutions
100% Original Work
24*7 Online Assistance
Native PhD Experts
Hire a Writer Now