Abelian sandpile model/Identity: Difference between revisions

m
added whitespace, changed an Or to an And, pluralized "example".
(add task to aarch64 assembly)
m (added whitespace, changed an Or to an And, pluralized "example".)
Line 5:
 
E.g. <code>s1</code> =
<pre> 1 2 0
1 2 0
2 1 1
0 1 3</pre>
</pre>
 
Orand <code>s2</code> =
<pre> 2 1 3
2 1 3
1 0 1
0 1 0</pre>
</pre>
 
Addition on sandpiles is done by adding numbers in corresponding grid areas,
so for the above:
<pre>
<pre> 1 2 0 2 1 3 3 3 3
s1 + s2 = 2 1 1 + 1 0 1 = 3 1 2
0 1 3 0 1 0 0 2 3</pre>
</pre>
 
If the addition would result in more than 3 "grains of sand" in any area then
Line 33 ⟶ 39:
a chain of topplings called an "avalanche".
E.g.
<pre>
<pre> 4 3 3 0 4 3 1 0 4 1 1 0 2 1 0
3 1 2 ==> 4 1 2 ==> 4 2 2 ==> 4 2 3 ==> 0 3 3
0 2 3 0 2 3 0 2 3 0 2 3 1 2 3</pre>
</pre>
 
The final result is the stable sandpile on the right.
Line 46 ⟶ 54:
* Confirm that s1 + s2 == s2 + s1 # Show the stable results
* If s3 is the sandpile with number 3 in every grid area, and s3_id is the following sandpile:
<pre> 2 1 2
2 1 2
1 0 1
2 1 2</pre>
</pre>
: * Show that <code>s3 + s3_id == s3</code>
 
: * Show that <code>s3_id + s3_id == s3_id</code>
: * Show that <code>s3 + s3_id == s3</code>
: * Show that <code>s3_id + s3_id == s3_id</code>
 
 
Show confirming output here, with your exampleexamples.
 
Show confirming output here, with your example.
 
;References:
* https://www.youtube.com/watch?v=1MtEUErz7Gg
* https://en.wikipedia.org/wiki/Abelian_sandpile_model
<br><br>
 
=={{header|AArch64 Assembly}}==