Press "Enter" to skip to content

Selection Sort

Hello, Selection Sort is a sorting algorithm. With Selection Sort, we can sort the array minimum to the maximum or maximum to the minimum. Algorithm, choose the first element of the array as minimum and then in the for loops, we controlled the conditions if there is some minimum value than the or minimum then we change the their places. Algorithm is really simple to implement. Algorithms has complexity and complexity of the Selection Sort can find by the using this formula n2.  For the make example about the algorithm, I implement the Selection Sort Algorithm using by the Python and C. In the examples, I sort the array minimum to maximum and maximum to minimum.

C Codes;

Python Codes;

For your questions, you can reach me via e-mail or comments.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *