[PR #1402] [CLOSED] feat: add stable selection sort algorithm #2000

Closed
opened 2026-01-29 15:27:19 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1402
Author: @kiranj26
Created: 6/24/2024
Status: Closed

Base: masterHead: stable-selection-sort


📝 Commits (2)

  • 3d66262 feat: add stable selection sort algorithm
  • 4e94f73 fix: Move test cases out of main function in stable selection sort

📊 Changes

1 file changed (+182 additions, -0 deletions)

View changed files

sorting/stable_selection_sort.c (+182 -0)

📄 Description

Add Stable Selection Sort Algorithm

Description of Change

This pull request adds a stable selection sort algorithm to the repository. The algorithm maintains the relative order of equal elements while sorting the array. It includes:

  • Implementation of stable selection sort.
  • Detailed documentation using Doxygen.
  • Multiple test cases to verify the algorithm.

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments are changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes

This implementation ensures that the relative order of equal elements is maintained, providing a stable sort.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/1402 **Author:** [@kiranj26](https://github.com/kiranj26) **Created:** 6/24/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `stable-selection-sort` --- ### 📝 Commits (2) - [`3d66262`](https://github.com/TheAlgorithms/C/commit/3d66262554593aede289e5e0bc9da4172e61ef3c) feat: add stable selection sort algorithm - [`4e94f73`](https://github.com/TheAlgorithms/C/commit/4e94f739be9fad796a282f8e366ee8353975f037) fix: Move test cases out of main function in stable selection sort ### 📊 Changes **1 file changed** (+182 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `sorting/stable_selection_sort.c` (+182 -0) </details> ### 📄 Description # Add Stable Selection Sort Algorithm ## Description of Change This pull request adds a stable selection sort algorithm to the repository. The algorithm maintains the relative order of equal elements while sorting the array. It includes: - Implementation of stable selection sort. - Detailed documentation using Doxygen. - Multiple test cases to verify the algorithm. ## References - [Stable Selection Sort Algorithm](https://www.geeksforgeeks.org/stable-selection-sort/?ref=lbp) ## Checklist - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - [x] Relevant documentation/comments are changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. ## Notes This implementation ensures that the relative order of equal elements is maintained, providing a stable sort. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:27:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#2000