Buscar

What is the purpose of the machine described in Q1? The machine performs subtraction by 2 in the unary base. The machine reads the first blank on ...

What is the purpose of the machine described in Q1?

The machine performs subtraction by 2 in the unary base.
The machine reads the first blank on the tape and then reads the first two 1's on the tape.
The machine gets stuck in an infinite loop if there are less than three 1's on the tape.
The machine reads all remaining 1's on the tape in state q4.

Essa pergunta também está no material:

Prova1_-_Victor_e_Marco1
4 pág.

Computabilidade e Complexidade Universidade PaulistaUniversidade Paulista

💡 1 Resposta

User badge image

Ed Verified user icon

O objetivo da máquina descrita na pergunta é realizar subtração por 2 na base unária. A máquina lê o primeiro espaço em branco na fita e, em seguida, lê os dois primeiros 1's na fita. Se houver menos de três 1's na fita, a máquina entra em um loop infinito. A máquina lê todos os 1's restantes na fita no estado q4.

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais