Skip to content

Implement C++ Backend for Cocktail Sort #679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
arvinder004 opened this issue Apr 8, 2025 · 0 comments · May be fixed by #680
Open

Implement C++ Backend for Cocktail Sort #679

arvinder004 opened this issue Apr 8, 2025 · 0 comments · May be fixed by #680

Comments

@arvinder004
Copy link
Contributor

This issue proposes adding a C++ backend for the Cocktail Sort algorithm (also known as Bidirectional Bubble Sort or Shaker Sort) to the pydatastructs library. Cocktail Sort is a comparison-based sorting algorithm that improves upon Bubble Sort by sorting an array or list in both directions—forward (left to right) and backward (right to left)—in alternating passes. This bidirectional approach reduces the number of passes needed for already partially sorted data, making it more efficient in certain cases.

@arvinder004 arvinder004 linked a pull request Apr 8, 2025 that will close this issue
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 a pull request may close this issue.

1 participant