Skip to content

adhavshruti12/Algorithm-visualizer

Repository files navigation

Algorithm Visualizer

Algorithm Visualizer is a web application for visualizing various algorithms including sorting, queue, and stack algorithms. This tool helps users understand the inner workings of these algorithms through interactive visual representations.

Table of Contents

Features

  • Interactive Visualization: Step-by-step execution of algorithms.
  • Step-by-Step Execution: Follow the execution of each algorithm with detailed step-by-step explanations.
  • Queue and Stack Algorithms: Learn about operations on queues and stacks.
  • Custom Input: Users can input their own data to see how algorithms handle specific cases.
  • Visual Representation: Watch as elements are pushed onto and popped off the stack, with visual cues for better understanding..

Installation

To run Algorithm Visualizer locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/yourusername/algorithm-visualizer.git
    cd algorithm-visualizer
  2. Install dependencies:
    npm install
  3. Start the development server:
    npm start
  4. Open your browser and navigate to:
    http://localhost:3000
    

Usage

  • Select Algorithm: Choose the algorithm you want to visualize from the dropdown menu.
  • Set Parameters: Adjust parameters such as stack size, input values, and algorithm speed.
  • Run: Start the visualization to see the algorithm in action.
  • Step Through: If desired, step through the algorithm one operation at a time for a more detailed understanding.
  • Reset: Reset the visualization to its initial state to try different inputs or algorithms.

Supported Algorithms

Queue Algorithm

  • Enqueue
  • Dequeue

Stack Algorithms

  • Push
  • Pop

Contributing

We welcome contributions to the Algorithm Visualizer ! If you have ideas for new features, algorithms, or improvements, please submit a pull request on our GitHub repository:

  1. Fork the repository.
  2. Create a new branch:

License

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

Contact

If you have any questions, feel free to contact us at:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published