OCA:H-trees: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(11 intermediate revisions by 6 users not shown)
Line 6: Line 6:
|ruleinteger      = 261634
|ruleinteger      = 261634
|reversal        = B/S01234568
|reversal        = B/S01234568
}}{{stub}}{{notability}}
}}{{stub}}
'''H-trees''' is a [[Life-like cellular automaton]] with [[rulestring]] B1/S012345678.
'''H-trees''', also known as '''Christmas Life''', is a [[Life-like cellular automaton]] with [[rulestring]] B1/S012345678.


It is an exploding rule where H-shaped branches grow from pattern borders.
It is an exploding rule where H-shaped branches grow from pattern borders.


No gliders can exist in this rule: with B1, any pattern expands in all directions.
No [[spaceship]]s can exist in this rule: with B1, any pattern expands in all directions and with S012345678, any cell in any pattern would never die.


{{EmbedViewer
It seems that for any finite initial pattern, choosing any cell and casting a ray pointing diagonally from it, the sequence of eventual states of cells along this ray becomes periodic, with a period of a power of <tt>2</tt>.
 
==Single-cell evolution==
The number of cells on generation <tt>n</tt> is given by the OEIS sequence <tt>{{OEIS|A151725|tt=tt}}(n+1)</tt>, and the number of births in the <tt>n</tt>th iteration is given by its first differences, <tt>{{OEIS|A151726|tt=tt}}(n+1)</tt>. Recurrences are known that allow these sequences to be computed efficiently, but explicit forms and generating functions are not.<!--Finding a logarithmic-time g.f. is harder than one would expect :-(--><ref>David Applegate, Omar E. Pol and N. J. A. Sloane, [https://oeis.org/A000695/a000695_1.pdf ''The Toothpick Sequence and Other Sequences from Cellular Automata''], Congressus Numerantium, Vol. 206 (2010), p. 30-34</ref>
 
It "completes" a <tt>(2*n+1)<sup>2</sup></tt> square on generations <tt>n</tt> that are one less than powers of <tt>2</tt>, and on generations shortly preceding these, the set of cells within the neighbourhood of its living cells approaches the {{LinkWikipedia|T-square_(fractal)|T-square fractal|nobullet=no|nosuffix=no}}.
 
On generation <tt>2<sup>n</sup>-1</tt>, within the <tt>(2<sup>n+1</sup>-1)<sup>2</sup></tt> bounding box, it has
:*<tt>(16*4<sup>n</sup>+24*n-7)/9</tt> alive cells, and a total edge length of <tt>4*(8*4<sup>n</sup>+12*n-17)/9</tt>. Its asymptotic density is <tt>4/9</tt>, and cells have on average <tt>2</tt> exposed edges.
:Apart from an asymptotically infinitesimal proportion of cells along the diagonals, it creates a binary tree structure at which trunk cells have two edges, branching cells have only one and leaf cells have three.
:*<tt>4*(4<sup>n</sup>+6*n-10)/9</tt> branch cells, density <tt>1/9</tt> (for <tt>n>=1</tt>)
:*<tt>4*(2*4<sup>n</sup>-6*n+7)/9</tt> stem cells, density <tt>2/9</tt> (for <tt>n>=1</tt>)
:*<tt>4*(4<sup>n</sup>+6*n-1)/9</tt> leaf cells, density <tt>1/9</tt>
:When two branches of the tree meet, they exhibit {{LinkWikipedia|Crown_shyness|name=crown shyness|nobullet=no|nosuffix=no}}, and a <tt>3×(2<sup>n</sup>-1)</tt> rectangular region is left unfilled.
:*<tt>(5*4<sup>n</sup>-24*n-32)/6</tt> dead cells are in these rectangles, with density <tt>5/24</tt>,
:*<tt>(4<sup>n</sup>+32)/6-4*n</tt> cells are in the rectangles' central rows or columns (off with no on neighbours), with density <tt>1/24</tt>.<!--
:The dead cells are all connected by paths of orthogonal moves through edges, and form a tree also. Excluding the shyness rectangles, there are
:*<tt>4<sup>n</sup>/2</tt> leaves, density <tt>1/8</tt> (for <tt>n>=1</tt>)
:*stems
:*branches [hmm, I cannot seem to get my generating-function-finding program to regress for these]-->
 
It can be seen as a generalisation from the [[von Neumann neighbourhood]] to the [[Moore neighbourhood]] of the {{LinkWikipedia|Ulam–Warburton_automaton|name=Ulam-Warburton automaton|nosuffix=nosuffix|nobullet=nobullet}} (encodable as the [[isotropic non-totalistic rule]] B1e2ak3nqy4ny5e/S012345678, with population sequence <tt>{{OEIS|A147562|tt=tt}}</tt>). The change to population on the <tt>n</tt>th iteration is <tt>4*3<sup>n.bit_count()-1</sup></tt>, where <tt>n.bit_count()</tt> is the number of bits set to <tt>1</tt> in <tt>n</tt>'s binary representation.
 
It may also be defined in the [[hexagonal grid]] as B1/S0123456H, with population sequence <tt>{{OEIS|A151723|tt=tt}}</tt>.
{{gallery top}}
{{gallery item|{{EmbedViewer
|rle          = x = 1, y = 1, rule = B1/S012345678
|rle          = x = 1, y = 1, rule = B1/S012345678
o!
o!
|viewerconfig = #C [[ THUMBNAIL THUMBSIZE 3 ZOOM 12 THEME 6 GRID OFF WIDTH 750 HEIGHT 750 GPS 5 AUTOSTART T 0 PAUSE 3 T 27 PAUSE 2 LOOP 28 ]]
|viewerconfig = #C [[ THUMBNAIL THUMBSIZE 3 ZOOM 12 THEME 6 GRID OFF WIDTH 750 HEIGHT 750 GPS 5 AUTOSTART T 0 PAUSE 3 T 27 PAUSE 2 LOOP 28 ]]
|position    = center
|position    = center
|caption      = Starting with only the origin occupied, repeatedly add to the crystal any site with exactly 1 of its 8 neighbors previously occupied<ref name="extras_moore_moore" />
|caption      = Starting with only the origin occupied, repeatedly add to the crystal any site with exactly 1 of its 8 neighbors previously occupied
|style        = width:300px;
|style        = width:300px;
}}
}}}}
{{gallery item|{{EmbedViewer
|rle          = x = 1, y = 1, rule = B1e2ak3nqy4ny5e/S012345678
o!
|viewerconfig = #C [[ THUMBNAIL THUMBSIZE 3 ZOOM 12 THEME 6 GRID OFF WIDTH 750 HEIGHT 750 GPS 5 AUTOSTART T 0 PAUSE 3 T 27 PAUSE 2 LOOP 28 ]]
|position    = center
|caption      = The Ulam-Warburton automaton
|style        = width:300px;
}}}}
{{gallery item|{{EmbedViewer
|rle          = x = 7, y = 3, rule = B1/S0123456H
o!
|viewerconfig = #C [[ X 0 Y 0 THUMBNAIL THUMBSIZE 3 ZOOM 12 THEME 6 GRID OFF WIDTH 750 HEIGHT 750 GPS 5 AUTOSTART T 0 PAUSE 3 T 27 PAUSE 2 LOOP 28 ]]
|position    = center
|caption      = The hexagonal equivalent
|style        = width:300px;
}}}}
{{gallery bottom}}
 
==See also==
* {{rl|Life without death}}, a rule with similar survival conditions


== References==
== References==
<references>
<references />
<ref name="extras_moore_moore">[https://web.archive.org/web/20150926005306/http://psoup.math.wisc.edu/extras/moore/moore.html Totalistic Growth Rules with Moore Neighborhood]</ref>
</references>


==External links==
==External links==
* [https://web.archive.org/web/20150926005306/http://psoup.math.wisc.edu/extras/moore/moore.html Totalistic Growth Rules with Moore Neighborhood]
* {{LinkForumThread|f=11|t=801|title=Christmas Life}}
* {{LinkForumThread|f=11|t=801|title=Christmas Life}}
* {{LinkCatagolueRule|b1s012345678}}
* {{LinkCatagolueRule|b1s012345678}}
Line 34: Line 78:


[[Category:Life-like cellular automata]]
[[Category:Life-like cellular automata]]
[[Category:Rules without death]]
[[Category:Rules without still lives]]

Latest revision as of 07:27, 18 December 2023

H-trees
x=64, y = 64, rule = B1/S012345678 ! #C [[ THEME Inverse ]] #C [[ RANDOMIZE2 THUMBLAUNCH THUMBNAIL THUMBSIZE 2 GRID ZOOM 6 WIDTH 600 HEIGHT 600 LABEL 90 -20 2 "#G" AUTOSTART PAUSE 2 GPS 8 LOOP 256 ]]
LifeViewer-generated pseudorandom soup
Rulestring 012345678/1
B1/S012345678
Rule integer 261634
Character Explosive
Black/white reversal B/S01234568
This article is a stub. You can help LifeWiki by expanding it.

H-trees, also known as Christmas Life, is a Life-like cellular automaton with rulestring B1/S012345678.

It is an exploding rule where H-shaped branches grow from pattern borders.

No spaceships can exist in this rule: with B1, any pattern expands in all directions and with S012345678, any cell in any pattern would never die.

It seems that for any finite initial pattern, choosing any cell and casting a ray pointing diagonally from it, the sequence of eventual states of cells along this ray becomes periodic, with a period of a power of 2.

Single-cell evolution

The number of cells on generation n is given by the OEIS sequence A151725(n+1), and the number of births in the nth iteration is given by its first differences, A151726(n+1). Recurrences are known that allow these sequences to be computed efficiently, but explicit forms and generating functions are not.[1]

It "completes" a (2*n+1)2 square on generations n that are one less than powers of 2, and on generations shortly preceding these, the set of cells within the neighbourhood of its living cells approaches the H-trees .

On generation 2n-1, within the (2n+1-1)2 bounding box, it has

  • (16*4n+24*n-7)/9 alive cells, and a total edge length of 4*(8*4n+12*n-17)/9. Its asymptotic density is 4/9, and cells have on average 2 exposed edges.
Apart from an asymptotically infinitesimal proportion of cells along the diagonals, it creates a binary tree structure at which trunk cells have two edges, branching cells have only one and leaf cells have three.
  • 4*(4n+6*n-10)/9 branch cells, density 1/9 (for n>=1)
  • 4*(2*4n-6*n+7)/9 stem cells, density 2/9 (for n>=1)
  • 4*(4n+6*n-1)/9 leaf cells, density 1/9
When two branches of the tree meet, they exhibit crown shyness , and a 3×(2n-1) rectangular region is left unfilled.
  • (5*4n-24*n-32)/6 dead cells are in these rectangles, with density 5/24,
  • (4n+32)/6-4*n cells are in the rectangles' central rows or columns (off with no on neighbours), with density 1/24.

It can be seen as a generalisation from the von Neumann neighbourhood to the Moore neighbourhood of the Ulam-Warburton automaton (encodable as the isotropic non-totalistic rule B1e2ak3nqy4ny5e/S012345678, with population sequence A147562). The change to population on the nth iteration is 4*3n.bit_count()-1, where n.bit_count() is the number of bits set to 1 in n's binary representation.

It may also be defined in the hexagonal grid as B1/S0123456H, with population sequence A151723.

x = 1, y = 1, rule = B1/S012345678 o! #C [[ THUMBSIZE 2 THEME 6 GRID GRIDMAJOR 0 SUPPRESS THUMBLAUNCH ]] #C [[ THUMBNAIL THUMBSIZE 3 ZOOM 12 THEME 6 GRID OFF WIDTH 750 HEIGHT 750 GPS 5 AUTOSTART T 0 PAUSE 3 T 27 PAUSE 2 LOOP 28 ]]
Starting with only the origin occupied, repeatedly add to the crystal any site with exactly 1 of its 8 neighbors previously occupied
(click above to open LifeViewer)
x = 1, y = 1, rule = B1e2ak3nqy4ny5e/S012345678 o! #C [[ THUMBSIZE 2 THEME 6 GRID GRIDMAJOR 0 SUPPRESS THUMBLAUNCH ]] #C [[ THUMBNAIL THUMBSIZE 3 ZOOM 12 THEME 6 GRID OFF WIDTH 750 HEIGHT 750 GPS 5 AUTOSTART T 0 PAUSE 3 T 27 PAUSE 2 LOOP 28 ]]
The Ulam-Warburton automaton
(click above to open LifeViewer)
x = 7, y = 3, rule = B1/S0123456H o! #C [[ THUMBSIZE 2 THEME 6 GRID GRIDMAJOR 0 SUPPRESS THUMBLAUNCH ]] #C [[ X 0 Y 0 THUMBNAIL THUMBSIZE 3 ZOOM 12 THEME 6 GRID OFF WIDTH 750 HEIGHT 750 GPS 5 AUTOSTART T 0 PAUSE 3 T 27 PAUSE 2 LOOP 28 ]]
The hexagonal equivalent
(click above to open LifeViewer)


See also

References

  1. ↑ David Applegate, Omar E. Pol and N. J. A. Sloane, The Toothpick Sequence and Other Sequences from Cellular Automata, Congressus Numerantium, Vol. 206 (2010), p. 30-34