コンテンツへスキップ

再帰

導入済み
プリント
このトピックのビデオレッスン 動画ページを開く
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