Insertion Sort
Insertion Sort는 이름에서 드러나듯 값을 어딘가(?)에 넣어서 정렬한다. 글로는 어려 울 수 있으니 간단히 Flow를 확인하면 다음과 같다.12, 11, 13, 5, 6Let us loop for i = 1 (second element of the array) to 4 (last element of the array)i = 1. Since 11 is smaller than 12, move 12 and insert 11 before 12 11, 12, 13, 5, 6i = 2. 13 will remain at its position as all elements in A[0..I-1] are smaller than 13 11, 12, 13, 5, 6i = 3. 5 will move to the b..
2019. 6. 6.