User:MrSolis/Playground: Difference between revisions

From BusyBeaverWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''HYDRA PAGE REVAMP (WIP)'''
'''HYDRA PAGE REVAMP (WIP)'''
{{machine|1RB3RB---3LA1RA_2LA3RA4LB0LB0LA}}{{unsolved|Does Hydra run forever?}}{{TM|1RB3RB---3LA1RA_2LA3RA4LB0LB0LA|undecided}}
{{unsolved|Does Hydra run forever?}}{{TM|1RB3RB---3LA1RA_2LA3RA4LB0LB0LA|undecided}}
Hydra is a [[BB(2,5)]] [[Cryptid]]. It simulates computing the terms of the sequence
Hydra is a [[BB(2,5)]] [[Cryptid]]. It simulates computing the terms of the sequence
<math display="block>H_{n+1}=\bigg\lfloor\frac{3}{2}H_n\bigg\rfloor,H_0=3,</math>
<math display="block>H_{n+1}=\bigg\lfloor\frac{3}{2}H_n\bigg\rfloor,H_0=3,</math>
Line 38: Line 38:
Bringing all terms with <math>P</math> to the left side of the equation and then substituting <math>n\leftarrow n+1</math> gives
Bringing all terms with <math>P</math> to the left side of the equation and then substituting <math>n\leftarrow n+1</math> gives
<math display="block">\textstyle P(n+1)-\frac{1}{2}P(n+3)-\frac{1}{2}P(n)=0.</math>
<math display="block">\textstyle P(n+1)-\frac{1}{2}P(n+3)-\frac{1}{2}P(n)=0.</math>
This equation has the form <math>\sum_{i=0}^k a_iP(n+i)=0</math>, which can be solved using the characteristic polynomial <math>f(z)=\sum_{i=0}^k a_iz^i</math>. In this instance we get <math display="inline">f(z)=-\frac{1}{2}+z-\frac{1}{2}z^3</math>, whose solutions are given by
This equation has the form <math>\sum_{i=0}^k a_iP(n+i)=0</math>, which can be solved using the zeroes of the characteristic polynomial <math>f(z)=\sum_{i=0}^k a_iz^i</math>. In this instance we get <math display="inline">f(z)=-\frac{1}{2}+z-\frac{1}{2}z^3</math>, whose zeroes are given by
<math display="block">\textstyle z_0=\frac{\sqrt{5}-1}{2},\qquad\qquad z_1=1,\qquad\qquad z_2=-\frac{1+\sqrt{5}}{2}.</math>
<math display="block">\textstyle z_0=\frac{\sqrt{5}-1}{2},\qquad\qquad z_1=1,\qquad\qquad z_2=-\frac{1+\sqrt{5}}{2}.</math>
For each real root <math>z_i</math> with multiplicity 1, its fundamental solution is <math>c_i{\left(z_i\right)}^n</math>, and combining these fundamental solutions produces the general solution. Therefore,
For each real root <math>z_i</math> with multiplicity 1, its fundamental solution is <math>c_i{\left(z_i\right)}^n</math>, and combining these fundamental solutions produces the general solution. Therefore,

Revision as of 02:08, 14 February 2025

HYDRA PAGE REVAMP (WIP)

Unsolved problem:
Does Hydra run forever?

1RB3RB---3LA1RA_2LA3RA4LB0LB0LA (bbch)

Hydra is a BB(2,5) Cryptid. It simulates computing the terms of the sequence

halting if and only if there exists a point in the sequence where the number of even terms up to that point exceeds twice the number of odd terms.

Analysis

Rules

Let . Then,

By scaling and translating these rules we acquire the Hydra function that relates it to Antihydra.

Proof

Consider the partial configuration . After 14 steps this configuration becomes . We note the following shift rule:

Using this shift rule, we get in steps. From here, we can observe that turns into in three steps if . By repeating this process, we acquire this rule:
With this rule, it takes steps to reach the configuration , which is the same configuration as . To summarize:
With we have . As a result, we can apply this rule times, which creates two possible scenarios:

  1. If , then in steps we arrive at . The matching complete configuration is , which in four steps becomes If then we have reached the undefined A2 transition in steps total. Otherwise, continuing for three steps gives us . Another shift rule is required here:
    This means the configuration becomes in steps, and , equal to , one step later. This gives a total of steps.
  2. If , then in steps we arrive at . The matching complete configuration is , which in four steps becomes , and then in steps. After 14 steps, we see the configuration , which turns into in steps. In two steps we get , followed by after another steps. We conclude with , equal to , one step later. This gives a total of steps.

The information above can be summarized as

Substituting for the first two cases and for the third yields the final result.

Trajectory

It takes 20 steps to reach the configuration , and from there, the Collatz-like rules are repeatedly applied. Here are the first few iterations:

After 60 million rule steps, there are 29995836 even values of and 30004165 odd values, giving a very high value. However, this does not sufficiently prove that Hydra does not halt.

A probabilistic nonhalting argument

The trajectory of values can be approximated by a random walk, where the walker can only move in step sizes +2 or -1 with equal probability, starting at position 0. The expected position of the walker after steps is , and it can be shown that the probability of the walker reaching position -1 from position is .

Proof

Let denote the probability of the random walker reaching position 0 from position . If the walker reaches position 0, it will do so either by first moving +2 with probability or first moving -1 with probability . Therefore, the recurrence relation is

Bringing all terms with to the left side of the equation and then substituting gives
This equation has the form , which can be solved using the zeroes of the characteristic polynomial . In this instance we get , whose zeroes are given by
For each real root with multiplicity 1, its fundamental solution is , and combining these fundamental solutions produces the general solution. Therefore,
The boundary condition means (since ) and , and the boundary condition requires that .

Finally, we note that reaching position -1 from position , the required condition for halting, is the same as reaching position 0 from position , so we must increment .

For these reasons, Hydra is considered to be a probviously nonhalting machine.