Turing machine versions Flashcards

1
Q

For every TM with multiple tapes there is an equal machine with one tape

A

Combine all k tapes Into one tape with 2k lanes. Un-even lanes are the tapes letters and the even lanes are the head’s location.

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

Non deterministic turing machine

A

A turing machine that in each step might end up in a couple of different states. Can use an NTM for acceptability with no restrictions. For Decidablity, only if all compute branches are finite.

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

Order in the “world relm”

A

short words first, words of same length are lexicographically ordered.

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

Enumerating Turing Machine

A

A turing machine with no input that writes on the tape all the words in a certain language.

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

Enumeratable language

A

A language L is enumeratable if there is an ETM that generates all the words in the language

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

L is enumeratable <-> L is acceptable

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

Universal program line 1
Z <- Xn+1 +1

A

The variable Xn+1 is the program number, which is reduced by one originally, so we reverse that.

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

Universal program line 2
S <- ∏(Pi)^xi

A

Code all the variables into one viral be known as the universal variable

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

Universal program line 3
k <- 1

A

initialize the variable k to count how many lines of the program we completed

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

Universal program line 3
If k = Lt(Z) + 1OR k = 0 GOTO F

A

If k equals the number of lines in the program or we went to a non existing label (k=0) than end the run

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

Universal program line 4-5
U <- r(Zk)
P <-Pr(U) + 1

A

The Zk line is coded to
#(Ik)=<a,<b,c»
So here U = <b,c>
P is the prime corresponding to the variable v

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

Universal program:

If l(U) = 0 GOTO N
[N] K <- k+1
GOTO C

A

l(U) = b, the action to be taken. If it is 0 just increment the counter by one and go back to the loop.

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

Universal program:

If l(U) = 1 GOTO A
….
[A] S <- S*P

A

l(U) = b, and b==1 means to do the action +1.
S <- S*P adds one to the variable corresponding to p. Since the variables are coded into S.

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

Universal program:

If ~(P|S) GOTO N
….
[N] K <- k+1
GOTO C

A

Check if s is divisible by P. If it isn’t It means that p is 0. This check is to make sure it isn’t 0, because if it is then the minus operation can’t do anything with it. The same for GOTO, if the variable is 0 there is nowhere to go.

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

Universal program:

If l(U) = 2 GOTO M
[M] S <- [S/P]
GOTO N

A

If the action is 2, it is a minus operation. In this case we got to M, Which reduces the variable corresponding to p.

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

Universal program:

k <- min[l(Z)I +2 = l(U)]

A

Look for the first line in the program that has the label that we are supposed to go to. If we find it then k now has that value. If not, than k is 0, and the program is done.