Finite Automata - Turing, Study notes of Theory of Automata

In this document topics covered which are Turing Machines, The Language Hierarchy, Languages accepted by Turing Machines, Regular Language Definition, The Tape, The Input String.

Typology: Study notes

2010/2011

Uploaded on 09/03/2011

krithika
krithika 🇮🇳

4.4

(58)

96 documents

1 / 87

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
Turing Machines
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57

Partial preview of the text

Download Finite Automata - Turing and more Study notes Theory of Automata in PDF only on Docsity!

Turing Machines

The Language Hierarchy

a *

Regular Languages

Context-Free Languages

n n

a b

R

ww

n n n

a b c

ww

a *b *

A Turing Machine

...... ......

Tape

Read-Write head

Control Unit

The Tape

...... ......

Read-Write head

No boundaries -- infinite length

The head moves Left or Right

...... ......

Example:

Time 0

...... ......

Time 1

  1. Reads
  2. Writes

a (^) b a c

a (^) b (^) k c

a

k

  1. Moves Left

...... ......

Time 1

a (^) b (^) k c

...... ......

Time 2

a f k c

  1. Reads
  2. Writes

b

f

  1. Moves Right

...... ......    

Blank symbo

head

a (^) b a c 

Input string

Remark: the input string is never empty

States & Transitions

1

q 2

q

a b,L

Read

Write Move Left

1

q 2

q

a b,R

Move Right

...... ......   a^ b a c   

Time 1

1

q 2

q

a b,R

...... ......   a^ b (^) b c   

Time 2

1

q

2

q

...... ......   a^ b a c   

Time 1

1

q 2

q

a b,L

...... ......   a^ b (^) b c   

Time 2

1

q

2

q

Example:

Determinism

1

q

2

a b,R q

Allowed Not^ Allowed

3

q b  d,L

1

q

2

a b,R q

3

q a  d,L

No epsilon transitions allowed

Turing Machines are deterministic

Partial Transition Function

1

q

2

a b,R q

3

q b  d,L

...... ......   a^ b a c   

1

q

Example:

No transition

for input symbolc

Allowed:

Example:

...... ......   a^ b a c   

1

q

1

q

2

a b,R q

3

q b  d,L

No possible transition

HALT!!!

Final States

1

q 2

q (^) Allowed

1

q 2

q (^) Not Allowed

  • (^) Final states have no outgoing transitions
  • (^) In a final state the machine halts