을 기반으로 하는 간접적인 방식인 만큼 제한이 있다. 이 책 전반에서 알고리즘 구현을 기술하
고, 코드 구조를 기반으로 알고리즘 성능을 모델링하는 데 적절한 공식을 식별할 것이다.
2.3
성능 클래스
정확히 같은 문제를 해결하는 여러 알고리즘이 있을 때, 때로는 단지 수학적 모델을 사용해 성
능을 분류함으로써 어느 것이 가장 효율적인지 알아낼 수 있다. 알고리즘은 종종 ‘복잡도는
O
(
N
2
)이다’ 혹은 ‘최악의 성능은
O
(
N
log
N
)이다’와 같은 말로 표현된다. 이 용어를 알아보기
위해 먼저 [그림
2
-
1
]를 보자. 알고리즘 분석에 관해 설명하는 책이나 온라인 리소스를 읽어봤
다면 그림을 본 적이 있을 것이다.
목표는 주어진 문제 인스턴스
N
에 대해
최악의 런타임 성능
을 예측하는 모델을 찾는 것이다. 수
학에서는 이것을
상한선
이라 한다. ‘알고리즘은 이보다 더 열심히 일하지 않을 것이다’라고 생
각하면 이해가 쉽다. 대응되는 ...
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.
O’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
I 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
I’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
I'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.