Skip to Content
자바로 배우는 핵심 자료구조와 알고리즘: 기술 면접에 필요한 실용주의 자료구조와 알고리즘
book

자바로 배우는 핵심 자료구조와 알고리즘: 기술 면접에 필요한 실용주의 자료구조와 알고리즘

by 유동환, 앨런 B. 다우니
June 2018
Beginner to intermediate
184 pages
3h 30m
Korean
Hanbit Media, Inc.
Content preview from 자바로 배우는 핵심 자료구조와 알고리즘: 기술 면접에 필요한 실용주의 자료구조와 알고리즘
24
자바로 배우는 핵심 자료구조와 알고리즘
2
. 입력 데이터의 세부사항을 다루지 않으려면 가장 좋은 선택은 기대하는 입력 데이터에 대
한 평균 성능을 분석하는 것입니다. 이것이 가능하지 않을 때는 일반적인 대안으로 최악
의 시나리오를 분석하기도 합니다.
3
. 마지막으로, 한 알고리즘이 작은 문제에서는 최상의 성능을 보이지만 큰 문제에서는 다른
알고리즘이 더 좋을 수 있다는 가능성을 배제하면 안 됩니다. 이때는 보통 큰 문제에 초
점을 맞춥니다. 작은 문제에서는 알고리즘의 차이가 크지 않지만, 큰 문제에서는 그 차이
가 훨씬 거대해질 수 있기 때문입니다.
이러한 종류의 분석은 간단한 알고리즘 분류에 적합합니다. 예를 들어, 알고리즘
A
의 실행시간
이 입력
n
의 크기에 비례하고 알고리즘
B
n
2
에 비례하는 경향이 있다면 적어도
n
의 값이 클
때는
A
B
보다 빠르다고 기대합니다.
대부분 간단한 알고리즘은 다음 몇 가지 범주로 나뉩니다.
상수 시간
실행시간이 입력 크기에 의존하지 않으면 알고리즘은 상수 시간
constant
time
을 따른다고 합니다. 예를 들어,
n
의 배열에서 브래킷 연산
([ ])
을 사용하여 요소 중 하나에 접근할 때 이 연산은 배열의 크기와 관계없이 같은
수의 동작을 수행합니다.
선형
실행시간이 입력의 크기에 비례하면 알고리즘은 선형
linear
이라고 합니다. 예를 들어, 배열에 있는 요소를 더한
다면
n
개 요소에 접근하여
n
-
1
번 더하기 연산을 해야 합니다. 연산
(요소 접근과 더하기 )
의 총 ...
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

자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴

자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴

조너선 슈나이더

Publisher Resources

ISBN: 9791162240847