Turing Machine Flashcards

1
Q

what does a turing machine consist of

A
  • infinite tape divided into cells
  • read/write head
  • finite set of states
  • transition function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

explain the following in a turing machine

infinite tape

A
  • each cell can hold a single symbol from the finite alphabet
  • the tape acts as both the input/output mechanism and tghe memory of the machine
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

explain the following in a turing machine

read/write head

A
  • in can read the symbol currently under it, write a new symbol or leave it unchanged
  • it can move one cell to the left or right
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

explain the following in a turing machine

finite set of states

A
  • the machine has a finite number os states with a start state and one or more halting states
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

explain the following in a turing machine

transition function

A
  • determines the machine actions based on the current state and ther symboil being read
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

explain how a turing machine works

A
  1. start in the initial state with the tape containing the input
  2. follow the transition rules based on the current state and the symbol under the head
  3. continue processing symbols and transitioning between states until a halting state is reached
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is a universal turing machine

A
  • a turing machine that can read the description of another turing machine and its input from its tape
  • a single machine that can perform any computation that any other turing machine can perform
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

why can a universal turing machine be cosidered to be more powerful than any computer you can purchase

A

it has an infinte amount of memory

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

How can transition rules be represented in a Turing machine?

A
  • Transition Function: A function that maps the current state and symbol under the head to a new state, symbol to write, and direction to move.
    Example: (current state, current symbol) → (new state, new symbol, direction)
  • State Transition Diagram: A graphical representation where:
  1. States are circles, including start and halting states.
  2. Transitions are arrows between states, labeled with the symbol that triggers the transition and the new symbol to write.
  3. Each arrow represents the movement of the head (left or right) after the symbol is written.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly