DrawWrite a Turing machine that draws this fractal matrix
WriteA 2D-Turing machine is like a program of functionregular Turing Machine but the memory tape is 2 dimensional, meaning that takesafter each step you can in addition to moving left or right also move up or down.
[...]
Your task is to create a integer n
as input and draws/displays2 dimensional Turing machine that prints the infinite fractal matrix generated by the following algorithmprocedure:
It is allowed to output/display any two (distinguishable) distinct colours/symbolscells values for the two different values in the cellsmatrix
This is code-golfCells inside the shortest solutionmatrix have to have the correct value more that 50% of the time (per language\$\lim_{steps \to \infty} \frac{correct}{steps} >0.5\$) wins
Your solution only needs to handle
n
between2
and8
Cells outside the matrix should be empty more that 50% of the time.The score of an answer is the number of distinct cell values used times the number of states of the Turing machine
This is (inclusive)code-golf the solution with the lowest score wins
related: generate the matrix
- Is this a duplicate ?
Is this a duplicate?
- Should I add an example for n=4 ?
Is my explanation clear?
Should I link to an example implementation of a 2D Turing machine?