Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- django
- IBK기업은행 인턴
- 비둘기목
- 딥러닝공부
- 비둘기과
- 딥러닝 공부
- keras
- 딱다구리과
- 기러기목
- AI역량평가
- Birthday paradox
- 맑은소리 스피치학원
- 한국의 새
- 생일문제
- 한국의새
- 백로과
- python3
- ADsP
- 가마우지과
- structured_array
- AI전략게임
- 참새과
- 솔딱새과
- 오리과
- 계수정렬
- 흰날개해오라기
- 참새목
- 직박구리과
- Python
- SimpleCraft
Archives
- Today
- Total
목록계수정렬 (1)
진박사의 일상
[Python] 계수 정렬과 기본 정렬 비교
계수 정렬이 사용 가능할 때 계수 정렬과 기본 정렬을 비교해보고 싶어서 테스트 테스트한 문제는 성적 정렬 import time import random str_pool = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" counting_score = 0 default_score = 0 for i in range(7): n = 10**i #계수 정렬 scores = [""] * 100 answer = "" random.seed(0) start = time.time() for _ in range(n): name, score = random.choice(str_pool), random.randint(1,100) scores[score-1] += name + "..
프로그래밍
2021. 9. 9. 02:00