Spaces:
Sleeping

Dsa-hub / Trees /README.md
swetha-coding's picture
Added Flask DSA Hub project files
e7f8493
|
Raw History Blame Contribute Delete
817 Bytes

A newer version of the Gradio SDK is available: 6.33.0

Upgrade

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:
    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