Week 5 Flashcards

1
Q

WHAT IS THE CHURCH TURING THESIS

A

In the 1930s, the Church-Turing Thesis came to be widely believed:
∙ all existing reasonable definitions of “algorithm” are
equivalent;
∙ any new reasonable definition of “algorithm” will turn out to
be equivalent to an existing one.

it cannot be proved.

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

What is the store for a turing machine?

A

A tape where the symbol under the tape head comes from an alphabet that may include a special blank symbol.

S_ is the current store for the turing machine

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

What are the 3 formalisations of effective computability?

A

The Turing Machine
the register machine
the flowchart machine

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

TM syntax

A

left
right
write (s)
if s goto l1 else l2

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

Readin and readout for TM

A

Readin positions the head to the left of the first input char

Readout operation is to the right of the current head position, to but excluding the first blank.

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

TM example

A
  1. right
  2. if B goto 10 else 3.
  3. if 0 goto 4 else 6
  4. write B
  5. if 0 goto 1 else 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

RM syntax

A

Xi := 0 reset
Xi := Xi + 1 increment
Xi := Xj
if Xi = 0 goto l1 else l2

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

What is the store for RM

A

memory which is random access

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

Difference in semantics between TM and RM

A

tape becomes a store sigma.
(l + 1, sigma[i := sigma(i) +1) if p(l) = Xi := Xi+1

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

GOTO syntax

A

similar to while

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

Rules of game of life?

A

The rules of evolution are as follows:
1 a cell with fewer than two live neighbours dies;
2 any cell with two or three live neighbours lives.
3 any cell with more than three live neighboours dies.
4 a dead cell with exactly three live neighbours becomes live.

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

Is game of life turing complete?

A

Yes, it can simulate any turing machine

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