The upper register index is the largest register number occurring in an instruction of , with value zero if only register is used. A configuration records the current state and the contents of every register up to that index.
For input , let be the initial configuration: the designated initial state, the words of in the input registers, and the empty word in every remaining register. Recursively, if is halting, keep it fixed; otherwise let be the unique configuration into which transforms it. The resulting sequenceis the computation sequence.
Choose an input word of length at least . The final value has length at most one. Every symbol initially in register must either be deleted or transferred elsewhere, and either action begins with a remove instructionNo other instruction can lower the length of register . Consequently at leastsuch remove instructions occur in this computation. Since words of arbitrary length exist, the assertion follows.
The finite control first rejects the empty word. While the next input symbol is , remove it from register and append one marker to register . On seeing the first , enter a second phase. For every removed from register , remove one marker from register ; reject if a marker is unavailable or if an is encountered in this phase. Accept exactly when both registers become empty simultaneously.
The first phase stores precisely the number of 's, and the second compares it with the number of 's. Register is the only scratch register, so the construction is a one-register-machine computation in the question's terminology. Therefore
Consider computations while a terminal block of 's is removed from register . Until that block has disappeared, the available instruction and next state depend on the current state and on the visible , not on the untouched prefix .
Take a block longer than . Record the state after each successive has been removed. Two records have the same state , by the pigeonhole principle. If the corresponding removed tail lengths are , the same finite instruction sequences work in front of every prefix . Thus there are fixed times such thatfor every word .
Suppose a zero-register machine decided , and choose as in part (d). Take and setThenwhereasPart (d) puts both computations into the identical configuration . Determinism forces their subsequent computations and outputs to agree, a contradiction. ThereforeThis is the one-register separation for equal block lengths.
Articles by others on the same topic
There are currently no matching articles.