https://github.com/welding-torch/binary-search-tree-visualiser
https://github.com/welding-torch/binary-search-tree-visualiser
binary-search-tree binary-tree data-structures java visualization
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/welding-torch/binary-search-tree-visualiser
- Owner: Welding-Torch
- Created: 2022-11-02T09:24:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T17:30:31.000Z (about 3 years ago)
- Last Synced: 2024-12-27T15:28:22.931Z (over 1 year ago)
- Topics: binary-search-tree, binary-tree, data-structures, java, visualization
- Language: Java
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Binary Search Tree Visualization
## Table of contents
* [Introduction](#introduction)
* [Prerequisite](#prerequisite)
* [Download](#download)
* [Execution](#execution)
* [Explanation](#explanation)
* [Adding element in BST](#adding-element-in-binary-search-tree)
* [Deleting Element from BST](#deleting-element-from-binary-search-tree)
## Introduction
- Hey there, welcome to **BST Visualization** repository. In this repository you see how operations in **Binary Search Tree** Data Structure like "Delete" and "Add" actually works and how BST is construct in visually.
- Currently this program accept only Integer inputs.
- **"Suggestions are welcome"**, put your suggestions in issue.
## Prerequisite
- For run **BST Vitalization** in you system you want to install some softwares.
- [Java JDK ](https://www.oracle.com/in/java/technologies/javase-downloads.html "Java JDK")
- IDE or Language editor
- [Sublime Text](https://www.sublimetext.com/ "Sublime Text")
- [NetBeans](https://netbeans.org/ "NetBeans IDE")
- [Atom](https://atom.io/ "Atom")
- [Notepad++](https://notepad-plus-plus.org/downloads/ "Notepad++")
## Download
- Download .jar file form [Latest Releases](https://github.com/Welding-Torch/Binary-Search-Tree-Visualiser/blob/main/BSTVisualization.java "Download")
- **Note**: For run this .jar file you want to complete [Prerequisite](#prerequisite) firsts.
## Execution
- Open CMD or terminal where you put BSTVisualization.java file.
- First compile the java file using this command.
```cmd
> javac BSTVisualization.java
```
- After compilation run the file using JVM using this command.
```cmd
> java BSTVisualization
```
## Explanation
### Adding Element in Binary Search Tree
- We can add element in BST using two ways.
1. With using **"Add"** button.
2. With pressing **"A"** or **"a"** or **"Enter"** key in keyboard.

### Deleting Element from Binary Search Tree
- We can also delete element in BST using two ways.
1. With using **"Delete"** button.
2. With pressing **"D"** or **"d"** key in keyboard.

- If entered element is no present or Binary Search Tree is empty then it throws an popup window.
1. BST Empty Error

2. Element Not Available Error
