선택정렬 - 버블정렬과 비슷한 알고리즘 - 배열 중 최댓값을 선택하여 정렬이 되어있지 않은 제일 마지막 자리(오른쪽)로 옮긴다. lastUnsortedIndex = this is the last index of the unsorted partition 비정렬된 마지막 인덱스를 구한다(처음에는 array length -1 ) i = index used to traverse the array from left to right i는 1부터 비정렬된 마지막 인덱스까지 1씩 늘어나며 비교한다 largest = index of largest element in unsorted partition largest 는 비정렬된 값중의 최댓값을 가지고 있는 배열의 인덱스 java 예제 public class Main { p..