An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

Binary Search Tree Visualization



maintainer


jdk version


release

contributor

## 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.

![Add in BST](https://user-images.githubusercontent.com/55116730/102015789-a6009c00-3d83-11eb-8ae9-bf47b3fd6c67.gif "Adding Element in BST")

### 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.

![Delete in BST](https://user-images.githubusercontent.com/55116730/102015791-a9942300-3d83-11eb-9c0f-4befc0288583.gif)
- If entered element is no present or Binary Search Tree is empty then it throws an popup window.
1. BST Empty Error
![BST Empty Error](https://user-images.githubusercontent.com/55116730/102014950-9b8fd380-3d7e-11eb-845b-9ff621e5c559.jpg "BST Empty Error")
2. Element Not Available Error
![Element Not Available Error](https://user-images.githubusercontent.com/55116730/102014949-9a5ea680-3d7e-11eb-9288-d9d3bc018ba8.jpg "Element Not Available Error")