https://github.com/amirallami-code/selection-sorting-algorithm
This project provides a visual and interactive implementation of the Selection Sort algorithm, designed to help users understand how this sorting method works in practice.
https://github.com/amirallami-code/selection-sorting-algorithm
algorithm algorithms selection-algorithm selection-sort-in-javascript sorting-algorithms
Last synced: 6 days ago
JSON representation
This project provides a visual and interactive implementation of the Selection Sort algorithm, designed to help users understand how this sorting method works in practice.
- Host: GitHub
- URL: https://github.com/amirallami-code/selection-sorting-algorithm
- Owner: amirallami-code
- License: mit
- Created: 2023-06-01T08:50:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-19T16:54:18.000Z (over 1 year ago)
- Last Synced: 2026-04-11T04:38:55.910Z (6 days ago)
- Topics: algorithm, algorithms, selection-algorithm, selection-sort-in-javascript, sorting-algorithms
- Language: JavaScript
- Homepage: https://selection-sorting-algorithm.vercel.app
- Size: 4.53 MB
- Stars: 35
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Selection Sort Algorithm

[](https://opensource.org/licenses/MIT)

[](https://github.com/amirallami-code/selection-sorting-algorithm/)


An interactive demonstration of the Selection Sort algorithm.
## Table of Contents
- [Overview](#overview)
- [What is Selection Sort?](#what-is-selection-sort)
- [Features](#features)
- [Demo](#demo)
- [Usage](#usage)
- [Installation](#installation)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)
- [References](#references)
## Overview
This project provides a visual and interactive implementation of the Selection Sort algorithm, designed to help users understand how this sorting method works in practice.
## What is Selection Sort?
Selection Sort is an in-place comparison-based algorithm that divides the input list into two parts:
1. A sorted portion on the left
2. An unsorted portion on the right
The algorithm repeatedly selects the smallest (or largest) element from the unsorted portion and moves it to the end of the sorted portion.
### Advantages
- Simple to understand and implement
- Performs well on small lists
- Requires no additional memory space
### Limitations
- Not suitable for large datasets due to O(n²) time complexity
## Features
- Interactive sorting visualization
- Custom number input
- Step-by-step sorting process
- Before and after comparison
## Demo
Experience the algorithm in action: [Selection Sort Demo](https://selection-sorting-algorithm.vercel.app)
## Usage
1. Enter a number in the "Enter your number" input field.
2. Click "Add Number" to add it to the unsorted list.
3. Repeat steps 1-2 to add more numbers.
4. Click "Start Sorting" to begin the sorting process.
5. Observe the sorted result in the "After Sorting" section.
## Installation
Clone the repository and open `index.html` in your web browser:
```bash
git clone https://github.com/amirallami-code/selection-sorting-algorithm.git cd selection-sorting-algorithm
```
## Contributing
We enthusiastically welcome contributions! To contribute:
1. Fork the project.
2. Create your feature branch (`git checkout -b feature/AmazingFeature`).
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`).
4. Push to the branch (`git push origin feature/AmazingFeature`).
5. Open a pull request.
## License
This project is currently under the MIT license. For more information, see the [LICENSE](LICENSE) file.
## Contact
For questions or feedback, please contact:
Amirhossein Allami - [amirallami.dev@gmail.com](mailto:amirallami.dev@gmail.com)
Project Link: [https://github.com/amirallami-code/selection-sorting-algorithm](https://github.com/amirallami-code/selection-sorting-algorithm)
## References
1. [GeeksforGeeks - Selection Sort](https://www.geeksforgeeks.org/selection-sort/)
2. [Simplilearn - Selection Sort Algorithm](https://www.simplilearn.com/tutorials/data-structure-tutorial/selection-sort-algorithm)
---
⭐ Star this repository if you find it helpful!