Skip to content

Feature Request: Add Step-by-Step Visualization for Each Algorithm #2

@wellcomemayhem-spec

Description

@wellcomemayhem-spec

Overview

I would like to propose a feature enhancement that provides a step-by-step visualization for each of the sorting algorithms. While the current visualization is great, having the ability to step through the sorting process one step at a time would significantly aid in understanding how each algorithm works.

Suggested Implementation

  1. Step-By-Step Control: Add a button to toggle between 'Play' mode (as it currently is) and 'Step' mode. In Step mode, the algorithm would only advance by one step per button press.
  2. Highlighting Changes: For each step, visually highlight the elements being compared and those being swapped to help users focus on the specific operations of the algorithm.
  3. Pseudocode Display: Optionally, show the corresponding line of pseudocode related to the current step being visualized, enhancing educational value.

Benefits

  • Improves educational value by allowing users to grasp the algorithms better.
  • Allows users to control the pace of the learning experience, making it more flexible.

This feature could be especially beneficial for users who are new to sorting algorithms or computer science concepts in general. Thank you for considering this suggestion!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions