Eddie's Blog

Sorting Algorithms 본문

카테고리 없음

Sorting Algorithms

eddie.y 2016. 9. 26. 13:45

https://www.toptal.com/developers/sorting-algorithms/

1. 삽입 정렬 (Insertion Sorting)

for i 1 to length(A) - 1

j i

while j > 0 

if A[j - 1] > A[j]

swap A[j] and A[j - 1]

end if

j j - 1

end while

end for

2. 선택

3. 버블

4. 쉘

5. 퀵

6. 힙

7. 머지

Comments