In mathematics and computer science, mutual recursion is a form of recursion where two or more mathematical or computational objects, such as functions...
15 KB (2,015 words) - 04:28, 15 July 2025
Coroutine (section Mutual recursion)
Using coroutines for state machines or concurrency is similar to using mutual recursion with tail calls, as in both cases the control changes to a different...
54 KB (5,471 words) - 22:57, 2 July 2025
recursion is a method of solving a computational problem where the solution depends on solutions to smaller instances of the same problem. Recursion solves...
62 KB (7,388 words) - 18:24, 20 July 2025
Tail call (redirect from Tail recursion)
tail recursive, which is a special case of direct recursion. Tail recursion (or tail-end recursion) is particularly useful, and is often easy to optimize...
41 KB (4,342 words) - 20:35, 21 July 2025
Primitive recursive function (redirect from Primitive recursion)
reading or writing. Course-of-values recursion defines primitive recursive functions. Some forms of mutual recursion also define primitive recursive functions...
40 KB (7,348 words) - 09:34, 30 July 2025
This (computer programming) (redirect from Open recursion)
method in a base class, or in cases of mutual recursion. The fragile base class problem has been blamed on open recursion, with the suggestion that invoking...
24 KB (3,119 words) - 17:19, 5 September 2024
previous step:. Note that pivot calls select; this is an instance of mutual recursion. function pivot(list, left, right) // for 5 or less elements just get...
19 KB (2,608 words) - 18:54, 5 March 2025
declarations to define pointer types, or when record declarations led to mutual recursion, or when an identifier may or may not have been used in an enumeration...
70 KB (8,514 words) - 19:00, 25 June 2025
them, and requires forward declaration in some cases, notably for mutual recursion. In other languages, such as Python, a name's scope begins at the start...
76 KB (10,518 words) - 17:48, 30 July 2025
languages that require declaration before use; it is necessary for mutual recursion in such languages, as it is impossible to define such functions (or...
8 KB (1,125 words) - 19:52, 22 April 2025
Recursive data type (redirect from Mutually recursive data type)
types can also be defined by mutual recursion. The most important basic example of this is a tree, which can be defined mutually recursively in terms of a...
8 KB (1,170 words) - 09:50, 29 July 2025
second-order logic. More expressive fragments are defined for any k > 0 by mutual recursion: Σ k + 1 1 {\displaystyle \Sigma _{k+1}^{1}} has the form ∃ R 0 … ∃...
32 KB (4,502 words) - 01:10, 13 April 2025
Fixed-point combinator (category Recursion)
y(\lambda z.xxyz))\ (\lambda xy.y(\lambda z.xxyz))} The analog for mutual recursion is a polyvariadic fix-point combinator, which may be denoted Y*. In...
36 KB (5,182 words) - 16:46, 29 July 2025
Multiple passes obviate the need for forward declarations, allowing mutual recursion to be implemented elegantly. The prime examples of languages requiring...
5 KB (628 words) - 14:13, 5 December 2023
the child trees of ∅. The elements b, c, and d are defined through a mutual recursion. To understand the effect of the latter operations, consider the rightmost...
19 KB (2,731 words) - 20:15, 9 July 2025
bringing Rintaro's time with Amadeus to an end. 12 "Mother Goose of Mutual Recursion: Recursive Mother Goose" Transliteration: "Sōgosaiki no Mazā Gūsu"...
31 KB (421 words) - 09:13, 5 May 2025
(estimated as 30%-260%) for higher-order or object-oriented programs. Mutual recursion and non-trivial cycles are not resolvable by the gprof approach (context-insensitive...
9 KB (1,050 words) - 17:36, 5 November 2024
they are equivalent in the traces model. UFP can also be extended to mutual recursions (by using vectors of processes) and other models of CSP (e.g. in F...
45 KB (6,476 words) - 15:14, 30 June 2025
In computer science, anonymous recursion is recursion which does not explicitly call a function by name. This can be done either explicitly, by using a...
12 KB (1,514 words) - 12:49, 30 April 2025
through single tail recursion (tail recursion calling the same function). Further, tail call optimization allows mutual recursion of unbounded depth,...
50 KB (5,886 words) - 19:29, 24 May 2025
Authority and hub values are defined in terms of one another in a mutual recursion. An authority value is computed as the sum of the scaled hub values...
11 KB (1,727 words) - 18:39, 27 December 2024
Frost, Hafiz, and Callaghan, which do accommodate ambiguity and left recursion in polynomial time and which generate polynomial-sized representations...
11 KB (1,368 words) - 14:32, 2 August 2024
( α ) {\displaystyle \Psi _{\pi }^{\xi }(\alpha )} are defined in mutual recursion in the following way: M0 = K ∩ L i m {\displaystyle K\cap {\mathsf...
68 KB (12,608 words) - 03:34, 16 May 2025
allow mutual recursion, which is, in a sense, more lifted than is supported in lambda calculus. Lambda calculus does not support mutual recursion and only...
73 KB (8,423 words) - 12:51, 24 March 2025
left recursion. Any context-free grammar can be transformed into an equivalent grammar that has no left recursion, but removal of left recursion does...
10 KB (1,157 words) - 13:41, 16 July 2025
parsing, left recursion must be eliminated. Direct recursion, be that left or right, is important in context-free grammars, because there recursion is the only...
47 KB (6,505 words) - 20:06, 19 June 2025
(\lambda x.y))} This approach is then generalized to support mutual recursion. A mutually recursive let expression may be composed by rearranging the expression...
41 KB (5,006 words) - 18:17, 2 December 2023
and recursion solutions, but timing had been a major issue. While the general form of a temporal recursion, being any asynchronous function recursion through...
14 KB (1,530 words) - 01:30, 10 April 2025
Packrat parser (section Left recursion)
{\texttt {'aa'}}} and 'aba3aba' {\displaystyle {\texttt {'aba3aba'}}} . Left recursion happens when a grammar production refers to itself as its left-most element...
32 KB (1,852 words) - 05:51, 25 May 2025
Object-oriented programming (section Open recursion)
self, to refer to the current object. In languages that support open recursion, a method in an object can call other methods in the same object, including...
55 KB (5,890 words) - 05:11, 29 July 2025