본문 바로가기

재귀

도입됨
교재 자료
이 주제용 영상 수업 영상 페이지 열기
15:34

검색 및 정렬

백만 명의 이름이 있는 전화번호부. 하나씩 확인하면 백만 번의 비교를 할 수도 있습니다. 하지만 이미 그 비법을 알고 있습니다: 중간에서 엽니다…

영어 내레이션 · 영어와 중국어 자막 전환 가능

이 수업의 내용

동영상 강의
어휘
English 의미
recursive/rɪˈkɜːsɪv/재귀적
loop/luːp/A structure that repeats a sequence of instructions.
base case/beɪs keɪs/기본 경우
recursive case/rɪˈkɜːsɪv keɪs/재귀 경우
recursive call/rɪˈkɜːsɪv kɔːl/A function call made by the same function while it is running.
trace/treɪs/To follow an algorithm step by step and record its values.
call stack/kɔːl stæk/호출 스택
recursion/rɪˈkɜːʃn/The use of a rule inside its own definition to express repetition.
function/ˈfʌŋkʃn/A mapping that assigns exactly one output to each allowed input.
Winding upThe stage when recursive calls are made until a base case is reached.
UnwindingThe stage when recursive calls return their results to the calls waiting for them.
stack/stæk/A last-in, first-out data structure in which items are added and removed at the same end.
parameters/pəˈræmɪtəz/Values that specify a model or function, or named inputs that a subroutine receives.
local variables/ˈləʊkl ˈveərɪəblz/A variable whose name is accessible only within a particular function, block or other limited scope.
stack frame/stæk freɪm/스택 프레임
return address/rɪˈtɜːn əˈdres/The location where execution should resume after a called routine finishes, saved as part of managing the call.
pushedAdded to the top of the call stack when a function is called.
poppedRemoved from the top of the call stack when a function returns.
ADTA description of data and its allowed operations, separate from how it is stored.
memory/ˈmeməri/The part of a computer that holds data and programs currently in use.
stack overflow/stæk ˌəʊvəˈfləʊ/스택 오버플로우
Deep recursionEven a correct recursion of a million levels needs a million frames, so it can exhaust memory where a loop would use none.
FibonacciA sequence starting with zero and one, where each later number is the sum of the previous two.
memoisation/ˌmeməʊaɪˈzeɪʃn/메모이제이션
iteration/ˌɪtəˈreɪʃn/Repeating a sequence of instructions or calculations.
self-similarDescribes a problem that contains a smaller version of itself.
tree traversalThe process of visiting each node in a tree in a particular order.
divide and conquer/dɪˈvaɪd ænd ˈkɒŋkə/A method that divides a problem into smaller problems and combines their solutions.
binary search/ˈbaɪnəri sɜːtʃ/A search of ordered data that repeatedly compares with the middle item and discards half of the remaining search range.
merge sort/mɜːdʒ sɔːt/A sorting algorithm that divides data into smaller parts, sorts them, and joins them in order.
arithmetic overflowA result that is too large or small for the available number of bits.
infinite recursionWhen a function keeps calling itself because it never reaches a stopping point.

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP