Skip to content

πŸ’‘ [Feature]: Add Quick Sort VisualizerΒ #1274

@ruhelamahi7-code

Description

@ruhelamahi7-code

❓ Problem Statement

Currently, the project only includes a Bubble Sort Visualizer
for teaching/demonstrating sorting algorithms. Quick Sort is
one of the most important and widely asked sorting algorithms,
but there's no interactive way for users to visualize how it
works within this project.

πŸš€ Proposed Enhancement

Add a Quick Sort Visualizer project following the same
UI/UX pattern as the existing Bubble Sort Visualizer, so users
can interactively see how Quick Sort partitions and sorts
an array step by step.

πŸ› οΈ Suggested Implementation

  • Reuse the existing UI structure (input field, speed slider,
    animated bar chart, stats row, result display)
  • Highlight the pivot element in a distinct color during
    partitioning
  • Use different colors for: Pivot / Comparing / Swapping / Sorted
  • Track and display comparisons and swaps count, similar to
    Bubble Sort Visualizer
  • Add a new file web-app/js/projects/quick-sort.js with:
    • getQuickSortHTML() β€” UI template
    • initQuickSort() β€” sorting logic + animation
  • Register the new project in web-app/js/projects.js:
    • Add to getProjectHTML() map
    • Add to initializers map

  • I am a registered GSSoC 2026 contributor.
  • I would like to implement this feature myself.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions