In mathematics and computer science, mutual recursion is a form of recursion where two mathematical or computational objects, such as functions or datatypes...
15 KB (2,013 words) - 19:17, 16 March 2024
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,477 words) - 08:24, 28 April 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) - 14:45, 29 March 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,334 words) - 10:00, 1 June 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...
38 KB (7,230 words) - 12:16, 15 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
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
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
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) - 22:41, 26 May 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) - 15:26, 15 March 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,183 words) - 14:23, 21 May 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,523 words) - 03:42, 18 June 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
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
(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
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
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
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
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,472 words) - 07:13, 13 June 2025
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,691 words) - 11:49, 1 September 2024
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
(\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
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
( α ) {\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
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) - 18:00, 1 February 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,109 words) - 12:39, 25 October 2024
lemma is a theorem about fixed-points which allows splitting a mutual recursion into recursions on one variable at a time. It was created by Austrian Hans...
7 KB (1,187 words) - 16:37, 6 June 2025
Inductive type (section Induction-recursion)
be self-referential, but usually only in a way that permits structural recursion. The standard example is encoding the natural numbers using Peano's encoding...
10 KB (1,464 words) - 08:26, 29 March 2025
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