A web-based Segment Tree Visualizer that helps users understand how segment trees are built and queried. It allows users to input an array, construct the tree, perform range queries, and update values interactively.
- π Tree Visualization: Graphical representation of the segment tree.
- ποΈ User Interaction: Build trees, query ranges, and update values dynamically.
- π¨ Improved Layout: Optimized node spacing for better readability.
- π Dark Theme: Aesthetic dark-themed interface.
- Enter an array in the input field (comma-separated).
- Select an operation (Sum, Min, Max, OR, AND, XOR).
- Click "Build Tree" to visualize the segment tree.
- Query a range to get computed results.
- Update a value and see real-time changes.
Clone this repository and open index.html
in your browser.
# Clone the repository
git clone https://github.com/lazy-abhay/SG-Tree-Visualizer.git
# Navigate to the project directory
cd SG-Tree-Visualizer
# Open index.html in a browser (For Windows)
start index.html
# OR (For macOS)
open index.html
# OR (For Linux)
xdg-open index.html
Fork the repo π΄
Create a new branch π
Commit your changes π―
Open a Pull Request π¬
If you like this project, drop a star β on GitHub!