再帰
「再帰」の英語
「再帰」は英語で recursion と言います。プログラミングで、関数が自分自身を呼び出す処理を指します。必ず終了条件を設け、無限に呼び出さないようにします。
「再帰」の英語の使い分け
プログラミングで関数が自分自身を呼び出す処理に使う専門語です。
コアイメージ
再帰は自分自身を呼び出して問題をより小さな部分に分けて解く手続きを指す
英英
The process in which a function, procedure, or definition refers to itself, typically by solving smaller instances of the same problem.
語源
recursionは、ラテン語recurrere(re=後ろへ+currere=走る)に由来し、「戻ること」を意味する語が学術的に自己参照や反復の意味で英語化した
コラム
- プログラミングでは再帰は関数が自分を呼ぶことで複雑な処理を簡潔に表現できるが、必ず終了条件を設定して無限呼び出しを防ぐ必要がある
「再帰」のレベル別の例文
- 中学
This function uses recursion to count down from ten.
この関数は再帰を使って10から数えます。
- 高校・英検2級
In computer science, recursion can simplify algorithms with nested structures.
- TOEIC・ビジネス
The development team reviewed the recursion in the code before releasing the update.
- 日常会話
Does this program use recursion?
このプログラムは再帰を使っているの?