Skip to content

Shabhareash/TreeViz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Structures Visualizer

A Java-based application that demonstrates and visualizes fundamental data structures and graph traversal algorithms. This project provides an interactive way to understand how Binary Search Trees (BST), AVL Trees, Breadth-First Search (BFS), and Depth-First Search (DFS) work.

Features

Binary Search Tree (BST) Visualization

  • Insert nodes into a BST
  • Visual representation of tree structure
  • Demonstrates BST insertion behavior
  • Helps understand node placement and traversal

AVL Tree Visualization

  • Self-balancing binary search tree implementation
  • Automatic tree rotations
  • Visualization of balancing operations
  • Demonstrates AVL insertion and height balancing

Graph Traversal Algorithms

Breadth-First Search (BFS)

  • Level-by-level graph traversal
  • Queue-based implementation
  • Step-by-step traversal demonstration

Depth-First Search (DFS)

  • Recursive graph traversal
  • Explores nodes as deeply as possible before backtracking
  • Useful for understanding graph exploration techniques

Project Structure

.
├── MainApp.java            # Main application entry point
├── BSTVisualizer.java      # Binary Search Tree visualization
├── AVLTreeVisualizer.java  # AVL Tree visualization
└── bfs_dfs.java            # BFS and DFS implementations

Requirements

  • Java JDK 8 or higher
  • Any Java IDE (IntelliJ IDEA, Eclipse, NetBeans, VS Code)

Compilation

Compile all Java files:

javac *.java

Running the Application

Run the main application:

java MainApp

Concepts Covered

  • Binary Search Trees
  • AVL Trees
  • Tree Rotations
  • Tree Traversals
  • Graph Theory
  • Breadth-First Search (BFS)
  • Depth-First Search (DFS)
  • Data Structure Visualization

Educational Purpose

This project was developed to help students and beginners understand the internal working of tree data structures and graph traversal algorithms through visualization and interactive execution.

Author

Shabhareash


Feel free to contribute, improve visualizations, or extend the project with additional data structures and algorithms.

About

A repository that contsin java programs for Tree(ADT) visualization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages