Hydra game
In mathematics, specifically in graph theory and number theory, a hydra game is a single-player iterative mathematical game played on a mathematical tree called a "hydra" where the player's goal is to "kill" the hydra by removing its nodes ("heads") one-by-one while the hydra simultaneously expands itself (this resembles a battle between Hercules and the Lernaean Hydra, hence the name). The rules of the game allow the player to eventually win, but the number of steps required to reach the goal grows very rapidly as the size of the initial tree increases, so the game can be used to generate large numbers or infinite ordinals or prove the strength of certain mathematical theories. Unlike... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
In mathematics, specifically in graph theory and number theory, a hydra game is a single-player iterative mathematical game played on a mathematical tree called a "hydra" where the player's goal is to "kill" the hydra by removing its nodes ("heads") one-by-one while the hydra simultaneously expands itself (this resembles a battle between Hercules and the Lernaean Hydra, hence the name). The rules of the game allow the player to eventually win, but the number of steps required to reach the goal grows very rapidly as the size of the initial tree increases, so the game can be used to generate large numbers or infinite ordinals or prove the strength of certain mathematical theories. Unlike their combinatorial counterparts like TREE and SCG, no search is required to compute these fast-growing function values—one must simply keep applying the transformation rule to the tree until the game says to stop. Remove the leaf node x . Let a be x 's parent. If a = R , return to stage 1. Otherwise if a \neq R , let b be the parent of a . Then create n leaf nodes as children of b such that the new nodes would appear after any existing children of b during a post-order traversal (visually, these new nodes would appear to the right side of any existing children). Then return to stage 1. Even though the hydra may grow by an unbounded number n of leaves at each turn, the game will eventually end in finitely many steps: if d is the greatest distance between the root and the leaf, and w the number of leaves at this distance, induction on d can be used to demonstrate that the player will always kill the hydra. If d = 1 , removing the leaves can never cause the hydra to grow, so the player wins after w turns. For general d , we consider two kinds of moves: those that involve a leaf at a distance less than d from the root, and those that involve a leaf at a distance of exactly d . Since moves of the first kind are also identical to moves in a game with depth d-1 , the induction hypothesis tells us that after finitely many such moves, the player will have no choice but to choose a leaf at depth d . No move introduces new nodes at this depth, so this entire process can only repeat up to w times, after which there are no more leaves at depth d and the game now has depth (at most) d-1 . Invoking the induction hypothesis again, we find that the player must eventually win overall. While this shows that the player will win eventually, it can take a very long time. As an example, consider the following algorithm for both the player's moves and the hydra's responses. Pick the rightmost leaf (i.e., the newest leaf which will be on the level closest to the root) and set n = 1 the first time, 2 the second time, and so on, always increasing n by one. If a hydra has a single y -length branch, then for y = 1 , the hydra is killed in a single step, while it is killed in three steps if y = 2 . There are 11 steps required for y = 3 . There are 1114111 steps required for y = 4 . y = 5 has been calculated exactly. Let F(x) = 2^x \cdot (x + 2) - 1 and F^n(x) to be F nested n times. Then HYDRA(5) = 2 \cdot F^{F^2(3) + 1}(F^2(3) + 1) + 1 = 2 \cdot F^{22539988369408}(22539988369408) + 1 . Then F_{i+1}(x) = F_i^x(x + 1) and F_1(x) = 2 \cdot (x + 1) - 1 = 2x + 1 . The answer to hydra(n) is: F_1(F_2(F_3(\ldots F_{n-1}(F_n(1))\ldots))) The growth rate of this function is faster than the standard fast-growing hierarchy, as F_i(x) alone grows at the rate of the fast-growing hierarchy, and the solution is the nth nesting of F_i(x) . Instead of adding only new leaves, this rule adds duplicates of an entire subtree. Keeping everything else the same, this time y = 1 requires 1 turn, y=2 requires 3 steps, y=3 requires 37 steps and y=4 requires more steps than Graham's number. This functions growth rate is massive, equal to f_{\varepsilon_0}(n) in the fast-growing hierarchy, where \varepsilon_0 is the smallest epsilon number. This is not the most powerful hydra. The Buchholz hydra is a more potent hydra. It entails a labelled tree. The root has a unique label (call it R ), and each other node has a label that is either a non-negative integer or \omega . A hydra is a labelled tree with finite roots. The root should be labelled R . Label all nodes adjacent to the root 0 (important to ensure that it always ends) and every other node with a non-negative integer or \omega . Choose a leaf node x and a natural number n at each stage. Remove the leaf x . Let a be x 's parent. Nothing else happens if a = R . Return to stage 2. If the label of x is 0 , Assume b is the parent of a . Attach n copies of the subtree with root a to b to the right of all other nodes connected to b . Return to stage 2. If x's label is \omega , replace it with n+1 . Return to stage 2. If the label of x is a positive integer u . go down the tree looking for a node c with a label . Such a node exists because all nodes adjacent to the root are labelled 0 . Take a copy of the subtree with root c . Replace x with this subtree. However, relabel x (the root of the copy of the subtree) with u-1 . Call the equivalent of x in the copied subtree x' (so x is to x' as c is to x ), and relabel it (x') 0. Go back to stage 2. Surprisingly, even though the hydra can grow enormously larger, this sequence always ends. To obtain a fast-growing function, we can fix n , say, n=1 at the first step, then n=2 , n=3 , and so on, and decide on a simple rule for where to cut, say, always choosing the rightmost leaf. Then, \operatorname{Hydra}(k) is the number of steps needed for the game to end starting with a path of length k , that is, a linear stack of k+1 nodes. \operatorname{Hydra}(k) eventually dominates all recursive functions that are provably total in Peano arithmetic, and is itself provably total in \mathrm{PA} + (\varepsilon_0\text{ is well-ordered}) . This could alternatively expressed using strings of brackets: Start with a finite sequence of brackets such as (()(()(())((())))) . Pick an empty pair () and a non-negative integer n . Delete the pair, and if its parent is not the outermost pair, take its parent and append n copies of it. For example, with n=3 , (()(()\mathbf{()})) \implies (()(())(())(())(())) . Next is a list of values of \operatorname{Hydra}(k) : \operatorname{Hydra}(0) = 0 \operatorname{Hydra}(1) = 1 \operatorname{Hydra}(2) = 3 \operatorname{Hydra}(3) = 37 \operatorname{Hydra}(4) > f_{\omega \cdot 2 + 4}(5) \gg \text{Graham's number} \operatorname{Hydra}(5) > f_{\omega^{2 + 4}}(5) \operatorname{Hydra}(6) > f_{\underbrace{\omega ^ {\cdots ^ \omega}}_6}(5) BH(1) = 0 BH(2) = 1 BH(3) This system can also be used to create an ordinal notation for infinite ordinals, e.g. \psi_0(\Omega_\omega) = +0(\omega) . Kill the Mathematical Hydra by PBS Infinite Series
Cite this
"Hydra game". 1786536035. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1369037308 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy