'Major Related/Algorithm'에 해당되는 글 1건


Selection Sort.


원 버전은 차례대로 Value를 Compare하여 Swap하나,

간단한 버전으로 구현하려면 Cell 하나를 지정한 다음 Swap하는

방법으로 구현하면 된다.




The algorithm works as follows:

  1. Find the minimum value in the list
  2. Swap it with the value in the first position
  3. Repeat the steps above for the remainder of the list (starting at the second position and advancing each time)

by. Wikipedia



블로그 이미지

아삐꼬까

,