Skip to content

Latest commit

 

History

History
72 lines (62 loc) · 3.3 KB

README.md

File metadata and controls

72 lines (62 loc) · 3.3 KB

Binary Search Tree Visualization

maintainer jdk version release contributor

Table of contents

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

Download

Execution

  • Open CMD or terminal where you put BSTVisualization.java file.
  • First compile the java file using this command.
     > javac BSTVisualization.java
  • After compilation run the file using JVM using this command.
     > 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

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

  • 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
    2. Element Not Available Error Element Not Available Error