Skip to content

Conversation

@harshthakur3
Copy link
Contributor

Here's a properly formatted pull request description for your QuickSort implementation:


Description

Implemented QuickSort Visualizer with interactive step-by-step animation showing the divide-and-conquer sorting algorithm.

Features Added:

  • ✅ Visual representation of QuickSort algorithm with array bars
  • ✅ Color-coded visualization:
    • 🟡 Yellow: Pivot element
    • 🔵 Blue: Elements being compared
    • 🟢 Green: Elements in correct position
    • ⚪ White: Unsorted elements
  • ✅ Interactive controls:
    • Adjustable array size (5-100 elements)
    • Variable animation speed (10ms - 1000ms)
    • Generate new random array
    • Start/Reset functionality
  • ✅ Real-time statistics display:
    • Current algorithm state
  • ✅ Responsive design with Tailwind CSS
  • ✅ Step-by-step explanation panel showing partition process

Implementation Details:

  • Created QuickSort.jsx page component
  • Implemented quickSortAlgorithm.js with generator function for visualization steps
  • Added visual feedback for pivot selection and partitioning
  • Optimized rendering performance for smooth animations

Screenshots:

QuickSort Visualizer

Semver Changes

  • Minor (new features, no breaking changes)

Issues

Closes #[issue_number] - Add QuickSort Visualizer


Checklist

  • I have read the Contributing Guidelines
  • My code follows the project's coding style
  • I have tested the visualizer with different array sizes and speeds
  • The component is responsive and works on different screen sizes
  • All controls (speed, array size, generate, start, reset) work as expected
  • Color coding accurately represents algorithm states
  • Statistics (comparisons, swaps) are accurately tracked and displayed

Note: This implementation follows the same pattern as existing algorithm visualizers in the project for consistency.

@adityacosmos24 adityacosmos24 merged commit 79503b2 into OPCODE-Open-Spring-Fest:main Oct 15, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants