일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Project
- javascript
- data
- algorithm
- pandas
- Scrum
- ECS
- opencv
- Agile
- python
- 크롤링
- visualizing
- 다나와
- angular
- tensorflow
- webcrawling
- keras
- 프로젝트
- adaptive life cycle
- AWS
- Method
- analyzing
- data analyze
- TypeScript
- 애자일
- instance
- Crawling
- matplotlib
- DANAWA
- 자바스크립트
Archives
- Today
- Total
목록selection_sort (1)
LiJell's 성장기
_05.algorithm_sort
정렬 알고리즘 정렬(sorting)이란 데이터를 특정한 기준에 따라 순서대로 나열하는 것 일반적으로 문제 상황에 따라서 적절한 정렬 알고리즘이 공식처럼 사용 1. 선택 정렬 처리되지 않은 데이터 중에서 가장 작은 데이터를 선택해 맨 앞에 있는 데이터와 바꾸는 것을 반복 탐색(선형 탐색) 범위는 반복할 때 마다 작아진다 array = [7,5,9,0,3,1,6,2,4,8] for i in range(len(array)): min_index = i # 갖아 작은 원소의 인덱스 for j in range(i+1, len(array)): if array[min_index] > array[j]: min_index = j array[i], array[min_index] = array[min_index], array..
Algorithm
2022. 1. 7. 22:38