Computability Flashcards
(11 cards)
What is the definition of Turing computable?
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 is a multi-tape Turing machine represented a single tape Turing machine?
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.
What four processes are native to loop programmes?
- Addition (xi := xj + c)
- Subtraction (xi := xj - c)
- Composition (P0;P1)
- Loop (LOOP xi DO P END)
What is the variable x0 used for?
x0 stored the value of the computation after execution
How is IF xi != 0 THEN P END written in the LOOP language?
xj := 0
LOOP xi DO xj := 1 END
LOOP xj DO P
How is IF xi := 0 THEN P END written in the LOOP language?
xj := 1
LOOP xi DO xj := 0 END
LOOP xj DO P END
What type of function can loop programs compute?
Loop programs can only compute total functions, as every LOOP program terminates after a finite amount of steps.
What type of functions can while loops compute?
While programs can compute partial functions
How is LOOP x DO P END simulated in a while program?
y := x
WHILE y != 0 DO
y := y - 1;
P
END
How is WHILE xi !+ 0 DO P END simulated in a GOTO program?
L1: IF xi = 0 THEN GOTO L4;
L2: P;
L3: GOTO L1;
L4: …
What is the Kleene Normal Form for WHILE Programs?