Skip to content

Latest commit

 

History

History
52 lines (46 loc) · 1.7 KB

README.md

File metadata and controls

52 lines (46 loc) · 1.7 KB

Binary Tree Visualization

Visualize binary trees with this interactive web application powered by p5.js.

# Introduction<

This project is a binary tree visualization tool that allows users to interactively explore and manipulate binary tree structures. It uses p5.js for rendering and comes with a set of controls for easy navigation.

Features

  1. Visualize binary tree structures.
  2. Clear the tree or perform quick/slow fills.
  3. Add, search, and delete nodes.
  4. Adjustable animation speed.

# Getting Started

Prerequisites

Before you begin, ensure you have the following installed:
  • p5.js: A JavaScript library for creative coding.

Installation

  1. Clone the repository:

    bash Copy code git clone https://github.com/your-username/binary-tree-visualization.git .

  2. Open the index.html file in your preferred web browser

Usage

  1. Open the index.html file in a web browser.
  2. Use the provided buttons to interact with the binary tree.
  3. Adjust the animation speed with the slider.

Controls

  • Clear: Clear the tree.
  • Quick Fill: Quickly fill the tree with nodes.
  • Fill: Fill the tree with nodes at a slower pace.
  • Add: Add a node to the tree.
  • Search: Search for a node in the tree.
  • Delete: Delete a node from the tree.
  • Speed Slider: Adjust the animation speed.

Contributing

Contributions are welcome! Please follow the contribution guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.