Lecture 8 - Turing Machines Flashcards

1
Q

What does a Turing Machine consist of?

A
  • finite alphabet (includes blank symbols)
  • unbounded tape of squares, each square can hold one single symbol
  • tape is unbounded in both directions
  • we can read and write to the squares
  • a start state
  • two halt states Sy and Sn - depending on output
  • the transition function / program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the transition relation in a Turing Machine do?

A

in state s , we can read a symbol on the tape , move to another state , overwrite the symbol and move left or right on the tape

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

What happens if we don’t want to overwrite the symbol we read?

A

we simply write it back to the square before moving onto the next state (

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

What happens if T halts in Sy?

A

The answer is yes

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

What happens if T halts in Sn?

A

The answer is no.

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

Main way of answering TM questions

A

pseudocode

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

What does a turing machine actually compute?

A

accepts a language that actually computes a functions f(x)

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

What does a function computed by turing return?

A

1 if the input is in the language or 0 otherwise

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

What needs to be added if our TM if we are computing a function?

A
  • we need a set of halting states
  • a function f(x) = y
    where x is the input , y is the tape on output
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How can we output 1 or 0 from the TM?

A

instead of entering Sy we wrie 1 on the tape and enter a halt state

instead of entering Sn we write 0 on the tape and enter a halt state

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

How should you go about designing a turing machine for functions?

A

Try a couple of examples, work out pattern

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

When is a language Turing-recognizable?

A

If some TM recognises it with the given input x. The turing machine will halt in Sy.

Non-recognisable means halts in Sn or fails to halt.

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

When is a language Turing-decidable?

A

When the tm decides it given an input string. The turing machine will halt in Sy - with a yes.

Non decidable means No is returned or fails to halt.

decidable is recognisable , but with a decision problem

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

Is every decidable language recognisable?

A

Yes, but not every recognisable language is decidable.

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

When is something Turing Computable?

A

There is a turing machine M such that for any input the machine M halts with the output f(x).

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

How can turing machines be enhanced?

A
  • adding more tapes than one
  • having a 2d tape
  • could operate non-deterministically
17
Q

Do enhacements increase the power of the turing machine?

A

NO
everything recognisable , decidable or computable with an enhanced turing machine, is also recognisable , decidable or computable with a basic turing machine

18
Q

When does non-determinism add power?

A

When dealing with a pushdown automata.