|
1 |
| -## Selective Sorting Algorithm |
2 |
| -Selection sort is a simple sorting algorithm. This sorting algorithm is a comparison-based algorithm in which the list is divided into two parts: |
3 |
| -the sorted part at the left end and the unsorted part at the right end. |
4 |
| -Initially, the sorted part is empty and the unsorted part is the whole list, in this code, each part is considered as an array. |
| 1 | +## What is an Algorithm? |
| 2 | +An algorithm is a set of instructions or rules that guide the computer or software in performing a particular task or solving a problem 1. |
| 3 | + |
| 4 | +## What is Selection Sorting Algorithm and How Does it Help Us? |
| 5 | +Selection sort is an in-place comparison-based algorithm that divides the list into two parts, the sorted part on the left and the unsorted part on the right . It works by repeatedly selecting the smallest (or largest) element from the unsorted portion of the list and moving it to the sorted portion of the list . |
| 6 | + |
| 7 | +Selection sort has several advantages over other sorting algorithms. It is simple to understand and implement, requires no additional memory space, and performs well on small lists . However, it is not suitable for large lists as its time complexity is O(n²) . |
| 8 | + |
| 9 | + |
| 10 | +## Preview |
| 11 | +go to this link and see the preview of this project online |
| 12 | + |
| 13 | +https://selection-sorting-algorithm.vercel.app |
| 14 | + |
| 15 | +## Installation |
| 16 | +To install this project, simply clone the repository and open the index.html file in your web browser. |
| 17 | +```bash |
| 18 | + git clone https://github.com/amirallami-code/selection-sorting-algorithm |
| 19 | +``` |
| 20 | + |
| 21 | +## License |
| 22 | +This project does not have any license. |
| 23 | + |
| 24 | +## Usage |
| 25 | +To use this project and see how it works to sort our numbers, we should type a number in the input field that reads `Enter your number` and click on the `Add Number` button to add our number to the basket of numbers that are not sorted (`your numbers` section). When you have typed all of your numbers and added them to the basket, click on the `Start Sorting` button. The result will appear in the `After Sorting` section, where you can see that your numbers are sorted! |
| 26 | + |
| 27 | +## References |
| 28 | +- https://www.geeksforgeeks.org/selection-sort/ |
| 29 | +- https://www.simplilearn.com/tutorials/data-structure-tutorial/selection-sort-algorithm |
| 30 | + |
| 31 | +## Contact Information |
| 32 | +If you have any questions or concerns about this project, please contact us at amirallami.dev@gmail.com |
| 33 | + |
| 34 | +I hope this helps! Let me know if you have any other questions. |
0 commit comments