Computability Flashcards

(11 cards)

1
Q

What is the definition of Turing computable?

A

A function is Turing computable if and only if there exists a Turing machine that will halt on an accepted input in a finite number of steps and in a final state.

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

How is a multi-tape Turing machine represented a single tape Turing machine?

A

The tape of the single tape machine is split into 2k “chords” with k cords representing the values written on its corresponding tape, and the other chords representing the head position in the MT Turing Machine.

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

What four processes are native to loop programmes?

A
  1. Addition (xi := xj + c)
  2. Subtraction (xi := xj - c)
  3. Composition (P0;P1)
  4. Loop (LOOP xi DO P END)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the variable x0 used for?

A

x0 stored the value of the computation after execution

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

How is IF xi != 0 THEN P END written in the LOOP language?

A

xj := 0
LOOP xi DO xj := 1 END
LOOP xj DO P

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

How is IF xi := 0 THEN P END written in the LOOP language?

A

xj := 1
LOOP xi DO xj := 0 END
LOOP xj DO P END

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

What type of function can loop programs compute?

A

Loop programs can only compute total functions, as every LOOP program terminates after a finite amount of steps.

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

What type of functions can while loops compute?

A

While programs can compute partial functions

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

How is LOOP x DO P END simulated in a while program?

A

y := x
WHILE y != 0 DO
y := y - 1;
P
END

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

How is WHILE xi !+ 0 DO P END simulated in a GOTO program?

A

L1: IF xi = 0 THEN GOTO L4;
L2: P;
L3: GOTO L1;
L4: …

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

What is the Kleene Normal Form for WHILE Programs?

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