Aldaghmani Fahad

From Norsemathology
Revision as of 00:22, 9 December 2016 by ALDAGHMANF1 (talk | contribs) (→‎How to Run)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This program cover Binary search trees for six buttons Insert, Delete, Inorder, Preorder, Postorder, and Breadth-First. The tree traversal buttons: The Inorder, Preorder, Postorder, and Breadth-first buttons each display a message that will list the tree elements.

                             2.jpg



Insert Button

60,50,45,55,35,48,53,58,20,40,49,90,70,100,75,65,95,120,59,54

           3.jpg

Delete Button

This is how the element will be deleting the root from the tree and the easy way to do that is to move one step to the left after that it will go to the right as much as it can.

     4.jpg

This is how it looks after deleting the element number 60 .

     5.jpg

Inorder Travesal

     6.jpg



Preoder Travesal

       7.jpg



Postorder Travesal

     8.jpg




Breadth-First Travesal

     9.jpg




Code

BST

BSTAnimation

BTView

Tree


How to Run

1- You can run the code with any Java compiler.
2- For people who do not want to look at the code I create an application called "BST.exe" so, that you can run the program without looking at the code: 

This is how it look

10.jpg

If your computer does not have Java program or have old Version

The file require you to have a java runtime 1.8.0

11.jpg

After when you click "OK" it will take you to the java website to download the program

12.jpg




Download Files

Project File


Program "Running the Code without compiler"



Contact Me

E-mail: aldaghmanf1@nku.edu

Feel free to Emile me if you have any question.