1 other models of computation costas busch - lsu
DESCRIPTION
3 Church’s Thesis: All models of computation are equivalent Turing’s Thesis: A computation is mechanical if and only if it can be performed by a Turing Machine Costas Busch - LSUTRANSCRIPT
1
Other Models of Computation
Costas Busch - LSU
2
Models of computation:
•Turing Machines•Recursive Functions•Post Systems•Rewriting Systems
Costas Busch - LSU
3
Church’s Thesis:
All models of computation are equivalent
Turing’s Thesis: A computation is mechanical if and only if it can be performed by a Turing Machine
Costas Busch - LSU
4
Church’s and Turing’s Thesis are similar:
Church-Turing Thesis
Costas Busch - LSU
5
Recursive Functions
An example function:
1)( 2 nnfDomain Range3 1010)3( f
Costas Busch - LSU
6
We need a way to define functions
We need a set of basic functions
Costas Busch - LSU
7
Zero function: 0)( xz
Successor function: 1)( xxs
Projection functions: 1211 ),( xxxp
2212 ),( xxxp
Basic Primitive Recursive Functions
Costas Busch - LSU
8
Building complicated functions:
Composition: )),(),,((),( 21 yxgyxghyxf
Primitive Recursion:
)),(),,(()1,( 2 yxfyxghyxf
)()0,( 1 xgxf
Costas Busch - LSU
9
Any function built fromthe basic primitive recursive functionsis called:
Primitive Recursive Function
Costas Busch - LSU
10
A Primitive Recursive Function: ),( yxadd
xxadd )0,( (projection)
)),(()1,( yxaddsyxadd
(successor function)
Costas Busch - LSU
11
5 )4(
))3(( )))0,3(((
))1,3(()2,3(
sssaddss
addsadd
Costas Busch - LSU
12
),( yxmult
0)0,( xmult
)),(,()1,( yxmultxaddyxmult
Another Primitive Recursive Function:
Costas Busch - LSU
13
Theorem: The set of primitive recursive functions is countable
Proof: Each primitive recursive function can be encoded as a string
Enumerate all strings in proper order
Check if a string is a functionCostas Busch - LSU
14
Theorem there is a function that is not primitive recursive
Proof:Enumerate the primitive recursive functions
,,, 321 fff
Costas Busch - LSU
15
Define function 1)()( ifig i
g differs from every if
g is not primitive recursive
END OF PROOFCostas Busch - LSU
16
A specific function that is notPrimitive Recursive:
Ackermann’s function:
)),(,1()1,()1,1()0,(
1),0(
yxAxAyxAxAxA
yyA
Grows very fast, faster than any primitive recursive function
Costas Busch - LSU
17
Recursive Functions
0),(such that smallest )),(( yxgyyxgy
Accerman’s function is a Recursive Function
Costas Busch - LSU
18
Primitive recursive functions
Recursive Functions
Costas Busch - LSU
19
Post Systems• Have Axioms
• Have Productions
Very similar with unrestricted grammars
Costas Busch - LSU
20
Example: Unary Addition
Axiom: 1111
Productions:
1111
321321
321321VVVVVVVVVVVV
Costas Busch - LSU
21
111111111111111111
11 321321 VVVVVV
11 321321 VVVVVV
A production:
Costas Busch - LSU
22
Post systems are good for proving mathematical statements from a set of Axioms
Costas Busch - LSU
23
Theorem: A language is recursively enumerable if and only if a Post system generates it
Costas Busch - LSU
24
Rewriting Systems
• Matrix Grammars
• Markov Algorithms
• Lindenmayer-Systems
They convert one string to another
Very similar to unrestricted grammarsCostas Busch - LSU
25
Matrix GrammarsExample:
213
22112
211
,:,:
:
SSPcbSSaSSP
SSSP
A set of productions is applied simultaneously
Derivation:
aabbccccbbSaaScbSaSSSS 212121
Costas Busch - LSU
26
213
22112
211
,:,:
:
SSPcbSSaSSP
SSSP
}0:{ ncbaL nnn
Theorem: A language is recursively enumerable if and only if a Matrix grammar generates itCostas Busch - LSU
27
Markov Algorithms
Grammars that produce
Example:
.
SSaSbSab
Derivation:
SaSbaaSbbaaabbb
Costas Busch - LSU
28
.
SSaSbSab
}0:{ nbaL nn
Costas Busch - LSU
29
In general: }:{*
wwL
Theorem:
A language is recursively enumerable if and only if a Markov algorithm generates it
Costas Busch - LSU
30
Lindenmayer-SystemsThey are parallel rewriting systems
Example: aaa
aaaaaaaaaaaaaaa Derivation:
}0:{ 2 naLn
Costas Busch - LSU
31
Lindenmayer-Systems are not generalAs recursively enumerable languages
Extended Lindenmayer-Systems: uyax ),,(
Theorem: A language is recursively enumerable if and only if an Extended Lindenmayer-System generates it
context
Costas Busch - LSU