Spaces:
Runtime error

File size: 817 Bytes
cf69cfa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Binary Search Tree Visualizer (Trees)

A Flask-based web application to demonstrate the **Binary Search Tree (BST)** data structure.  
Users can insert nodes and see the tree grow interactively, with parent-child relationships displayed visually.

---

## 🚀 Features
- Insert nodes into the BST
- Visualize the tree structure dynamically
- Show parent-child relationships with edges
- Display sorted order using inorder traversal
- Real-world analogy: file systems, organizational hierarchies

---

## 📂 Project Structure
- `app.py` → Flask backend logic
- `templates/` → HTML templates (`tree.html`)

---

## ⚙️ Installation
1. Clone the repository:
   ```bash
   git clone https://github.com/Swetha-ks/bst-visualizer.git
2. pip install -r requirements.txt
3. python app.py
4. http://127.0.0.1:5000