Week 3 - Turing Machines: Computation Flashcards

1
Q

What happens when a turing machine transitions?

A

It reads the item at the tape head on the tape. Depending on the symbol, it will decide what state to transition to, and it will also write a specified symbol on the tape where the tape head is. Then the tape head moves a certain number of spaces to the left or right.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you write down the detail of a transition as a configuration?

A

yields

e.g.
qCurrent a1 a2 a3 … aN yields b qNew a2 a3 … aN
Where b is the symbol written to the tape during transition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What happens if the tape head tries to move left when it is on the left most end of the tape?

A

The head remains in the same place and the computation continues.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What happens if the tape head trys to move right when it is on the right most symbol of the input string in the tape?

A

It can move right since the tape has empty spaces to the right of the input string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do you write in a configuration to show that you are now reading empty memory from the tape (No longer on the input string)

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you write the empty symbol in Turing machines?

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What changes in a Turing machine while it computes?

A

Current state
Current tape content
Tape head location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you write down the starting configuration?

A

q a1 a2 a3 … aN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you write down a transition using computation terms?

A

T(q, a) = (q1, b, R or L)
Where q is the current state, q1 is the new state.
a is the input symbol on the tape head, b is what is written to the tape at the tape head.
R or L is Right or Left and T is the transistion function symbol.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the accepting configuration?

A

The configuration in which the state is qAccept.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the rejecting configuration?

A

The configuration in which the state is qReject.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the two halting configurations?

A

Accepting configuration

Rejecting configuration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you define a turing machine accepts an input in computational terms?

A

A Turing machine accepts an input w ∈ Σ* if there exists a sequence of configurations:
C1, C2, C3, …, Ck
such that
i) C1 is the start configuration of input w
ii) for each i, where 0 > i > k Ci yields Ci+1
iii) Ck is an accepting configuration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a language called if it is recognised by a Turing machine?

A

A Turing-recognisable language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a Turing machine called if it halts on all inputs? e.g. it nevers loops infinitely, and only accepts or rejects all inputs.

A

A Decider.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a language called if it is recognised by a Turing machine that is a Decider?

A

A Turing-decidable language.