목록선택정렬 (1)
Try
삽입정렬 (insertion sort) 삽입 정렬(insertion sort)은 자료 배열의 모든 요소를 앞에서부터 차례대로 이미 정렬된 배열 부분과 비교하여, 자신의 위치를 찾아 삽입함으로써 정렬을 완성하는 알고리즘이다. 소스 12345678910111213141516171819202122232425262728293031323334353637383940414243/*/* /* khsh5592@naver.com/* has3ong.tistory.com/* /* 2018 - 11 - 16/**/ #include #include #include using namespace std; int Data[10] = {9, 5, 12, 23, 4, 1, 18, 6, 3, 11}; void main(){ int leng..
Algorithm/Algorithm 기초
2018. 11. 16. 18:29