Rekursion
Rekursion, or recursion, is a method in mathematics and computer science in which a function or process refers to itself to solve a problem by solving smaller instances of the same problem. In programming, a recursive function calls itself with a reduced input until a base case is reached.
Recursion can be direct, where a function calls itself, or indirect, through mutual calls between functions.
Key concepts include the base case, which terminates the recursion, and the recursive step, which reduces the
Rekursion is central to many algorithms and data structures. It underpins tree traversals, divide-and-conquer methods, and
Historically, recursive thinking has roots in mathematical definitions and has become a standard technique in programming