Recursion

/rɪˈkɝː.ʒən/

पुनरावर्तन (रिकर्शन)

Origin & History

From Latin recursio (a running back/return), from recurrere ‘to run back, return’; adopted in mathematics and later computer science for self-referential processes.

लैटिन recursio (वापस दौड़ना/लौटना) से, जो recurrere ‘वापस दौड़ना, लौटना’ से बना; गणित और बाद में कंप्यूटर विज्ञान में स्वयं-संदर्भित प्रक्रियाओं के अर्थ में प्रचलित हुआ।

Definition

Recursion is a method where a problem is solved by breaking it into smaller instances of the same problem, typically by a function calling itself until a base case stops the repetition.

रिकर्शन (पुनरावर्तन) वह विधि है जिसमें किसी समस्या को उसी समस्या के छोटे-छोटे रूपों में बाँटकर हल किया जाता है; आम तौर पर इसमें कोई फ़ंक्शन अपने-आप को कॉल करता है और एक 'बेस केस' (आधार स्थिति) पुनरावृत्ति को रोकती है।

Parts of Speech

Noun:
Recursion can simplify code for problems like tree traversal.
रिकर्शन पेड़ (ट्री) ट्रैवर्सल जैसी समस्याओं के लिए कोड को सरल बना सकता है।
Noun:
The definition relies on recursion: the term is defined in terms of itself.
यह परिभाषा रिकर्शन पर निर्भर करती है: शब्द को उसी के संदर्भ में परिभाषित किया गया है।

Usage Examples

The algorithm uses recursion to explore all possible paths.
Without a base case, recursion may lead to infinite calls and a stack overflow.
Mathematical sequences are often defined using recursion.
She explained recursion by comparing it to looking into two facing mirrors.

Synonyms

Self-reference Recurrence Repetition (in iterative sense) Recursive definition

Antonyms

Iteration (as a contrasting approach in programming) Nonrecursion Nonrecursive method

Related Forms

Idioms & Phrases

Recursion on recursion
रिकर्शन पर ही रिकर्शन (बार-बार स्वयं-संदर्भित दोहराव)
A recursion problem
रिकर्शन से जुड़ी समस्या (जहाँ समाधान में स्वयं-को-फिर-से लागू करना शामिल हो)