Title: Linear Bounded Automata LBAs
1Linear Bounded AutomataLBAs
2Linear Bounded Automata (LBAs) are the same as
Turing Machines with one difference
The input string tape space is the only tape
space allowed to use
3Linear Bounded Automaton (LBA)
Input string
Working space in tape
Left-end marker
Right-end marker
All computation is done between end markers
4We define LBAs as NonDeterministic
Open Problem
NonDeterministic LBAs have same power
with Deterministic LBAs ?
5Example languages accepted by LBAs
Conclusion
LBAs have more power than NPDAs
6Later in class we will prove
LBAs have less power than Turing Machines
7A Universal Turing Machine
8A limitation of Turing Machines
Turing Machines are hardwired
they execute only one program
Real Computers are re-programmable
9Solution
Universal Turing Machine
Attributes
- Reprogrammable machine
- Simulates any other Turing Machine
10Universal Turing Machine
simulates any other Turing Machine
Input of Universal Turing Machine
Description of transitions of
Initial tape contents of
11Tape 1
Three tapes
Description of
Universal Turing Machine
Tape 2
Tape Contents of
Tape 3
State of
12Tape 1
Description of
We describe Turing machine as a string of
symbols We encode as a string of symbols
13Alphabet Encoding
Symbols
Encoding
14State Encoding
States
Encoding
Head Move Encoding
Move
Encoding
15Transition Encoding
Transition
Encoding
separator
16Machine Encoding
Transitions
Encoding
separator
17Tape 1 contents of Universal Turing Machine
encoding of the simulated machine as
a binary string of 0s and 1s
18A Turing Machine is described with a binary
string of 0s and 1s
Therefore
The set of Turing machines forms a language
each string of the language is the binary
encoding of a Turing Machine
19Language of Turing Machines
(Turing Machine 1)
L 010100101, 00100100101111,
111010011110010101,
(Turing Machine 2)
20Countable Sets
21Infinite sets are either
22Countable set
There is a one to one correspondence between
elements of the set and positive integers
23Example
The set of even integers is countable
Even integers
Correspondence
Positive integers
corresponds to
24Example
The set of rational numbers is countable
Rational numbers
25Naïve Proof
Rational numbers
Correspondence
Positive integers
26Better Approach
27(No Transcript)
28(No Transcript)
29(No Transcript)
30(No Transcript)
31(No Transcript)
32Rational Numbers
Correspondence
Positive Integers
33We proved the set of rational numbers is
countable by describing an enumeration
procedure
34Definition
Let be a set of strings
An enumeration procedure for is a Turing
Machine that generates all strings of one
by one
and Each string is generated in finite time
35strings
Enumeration Machine for
output
(on tape)
Finite time
36Enumeration Machine
Configuration
Time 0
Time
37Time
Time
38Observation
A set is countable if there is an enumeration
procedure for it
39Example
The set of all strings is countable
Proof
We will describe the enumeration procedure
40Naive procedure
Produce the strings in lexicographic order
Doesnt work strings starting with
will never be produced
41Proper Order
Better procedure
1. Produce all strings of length 1 2. Produce
all strings of length 2 3. Produce all strings
of length 3 4. Produce all strings of length
4 ..........
42length 1
Produce strings in Proper Order
length 2
length 3
43Theorem
The set of all Turing Machines is countable
44Enumeration Procedure
Repeat
1. Generate the next binary string of 0s
and 1s in proper order 2. Check if the string
describes a Turing Machine if
YES print string on output tape if
NO ignore string
45Uncountable Sets
46A set is uncountable if it is not countable
Definition
47Theorem
Let be an infinite countable set The
powerset of is uncountable
48Proof
Since is countable, we can write
Elements of
49Elements of the powerset have the form
50We encode each element of the power set with a
binary string of 0s and 1s
Encoding
Powerset element
51Lets assume (for contradiction) that the
powerset is countable.
Then we can enumerate the
elements of the powerset
52Powerset element
Encoding
53Take the powerset element whose bits are the
complements in the diagonal
54New element
(birary complement of diagonal)
55The new element must be some of the powerset
56Since we have a contradiction
The powerset of is uncountable
57An Application Languages
Example Alphabet
The set of all Strings
infinite and countable
58Example Alphabet
The set of all Strings
infinite and countable
A language is a subset of
59Example Alphabet
The set of all Strings
infinite and countable
The powerset of contains all languages
uncountable
60Languages uncountable
Turing machines countable
There are infinitely many more languages than
Turing Machines
61Conclusion
There are some languages not accepted by Turing
Machines
These languages cannot be described by algorithms