Skip to Content
똑똑한 코드 작성을 위한 실전 알고리즘
book

똑똑한 코드 작성을 위한 실전 알고리즘

by 조지 하이네만, 윤대석
May 2022
Beginner to intermediate
296 pages
5h 54m
Korean
Hanbit Media, Inc.
Content preview from 똑똑한 코드 작성을 위한 실전 알고리즘
57
2
알고리즘 분석
른 곱셈 알고리즘의 구조가 수행 방식을 결정하기 때문이다. 어떤 슈퍼컴퓨터도 카라추바 구현
이 갑자기 선형
TL
(
N
)으로 모델링된 방식으로 동작하도록 만들지 않는다.
다음 절에서는 점근적 분석을 알아본다. 이는 알고리즘 성능을 평가할 때 실제 컴퓨터에 관한
정보를 제외할 수 있는 접근 방식이다. 고성능 컴퓨터는 코드를 더 빠르게 실행할 수 있지만 점
근적 분석의 법칙을 바꾸지는 못한다.
2.4
점근적 분석
덧셈 상수
개념은 앞서 논의한 속도계를 비롯한 많은 실생활 시나리오에서 흔히 사용된다. 예를
들어 ‘
40
분 뒤에 도착할 건데
5
분 정도 빠르거나 늦을 수도 있어’라고 말할 때를 의미한다.
점근적 분석
asymptotic
analysis
은 이런 아이디어를 더 발전시키고, 알고리즘을 분석하기 위해
곱셈
상수
개념을 도입한다.
무어의 법칙
Moore
s
Law
을 들어봤다면 이 개념이 익숙할 것이다. 인텔의
CEO
이자 공동 창립자인 고든 무어는
1965
년에, 집적회로 한 개당 컴포넌트의 개수가
10
년간
매년 두 배가 될 것이라고 예측했다. 그리고
1975
년에는 이 예측을 매년에서 매
2
년으로 수정
했다. 예측은 거의
40
년 동안 유효했으며, 컴퓨터의 속도가 기본적으로 매
2
년마다 두 배로 늘
어나는 이유를 설명해준다. 곱셈 상수를 컴퓨팅에 적용해보면, 구형 컴퓨터는 최신 컴퓨터와
동일한 프로그램을 실행할 때
1
,
000
배 혹은 그 이상 느릴 수 있다.
같은 문제를 해결하는 두 알고리즘을 고려해보자. 앞서 소개한 기술을
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

데이터 익명화를 위한 파이프라인

데이터 익명화를 위한 파이프라인

루크 아버클, 칼리드 엘 에맘
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9791162245644