Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

선형 탐색과 이진 탐색 속도 비교 테스트 진행 및 수정 #263

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

kimdoyun98
Copy link
Collaborator

1,000개, 10,000개, 50,000개의 테스트 데이터로 속도 측정

image

1,000개의 경우

  • 선형: 0.021초
  • 이진: 0.014초

10,000개의 경우

  • 선형: 0.671초
  • 이진: 0.011초

50,000개의 경우

  • 선형: 39.844초
  • 이진: 0.107초

테스트마다 결과는 다르지만 대용량 데이터 기준 확연한 차이를 보여주었다.
다만 800개 미만 데이터의 경우 비슷하거나 선형 탐색이 미세하게 빠르다.

For문 안에서 매번 정렬 실행 시 선형탐색보다 시간 오래 걸림
@kimdoyun98 kimdoyun98 self-assigned this Mar 11, 2025
@kimdoyun98 kimdoyun98 added Test 테스트 코드 추가 refactoring 코드 개선 labels Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring 코드 개선 Test 테스트 코드 추가
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant