Skip to content

KamTheCreator/Binary-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published