java tutorial - How to implement Selection Sort Algorithm in java - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - selection sort in java - Java examples - Java programs
Selection Sort Algorithm
- The selection sort algorithm sorts an array by repetitively finding the lowest element from unsorted part and placing it at the beginning.
- In each iteration of selection sort, the lowest element from the unsorted subarray is chosen and moved to the sorted subarray.
- The good thing about selection sort is it never makes more than O(n) swaps and can be valuable when memory write is an expensive operation.