What would the state diagram look like for a Turing Machine that computes the next string in lexicographical order over alphabet Σ = {1, 2, 3}? String size is 4, i.e ---1, ---2, ---3, --11, --12, etc...
Already tried figuring it out from Michael Sipser's Introduction to Theory of Computation with no luck. Also tried to look it up online, again with no luck.
Thanks in advance!