This is another question related to the (still open) nice question "Alphabet of single-tape Turing machine" by Emanuele Viola. I describe the question very informally (perhaps it has a trivial solution, so I will delete it).
Idea: build a TM that sweeps the input tape from left to right, and right to left "adding" to each symbol an incremental value (and trying to use all available symbols).
Let $\Sigma_4 = \{.,0,1,2\}$ be a 4 symbols alphabet.
We map each pair of symbols to an integer according to the following table:
00->0 10->4 20->8 .0->12
01->1 11->5 21->9 .1->13
02->2 12->6 22->10 .2->14
0.->3 1.->7 2.->11
Informally, the dot "." is used like the symbol "$3$". So, we can encode an integer in [0..14] using two symbols. The pair "$..$" will be used as a separator.
We informally define a function that "sweeps" the input from left to right - processing 2 symbols at once - and adds the last integer written on the tape to the current one modulo 15. For example (left-right sweep):
>01 00 11 01 10 11 Decoded: >1 0 5 1 4 5
01 >00 11 01 10 11 [1 0] 5 1 4 5
01 01 >11 01 10 11 1 [1 5] 1 4 5
01 01 12 >01 10 11 1 1 [6 1] 4 5
01 01 12 13 >10 11 1 1 6 [7 4] 5
01 01 12 13 2. >11 1 1 6 7 [11 5]
01 01 12 13 2. 11 1 1 6 7 11 1
Then it do the same thing from right to left (right-left sweep):
01 01 12 13 2. 11< Decoded: 1 1 6 7 11 1<
01 01 12 13 2.< 11 1 1 6 7 [11 1]
01 01 12 13< .0 11 1 1 6 [7 12] 1
01 01 12< 10 .0 11 1 1 [6 4] 12 1
01 01< 22 10 .0 11 1 [1 10] 4 12 1
01< 2. 22 10 .0 11 [1 11] 10 4 12 1
.0 2. 22 10 .0 11 12 11 10 4 12 1
Now we define:
$\displaylines{ L = \{ x \in \{0,1\}^* \, s.t. \, |x| = 2^k \text{ and after } k \text{ left-right + right-left sweeps} \cr \text{ the tape contains the same number of 1s and 2s } \} } $
$L$ can be recognized by a TM using alphabet $\Sigma_4$ in $O(N \log{N})$ :
- check the length of the input string ($|x|=2^k$) and store $k$ in unary format on the left,
- make $k$ left-right, right-left sweeps
- compare the number of 1s and 2s using the usual $O(N \log{N})$ technique
Can we build a Turing machine TM3 that uses only 3 symbols $\Sigma_3 = \{.,1,2\}$ and recognizes $L$ in $O(N \log{N})$ ?
Steps 1 and 3 can be performed by a 3-symbols TM (see my previous question for details).
But step 2 seems to add "more information" and the extra symbol $2$ cannot be stored by TM3, so it must expand the input (and the resulting time complexity is $O(N^2)$).
I say "more information" because the value of each pair of symbols (at the end of the sweeps) depends on $k$ and on the number of 1s in the original input tape (at both sides).
Furthermore the bookkeeping tecnique (using the "." symbol) seems not to work in this case because the symbol itself is used in the encoding during the sweeps.