Skip to content

Includes the visualization steps for Shell Sort, following the same pattern as other sorts#7

Open
iamHarshithts wants to merge 2 commits intoWeCode-Community-Dev:mainfrom
iamHarshithts:dev_iamHarshithts/ShellSortAlgorithm
Open

Includes the visualization steps for Shell Sort, following the same pattern as other sorts#7
iamHarshithts wants to merge 2 commits intoWeCode-Community-Dev:mainfrom
iamHarshithts:dev_iamHarshithts/ShellSortAlgorithm

Conversation

@iamHarshithts
Copy link

Description

Demo

Screencast from 2026-01-07 22-25-12

This PR adds Shell Sort visualization to the sorting algorithms category, following the same pattern as existing sorts.

What's Added

  • Shell Sort algorithm with step-by-step visualization
  • Gap-based comparison animations
  • Consistent styling with other sorting algorithms
  • Works with existing size and speed controls

Algorithm Details

  • Time Complexity: O(n log n) to O(n²) depending on gap sequence
  • Space Complexity: O(1) - in-place sorting
  • Visualizes gap reduction and element comparisons at each step

Testing

Tested with various array sizes (5-100) and speed settings.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant