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

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

by 조지 하이네만, 윤대석
May 2022
Beginner to intermediate
296 pages
5h 54m
Korean
Hanbit Media, Inc.
Content preview from 똑똑한 코드 작성을 위한 실전 알고리즘
80
똑똑한 코드 작성을 위한 실전 알고리즘
3.1
키와 연관된 값
값을 단순히 저장하는 대신에, 특정 키와 값을 연결하는 (키, 값 ) 쌍의 컬렉션을 저장할 필요
가 있다. 이는 주어진 키에 연관된 값을 찾도록 해주는
심볼 테이블
symbol
table
데이터 타입으로
알려져 있다. 해싱은 (키, 값 ) 쌍을 찾기 위해 처음부터 끝까지 수동으로 탐색하는 것보다 효
율적인 대안이 되며, 앞서 다룬 탐색 알고리즘들을 능가한다. 심볼 테이블은 키 (및 해당하는
값)를 제거하는 과정에도 효율적일 수 있다. 모든 키를 특정 순서로 (예를 들면 오름차순으로)
얻어오는 기능을 포기해야 하지만, 심볼 테이블의 결과는 개별 키와 연관된 값을 얻거나 저장
하는 데 최적의 성능을 제공한다.
특정 해의 특정 달에 해당하는 달력을 출력하는
print
_
month
(
month
,
year
)
함수를 작성한
다고 해보자. 예를 들어,
print
_
month
('
February
',
2024
)
는 다음과 같이 출력할 것이다.
February 2024
Su Mo Tu We Th Fr Sa
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
어떤 정보가 필요할까? 그 해, 그 달의 첫째 날이 무슨 요일인지 (예제에서는 목요일 ...
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