Hydra: Difference between revisions
(Add configurations + date on Antihydra source) |
(the Hydra sequence can be calculated quickly due to being a consistent Collatz sequence) |
||
Line 12: | Line 12: | ||
It is closely related to the machine [[Antihydra]].<ref>S. Ligocki, "[https://www.sligocki.com/2024/07/06/bb-6-2-is-hard.html BB(6) is Hard (Antihydra)]" (2024). Accessed 22 July 2024.</ref> | It is closely related to the machine [[Antihydra]].<ref>S. Ligocki, "[https://www.sligocki.com/2024/07/06/bb-6-2-is-hard.html BB(6) is Hard (Antihydra)]" (2024). Accessed 22 July 2024.</ref> | ||
The sequence calculated by Hydra is a [[consistent Collatz]] sequence, (which implies, among other things, that its odd/even pattern can be calculated in quasilinear time). In the first 60 million elements, there are 29995836 even values of <code>a</code> and 30004165 odd values; thus, is known that Hydra cannot halt within the first 90 million Collatz iterations. | |||
An older simulator for the odd/even sequence used by Hydra is available [http://nethack4.org/esolangs/fasthydra.zip here], but it runs in <math>O(n^2)</math> time and thus is unusably slow compared to the consistent Collatz simulation approach. | |||
== Name == | == Name == |
Revision as of 00:30, 4 August 2024
1RB3RB---3LA1RA_2LA3RA4LB0LB0LA
(bbch)
Hydra is a BB(2,5) machine that simulates the Collatz-like iteration
starting from , using configurations of the form .[1]
It is closely related to the machine Antihydra.[2]
The sequence calculated by Hydra is a consistent Collatz sequence, (which implies, among other things, that its odd/even pattern can be calculated in quasilinear time). In the first 60 million elements, there are 29995836 even values of a
and 30004165 odd values; thus, is known that Hydra cannot halt within the first 90 million Collatz iterations.
An older simulator for the odd/even sequence used by Hydra is available here, but it runs in time and thus is unusably slow compared to the consistent Collatz simulation approach.
Name
The name Hydra references the Ancient Greek legend: just as the legendary creature was growing 2 heads after losing 1 head, the b counter that is kept on the right side of the tape either increases by 2 or decreases by 1 (approximately with equal frequency if modelled as a random process; in reality it depends on the parity of a). The Hydra dies (halts) when the last head is cut.
Sources
- ↑ S. Ligocki, "BB(2, 5) is Hard (Hydra) (2023). Accessed 22 July 2024.
- ↑ S. Ligocki, "BB(6) is Hard (Antihydra)" (2024). Accessed 22 July 2024.