SlideShare a Scribd company logo
1 of 60
Costas Busch - LSU 1
Turingโ€™s Thesis
Costas Busch - LSU 2
Turingโ€™s thesis (1930):
Any computation carried out
by mechanical means
can be performed by a Turing Machine
Costas Busch - LSU 3
Algorithm:
An algorithm for a problem is a
Turing Machine which solves the problem
The algorithm describes the steps of
the mechanical means
This is easily translated to computation steps
of a Turing machine
Costas Busch - LSU 4
When we say: There exists an algorithm
We mean: There exists a Turing Machine
that executes the algorithm
Costas Busch - LSU 5
Variations
of the
Turing Machine
Costas Busch - LSU 6
Read-Write Head
Control Unit
๏ƒ ๏ƒ  a a c ๏ƒ ๏ƒ  ๏ƒ b a cb b a a
Deterministic
The Standard Model
Infinite Tape
(Left or Right)
Costas Busch - LSU 7
Variations of the Standard Model
โ€ข Stay-Option
โ€ข Semi-Infinite Tape
โ€ข Multitape
โ€ข Multidimensional
โ€ข Nondeterministic
Turing machines with:
Different Turing Machine Classes
Costas Busch - LSU 8
We will prove:
each new class has the same power
with Standard Turing Machine
Same Power of two machine classes:
both classes accept the
same set of languages
(accept Turing-Recognizable Languages)
Costas Busch - LSU 9
Same Power of two classes means:
for any machine of first class1M
there is a machine of second class2M
such that: )()( 21 MLML ๏€ฝ
and vice-versa
Costas Busch - LSU 10
A technique to prove same power.Simulation:
Simulate the machine of one class
with a machine of the other class
First Class
Original Machine
1M 1M
2M
Second Class
Simulation Machine
simulates 1M
Costas Busch - LSU 11
Configurations in the Original Machine
have corresponding configurations
in the Simulation Machine
nddd ๏ฆ๏Œ๏ฆ๏ฆ 10Original Machine:
Simulation Machine: nddd ๏‚ข๏‚ข๏‚ข
๏€ช๏€ช๏€ช
๏ฆ๏Œ๏ฆ๏ฆ 10
1M
2M
1M
2M
Costas Busch - LSU 12
the Simulation Machine
and the Original Machine
accept the same strings
fdOriginal Machine:
Simulation Machine:
fd๏‚ข
Accepting Configuration
)()( 21 MLML ๏€ฝ
Costas Busch - LSU 13
Turing Machines with Stay-Option
The head can stay in the same position
๏ƒ ๏ƒ  a a c ๏ƒ ๏ƒ  ๏ƒ b a cb b a a
Left, Right, Stay
L,R,S: possible head moves
Costas Busch - LSU 14
Example:
๏ƒ ๏ƒ  a a c ๏ƒ ๏ƒ  ๏ƒ b a cb b a a
Time 1
๏ƒ ๏ƒ  b a c ๏ƒ ๏ƒ  ๏ƒ b a cb b a a
Time 2
1q 2q
1q
2q
Sba ,๏‚ฎ
Costas Busch - LSU 15
Stay-Option machines
have the same power with
Standard Turing machines
Theorem:
Proof: 1. Stay-Option Machines
simulate Standard Turing machines
2. Standard Turing machines
simulate Stay-Option machines
Costas Busch - LSU 16
1. Stay-Option Machines
simulate Standard Turing machines
Trivial: any standard Turing machine
is also a Stay-Option machine
Costas Busch - LSU 17
2. Standard Turing machines
simulate Stay-Option machines
We need to simulate the stay head option
with two head moves, one left and one right
Costas Busch - LSU 18
1q 2q
Sba ,๏‚ฎ
1q
Lba ,๏‚ฎ
2q
Rxx ,๏‚ฎ
Stay-Option Machine
Simulation in Standard Machine
For every possible tape symbol x
Costas Busch - LSU 19
1q 2q
Lba ,๏‚ฎ
1q 2q
Lba ,๏‚ฎ
Stay-Option Machine
Simulation in Standard Machine
Similar for Right moves
For other transitions nothing changes
Costas Busch - LSU 20
example of simulation
๏ƒ  ๏ƒ a a b a
1q
Stay-Option Machine:
1
๏ƒ  ๏ƒ b a b a
2q
2
1q 2qSba ,๏‚ฎ
Simulation in Standard Machine:
๏ƒ  ๏ƒ a a b a
1q
1
๏ƒ  ๏ƒ b a b a
2q
2
๏ƒ  ๏ƒ b a b a
3q
3
END OF PROOF
Costas Busch - LSU 21
A useful trick: Multiple Track Tape
๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
b
d
a
b
b
a
a
c
track 1
track 2
One symbol ),( ba
One head
helps for more complicated simulations
One Tape
It is a standard Turing machine, but each tape alphabet symbol
describes a pair of actual useful symbols
Costas Busch - LSU 22
๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
b
d
a
b
b
a
a
c
track 1
track 2
1q 2q
Ldcab ),,(),( ๏‚ฎ
1q
๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
b
d
a
b
c
d
a
c
track 1
track 2
2q
Costas Busch - LSU 23
Semi-Infinite Tape
.........a b a c ๏ƒ  ๏ƒ 
โ€ข When the head moves left from the border,
it returns back to leftmost position
The head extends infinitely only to the right
โ€ข Initial position is the leftmost cell
Costas Busch - LSU 24
Semi-Infinite machines
have the same power with
Standard Turing machines
Theorem:
Proof:
2. Semi-Infinite Machines
simulate Standard Turing machines
1. Standard Turing machines
simulate Semi-Infinite machines
Costas Busch - LSU 25
1. Standard Turing machines simulate
Semi-Infinite machines:
a. insert special symbol
at left of input string
#
a b a c ๏ƒ  ๏ƒ #
b. Add a self-loop
to every state
(except states with no
outgoing transitions)
R,##๏‚ฎ
Standard Turing Machine
๏ƒ ๏ƒ 
Semi-Infinite machine modifications
..................
Costas Busch - LSU 26
2. Semi-Infinite tape machines simulate
Standard Turing machines:
Standard machine
.........
Semi-Infinite tape machine
..................
Squeeze infinity of both directions
to one direction
Costas Busch - LSU 27
Standard machine
.........
Semi-Infinite tape machine with two tracks
..................
reference point
#
#
Right part
Left part
๏ƒ  ๏ƒ  ๏ƒ a b c d e
ac b
d e ๏ƒ  ๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
Costas Busch - LSU 28
1q
2q
R
q2
L
q1
L
q2 R
q1
Left part Right part
Standard machine
Semi-Infinite tape machine
Costas Busch - LSU 29
1q 2q
Rga ,๏‚ฎ
Standard machine
L
q1
L
q2
Lgxax ),,(),( ๏‚ฎ
R
q1
R
q2
Rxgxa ),,(),( ๏‚ฎ
Semi-Infinite tape machine
Left part
Right part
For all tape symbols x
Costas Busch - LSU 30
Standard machine
..................
๏ƒ  ๏ƒ  ๏ƒ a b c d e
1q
.........
Semi-Infinite tape machine
#
#
Right part
Left part ac b
d e ๏ƒ  ๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
L
q1
Time 1
Costas Busch - LSU 31
Time 2
๏ƒ  ๏ƒ  ๏ƒ g b c d e
2q
#
#
Right part
Left part gc b
d e ๏ƒ  ๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
L
q2
Standard machine
..................
.........
Semi-Infinite tape machine
Costas Busch - LSU 32
L
q1
R
q1
R),#,(#)#,(# ๏‚ฎ
Semi-Infinite tape machine
Left part
At the border:
R
q1
L
q1
R),#,(#)#,(# ๏‚ฎRight part
Costas Busch - LSU 33
.........
Semi-Infinite tape machine
#
#
Right part
Left part gc b
d e ๏ƒ  ๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
L
q1
.........#
#
Right part
Left part gc b
d e ๏ƒ  ๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
R
q1
Time 1
Time 2
END OF PROOF
Costas Busch - LSU 34
Multi-tape Turing Machines
๏ƒ ๏ƒ  a b c ๏ƒ ๏ƒ  e f g
Control unit
Tape 1 Tape 2
Input string
Input string appears on Tape 1
(state machine)
Costas Busch - LSU 35
๏ƒ ๏ƒ  a b c ๏ƒ ๏ƒ  e f g
1q 1q
๏ƒ ๏ƒ  a g c ๏ƒ ๏ƒ  e d g
2q 2q
Time 1
Time 2
RLdgfb ,),,(),( ๏‚ฎ
1q 2q
Tape 1 Tape 2
Tape 1 Tape 2
Costas Busch - LSU 36
Multi-tape machines
have the same power with
Standard Turing machines
Theorem:
Proof: 1. Multi-tape machines
simulate Standard Turing machines
2. Standard Turing machines
simulate Multi-tape machines
Costas Busch - LSU 37
1. Multi-tape machines simulate
Standard Turing Machines:
Trivial: Use one tape
Costas Busch - LSU 38
2. Standard Turing machines simulate
Multi-tape machines:
โ€ข Uses a multi-track tape to simulate
the multiple tapes
โ€ข A tape of the Multi-tape machine
corresponds to a pair of tracks
Standard machine:
Costas Busch - LSU 39
๏ƒ ๏ƒ  a b c h๏ƒ  e f g ๏ƒ 
Multi-tape Machine
Tape 1 Tape 2
Standard machine with four track tape
a b c
e f g
0 0
0 0
1
1
Tape 1
head position
Tape 2
head position
h
0
Costas Busch - LSU 40
Repeat for each Multi-tape state transition:
1. Return to reference point
2. Find current symbol in Track 1 and update
3. Return to reference point
4. Find current symbol in Tape 2 and update
a b c
e f g
0 0
0 0
1
1
Tape 1
head position
Tape 2
head position
h
0
#
#
#
#
Reference point
END OF PROOF
Costas Busch - LSU 41
( steps)
}{ nn
baL ๏€ฝ
Standard Turing machine:
Go back and forth times)( 2
nO
2-tape machine:
1. Copy to tape 2n
b
2. Compare on tape 1
and tape 2
)(nO
n
b
n
a
to match the aโ€™s with the bโ€™s
( steps))(nO
)( 2
nO time
)(nO time
Same power doesnโ€™t imply same speed:
Costas Busch - LSU 42
Multidimensional Turing Machines
x
y
a
b
c
2-dimensional tape
HEAD
Position: +2, -1
MOVES: L,R,U,D
U: up D: down
๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
Costas Busch - LSU 43
Multidimensional machines
have the same power with
Standard Turing machines
Theorem:
Proof: 1. Multidimensional machines
simulate Standard Turing machines
2. Standard Turing machines
simulate Multi-Dimensional machines
Costas Busch - LSU 44
1. Multidimensional machines simulate
Standard Turing machines
Trivial: Use one dimension
Costas Busch - LSU 45
2. Standard Turing machines simulate
Multidimensional machines
Standard machine:
โ€ข Use a two track tape
โ€ข Store symbols in track 1
โ€ข Store coordinates in track 2
Costas Busch - LSU 46
x
y
a
b
c๏ƒ 
๏ƒ 
๏ƒ 
๏ƒ 
a
1
b
#
symbol
coordinates
2-dimensional machine
Standard Machine
1 # 2 # 1๏€ญ
c
# ๏€ญ
1q
1q
1
Costas Busch - LSU 47
Repeat for each transition followed
in the 2-dimensional machine:
1. Update current symbol
2. Compute coordinates of next position
3. Go to new position
Standard machine:
END OF PROOF
Costas Busch - LSU 48
Nondeterministic Turing Machines
Lba ,๏‚ฎ
Rca ,๏‚ฎ
1q
2q
3q
Allows Non Deterministic Choices
Choice 1
Choice 2
Costas Busch - LSU 49
a b c๏ƒ  ๏ƒ 
1q
Lba ,๏‚ฎ
Rca ,๏‚ฎ
1q
2q
3q
Time 0
Time 1
b b c๏ƒ  ๏ƒ 
2q
c b c๏ƒ  ๏ƒ 
3q
Choice 1
Choice 2
Costas Busch - LSU 50
Input string is accepted if
there is a computation:
w
yqxwq f
๏€ช
๏ฆ0
Initial configuration Final Configuration
Any accept state
There is a computation:
Costas Busch - LSU 51
Nondeterministic machines
have the same power with
Standard Turing machines
Theorem:
Proof: 1. Nondeterministic machines
simulate Standard Turing machines
2. Standard Turing machines
simulate Nondeterministic machines
Costas Busch - LSU 52
1. Nondeterministic Machines simulate
Standard (deterministic) Turing Machines
Trivial: every deterministic machine
is also nondeterministic
Costas Busch - LSU 53
2. Standard (deterministic) Turing machines
simulate Nondeterministic machines:
โ€ข Stores all possible computations
of the non-deterministic machine
on the 2-dimensional tape
Deterministic machine:
โ€ข Uses a 2-dimensional tape
(equivalent to standard Turing machine with one tape)
Costas Busch - LSU 54
All possible computation paths
Initial state
Step 1
Step 2
Step i
Step i+1
acceptreject
infinite
path
Costas Busch - LSU 55
The Deterministic Turing machine
simulates all possible computation paths:
โ€ขwith breadth-first search
โ€ขsimultaneously
โ€ขstep-by-step
depth-first may result getting stuck at exploring
an infinite path before discovering the accepting path
Costas Busch - LSU 56
a b c๏ƒ  ๏ƒ 
1q
Lba ,๏‚ฎ
Rca ,๏‚ฎ
1q
2q
3q
Time 0
NonDeterministic machine
Deterministic machine
a b c
1q
# # # # ##
#
#
# # #
#
#
# #
current
configuration
Costas Busch - LSU 57
Lba ,๏‚ฎ
Rca ,๏‚ฎ
1q
2q
3q
b b c
2q
# # # # ##
#
# #
#
# #
Computation 1
b b c๏ƒ  ๏ƒ 
2q
Choice 1
c b c๏ƒ  ๏ƒ 
3q
Choice 2
c b c
3q ## Computation 2
NonDeterministic machine
Deterministic machine
Time 1
Costas Busch - LSU 58
Repeat
For each configuration in current step
of non-deterministic machine,
if there are two or more choices:
1. Replicate configuration
2. Change the state in the replicas
Deterministic Turing machine
Until either the input string is accepted
or rejected in all configurations
Costas Busch - LSU 59
If the non-deterministic machine accepts
the input string:
The deterministic machine accepts and halts too
The simulation takes in the worst case
exponential time compared to the
shortest length of an accepting path
Costas Busch - LSU 60
If the non-deterministic machine does not
accept the input string:
1. The simulation halts if all paths
reach a halting state
OR
2. The simulation never terminates
if there is a never-ending path (infinite loop)
In either case the deterministic machine
rejects too (1. by halting or 2. by simulating the infinite loop)
END OF PROOF

More Related Content

More from Shiraz316

FINGERNAIL DISORDER DETECTION FOR DISEASE ANALYSIS
FINGERNAIL DISORDER DETECTION FOR DISEASE ANALYSISFINGERNAIL DISORDER DETECTION FOR DISEASE ANALYSIS
FINGERNAIL DISORDER DETECTION FOR DISEASE ANALYSISShiraz316
ย 
K neareast neighbor algorithm presentation
K neareast neighbor algorithm presentationK neareast neighbor algorithm presentation
K neareast neighbor algorithm presentationShiraz316
ย 
Khi 087 revised dt report
Khi 087 revised dt reportKhi 087 revised dt report
Khi 087 revised dt reportShiraz316
ย 
Khi 117 revised dt report
Khi 117 revised dt reportKhi 117 revised dt report
Khi 117 revised dt reportShiraz316
ย 
Khi 164 revised dt report
Khi 164 revised dt reportKhi 164 revised dt report
Khi 164 revised dt reportShiraz316
ย 
Khi 054 revised dt report
Khi 054 revised dt reportKhi 054 revised dt report
Khi 054 revised dt reportShiraz316
ย 
Khi 061 revised dt report
Khi 061 revised dt reportKhi 061 revised dt report
Khi 061 revised dt reportShiraz316
ย 
Khi 022 revised dt report
Khi 022 revised dt reportKhi 022 revised dt report
Khi 022 revised dt reportShiraz316
ย 
Khi 113 revised dt report
Khi 113 revised dt reportKhi 113 revised dt report
Khi 113 revised dt reportShiraz316
ย 
Khi 156 revised dt report
Khi 156 revised dt reportKhi 156 revised dt report
Khi 156 revised dt reportShiraz316
ย 
Khi 142 revised dt report
Khi 142 revised dt reportKhi 142 revised dt report
Khi 142 revised dt reportShiraz316
ย 
Khi 316 revised dt report
Khi 316 revised dt reportKhi 316 revised dt report
Khi 316 revised dt reportShiraz316
ย 
Khi 186 revised dt report
Khi 186 revised dt reportKhi 186 revised dt report
Khi 186 revised dt reportShiraz316
ย 
Khi 052 revised dt report
Khi 052 revised dt reportKhi 052 revised dt report
Khi 052 revised dt reportShiraz316
ย 
Khi 151 revised dt report
Khi 151 revised dt reportKhi 151 revised dt report
Khi 151 revised dt reportShiraz316
ย 
Khi 150 revised dt report
Khi 150 revised dt reportKhi 150 revised dt report
Khi 150 revised dt reportShiraz316
ย 
Khi 078 revised dt report
Khi 078 revised dt reportKhi 078 revised dt report
Khi 078 revised dt reportShiraz316
ย 
LTE quick introduction session Training
LTE quick introduction session TrainingLTE quick introduction session Training
LTE quick introduction session TrainingShiraz316
ย 
LTE Sales Training for CPE Device
LTE Sales Training for CPE DeviceLTE Sales Training for CPE Device
LTE Sales Training for CPE DeviceShiraz316
ย 
Witribe Customer Premises Equipment Training for LTE
Witribe Customer Premises Equipment Training for LTEWitribe Customer Premises Equipment Training for LTE
Witribe Customer Premises Equipment Training for LTEShiraz316
ย 

More from Shiraz316 (20)

FINGERNAIL DISORDER DETECTION FOR DISEASE ANALYSIS
FINGERNAIL DISORDER DETECTION FOR DISEASE ANALYSISFINGERNAIL DISORDER DETECTION FOR DISEASE ANALYSIS
FINGERNAIL DISORDER DETECTION FOR DISEASE ANALYSIS
ย 
K neareast neighbor algorithm presentation
K neareast neighbor algorithm presentationK neareast neighbor algorithm presentation
K neareast neighbor algorithm presentation
ย 
Khi 087 revised dt report
Khi 087 revised dt reportKhi 087 revised dt report
Khi 087 revised dt report
ย 
Khi 117 revised dt report
Khi 117 revised dt reportKhi 117 revised dt report
Khi 117 revised dt report
ย 
Khi 164 revised dt report
Khi 164 revised dt reportKhi 164 revised dt report
Khi 164 revised dt report
ย 
Khi 054 revised dt report
Khi 054 revised dt reportKhi 054 revised dt report
Khi 054 revised dt report
ย 
Khi 061 revised dt report
Khi 061 revised dt reportKhi 061 revised dt report
Khi 061 revised dt report
ย 
Khi 022 revised dt report
Khi 022 revised dt reportKhi 022 revised dt report
Khi 022 revised dt report
ย 
Khi 113 revised dt report
Khi 113 revised dt reportKhi 113 revised dt report
Khi 113 revised dt report
ย 
Khi 156 revised dt report
Khi 156 revised dt reportKhi 156 revised dt report
Khi 156 revised dt report
ย 
Khi 142 revised dt report
Khi 142 revised dt reportKhi 142 revised dt report
Khi 142 revised dt report
ย 
Khi 316 revised dt report
Khi 316 revised dt reportKhi 316 revised dt report
Khi 316 revised dt report
ย 
Khi 186 revised dt report
Khi 186 revised dt reportKhi 186 revised dt report
Khi 186 revised dt report
ย 
Khi 052 revised dt report
Khi 052 revised dt reportKhi 052 revised dt report
Khi 052 revised dt report
ย 
Khi 151 revised dt report
Khi 151 revised dt reportKhi 151 revised dt report
Khi 151 revised dt report
ย 
Khi 150 revised dt report
Khi 150 revised dt reportKhi 150 revised dt report
Khi 150 revised dt report
ย 
Khi 078 revised dt report
Khi 078 revised dt reportKhi 078 revised dt report
Khi 078 revised dt report
ย 
LTE quick introduction session Training
LTE quick introduction session TrainingLTE quick introduction session Training
LTE quick introduction session Training
ย 
LTE Sales Training for CPE Device
LTE Sales Training for CPE DeviceLTE Sales Training for CPE Device
LTE Sales Training for CPE Device
ย 
Witribe Customer Premises Equipment Training for LTE
Witribe Customer Premises Equipment Training for LTEWitribe Customer Premises Equipment Training for LTE
Witribe Customer Premises Equipment Training for LTE
ย 

Recently uploaded

Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
ย 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7Call Girls in Nagpur High Profile Call Girls
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Standamitlee9823
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .DerechoLaboralIndivi
ย 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
ย 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
ย 

Recently uploaded (20)

(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
ย 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
ย 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
ย 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
ย 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
ย 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
ย 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
ย 

Turing variations

  • 1. Costas Busch - LSU 1 Turingโ€™s Thesis
  • 2. Costas Busch - LSU 2 Turingโ€™s thesis (1930): Any computation carried out by mechanical means can be performed by a Turing Machine
  • 3. Costas Busch - LSU 3 Algorithm: An algorithm for a problem is a Turing Machine which solves the problem The algorithm describes the steps of the mechanical means This is easily translated to computation steps of a Turing machine
  • 4. Costas Busch - LSU 4 When we say: There exists an algorithm We mean: There exists a Turing Machine that executes the algorithm
  • 5. Costas Busch - LSU 5 Variations of the Turing Machine
  • 6. Costas Busch - LSU 6 Read-Write Head Control Unit ๏ƒ ๏ƒ  a a c ๏ƒ ๏ƒ  ๏ƒ b a cb b a a Deterministic The Standard Model Infinite Tape (Left or Right)
  • 7. Costas Busch - LSU 7 Variations of the Standard Model โ€ข Stay-Option โ€ข Semi-Infinite Tape โ€ข Multitape โ€ข Multidimensional โ€ข Nondeterministic Turing machines with: Different Turing Machine Classes
  • 8. Costas Busch - LSU 8 We will prove: each new class has the same power with Standard Turing Machine Same Power of two machine classes: both classes accept the same set of languages (accept Turing-Recognizable Languages)
  • 9. Costas Busch - LSU 9 Same Power of two classes means: for any machine of first class1M there is a machine of second class2M such that: )()( 21 MLML ๏€ฝ and vice-versa
  • 10. Costas Busch - LSU 10 A technique to prove same power.Simulation: Simulate the machine of one class with a machine of the other class First Class Original Machine 1M 1M 2M Second Class Simulation Machine simulates 1M
  • 11. Costas Busch - LSU 11 Configurations in the Original Machine have corresponding configurations in the Simulation Machine nddd ๏ฆ๏Œ๏ฆ๏ฆ 10Original Machine: Simulation Machine: nddd ๏‚ข๏‚ข๏‚ข ๏€ช๏€ช๏€ช ๏ฆ๏Œ๏ฆ๏ฆ 10 1M 2M 1M 2M
  • 12. Costas Busch - LSU 12 the Simulation Machine and the Original Machine accept the same strings fdOriginal Machine: Simulation Machine: fd๏‚ข Accepting Configuration )()( 21 MLML ๏€ฝ
  • 13. Costas Busch - LSU 13 Turing Machines with Stay-Option The head can stay in the same position ๏ƒ ๏ƒ  a a c ๏ƒ ๏ƒ  ๏ƒ b a cb b a a Left, Right, Stay L,R,S: possible head moves
  • 14. Costas Busch - LSU 14 Example: ๏ƒ ๏ƒ  a a c ๏ƒ ๏ƒ  ๏ƒ b a cb b a a Time 1 ๏ƒ ๏ƒ  b a c ๏ƒ ๏ƒ  ๏ƒ b a cb b a a Time 2 1q 2q 1q 2q Sba ,๏‚ฎ
  • 15. Costas Busch - LSU 15 Stay-Option machines have the same power with Standard Turing machines Theorem: Proof: 1. Stay-Option Machines simulate Standard Turing machines 2. Standard Turing machines simulate Stay-Option machines
  • 16. Costas Busch - LSU 16 1. Stay-Option Machines simulate Standard Turing machines Trivial: any standard Turing machine is also a Stay-Option machine
  • 17. Costas Busch - LSU 17 2. Standard Turing machines simulate Stay-Option machines We need to simulate the stay head option with two head moves, one left and one right
  • 18. Costas Busch - LSU 18 1q 2q Sba ,๏‚ฎ 1q Lba ,๏‚ฎ 2q Rxx ,๏‚ฎ Stay-Option Machine Simulation in Standard Machine For every possible tape symbol x
  • 19. Costas Busch - LSU 19 1q 2q Lba ,๏‚ฎ 1q 2q Lba ,๏‚ฎ Stay-Option Machine Simulation in Standard Machine Similar for Right moves For other transitions nothing changes
  • 20. Costas Busch - LSU 20 example of simulation ๏ƒ  ๏ƒ a a b a 1q Stay-Option Machine: 1 ๏ƒ  ๏ƒ b a b a 2q 2 1q 2qSba ,๏‚ฎ Simulation in Standard Machine: ๏ƒ  ๏ƒ a a b a 1q 1 ๏ƒ  ๏ƒ b a b a 2q 2 ๏ƒ  ๏ƒ b a b a 3q 3 END OF PROOF
  • 21. Costas Busch - LSU 21 A useful trick: Multiple Track Tape ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  b d a b b a a c track 1 track 2 One symbol ),( ba One head helps for more complicated simulations One Tape It is a standard Turing machine, but each tape alphabet symbol describes a pair of actual useful symbols
  • 22. Costas Busch - LSU 22 ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  b d a b b a a c track 1 track 2 1q 2q Ldcab ),,(),( ๏‚ฎ 1q ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  b d a b c d a c track 1 track 2 2q
  • 23. Costas Busch - LSU 23 Semi-Infinite Tape .........a b a c ๏ƒ  ๏ƒ  โ€ข When the head moves left from the border, it returns back to leftmost position The head extends infinitely only to the right โ€ข Initial position is the leftmost cell
  • 24. Costas Busch - LSU 24 Semi-Infinite machines have the same power with Standard Turing machines Theorem: Proof: 2. Semi-Infinite Machines simulate Standard Turing machines 1. Standard Turing machines simulate Semi-Infinite machines
  • 25. Costas Busch - LSU 25 1. Standard Turing machines simulate Semi-Infinite machines: a. insert special symbol at left of input string # a b a c ๏ƒ  ๏ƒ # b. Add a self-loop to every state (except states with no outgoing transitions) R,##๏‚ฎ Standard Turing Machine ๏ƒ ๏ƒ  Semi-Infinite machine modifications ..................
  • 26. Costas Busch - LSU 26 2. Semi-Infinite tape machines simulate Standard Turing machines: Standard machine ......... Semi-Infinite tape machine .................. Squeeze infinity of both directions to one direction
  • 27. Costas Busch - LSU 27 Standard machine ......... Semi-Infinite tape machine with two tracks .................. reference point # # Right part Left part ๏ƒ  ๏ƒ  ๏ƒ a b c d e ac b d e ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ 
  • 28. Costas Busch - LSU 28 1q 2q R q2 L q1 L q2 R q1 Left part Right part Standard machine Semi-Infinite tape machine
  • 29. Costas Busch - LSU 29 1q 2q Rga ,๏‚ฎ Standard machine L q1 L q2 Lgxax ),,(),( ๏‚ฎ R q1 R q2 Rxgxa ),,(),( ๏‚ฎ Semi-Infinite tape machine Left part Right part For all tape symbols x
  • 30. Costas Busch - LSU 30 Standard machine .................. ๏ƒ  ๏ƒ  ๏ƒ a b c d e 1q ......... Semi-Infinite tape machine # # Right part Left part ac b d e ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  L q1 Time 1
  • 31. Costas Busch - LSU 31 Time 2 ๏ƒ  ๏ƒ  ๏ƒ g b c d e 2q # # Right part Left part gc b d e ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  L q2 Standard machine .................. ......... Semi-Infinite tape machine
  • 32. Costas Busch - LSU 32 L q1 R q1 R),#,(#)#,(# ๏‚ฎ Semi-Infinite tape machine Left part At the border: R q1 L q1 R),#,(#)#,(# ๏‚ฎRight part
  • 33. Costas Busch - LSU 33 ......... Semi-Infinite tape machine # # Right part Left part gc b d e ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  L q1 .........# # Right part Left part gc b d e ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  R q1 Time 1 Time 2 END OF PROOF
  • 34. Costas Busch - LSU 34 Multi-tape Turing Machines ๏ƒ ๏ƒ  a b c ๏ƒ ๏ƒ  e f g Control unit Tape 1 Tape 2 Input string Input string appears on Tape 1 (state machine)
  • 35. Costas Busch - LSU 35 ๏ƒ ๏ƒ  a b c ๏ƒ ๏ƒ  e f g 1q 1q ๏ƒ ๏ƒ  a g c ๏ƒ ๏ƒ  e d g 2q 2q Time 1 Time 2 RLdgfb ,),,(),( ๏‚ฎ 1q 2q Tape 1 Tape 2 Tape 1 Tape 2
  • 36. Costas Busch - LSU 36 Multi-tape machines have the same power with Standard Turing machines Theorem: Proof: 1. Multi-tape machines simulate Standard Turing machines 2. Standard Turing machines simulate Multi-tape machines
  • 37. Costas Busch - LSU 37 1. Multi-tape machines simulate Standard Turing Machines: Trivial: Use one tape
  • 38. Costas Busch - LSU 38 2. Standard Turing machines simulate Multi-tape machines: โ€ข Uses a multi-track tape to simulate the multiple tapes โ€ข A tape of the Multi-tape machine corresponds to a pair of tracks Standard machine:
  • 39. Costas Busch - LSU 39 ๏ƒ ๏ƒ  a b c h๏ƒ  e f g ๏ƒ  Multi-tape Machine Tape 1 Tape 2 Standard machine with four track tape a b c e f g 0 0 0 0 1 1 Tape 1 head position Tape 2 head position h 0
  • 40. Costas Busch - LSU 40 Repeat for each Multi-tape state transition: 1. Return to reference point 2. Find current symbol in Track 1 and update 3. Return to reference point 4. Find current symbol in Tape 2 and update a b c e f g 0 0 0 0 1 1 Tape 1 head position Tape 2 head position h 0 # # # # Reference point END OF PROOF
  • 41. Costas Busch - LSU 41 ( steps) }{ nn baL ๏€ฝ Standard Turing machine: Go back and forth times)( 2 nO 2-tape machine: 1. Copy to tape 2n b 2. Compare on tape 1 and tape 2 )(nO n b n a to match the aโ€™s with the bโ€™s ( steps))(nO )( 2 nO time )(nO time Same power doesnโ€™t imply same speed:
  • 42. Costas Busch - LSU 42 Multidimensional Turing Machines x y a b c 2-dimensional tape HEAD Position: +2, -1 MOVES: L,R,U,D U: up D: down ๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ 
  • 43. Costas Busch - LSU 43 Multidimensional machines have the same power with Standard Turing machines Theorem: Proof: 1. Multidimensional machines simulate Standard Turing machines 2. Standard Turing machines simulate Multi-Dimensional machines
  • 44. Costas Busch - LSU 44 1. Multidimensional machines simulate Standard Turing machines Trivial: Use one dimension
  • 45. Costas Busch - LSU 45 2. Standard Turing machines simulate Multidimensional machines Standard machine: โ€ข Use a two track tape โ€ข Store symbols in track 1 โ€ข Store coordinates in track 2
  • 46. Costas Busch - LSU 46 x y a b c๏ƒ  ๏ƒ  ๏ƒ  ๏ƒ  a 1 b # symbol coordinates 2-dimensional machine Standard Machine 1 # 2 # 1๏€ญ c # ๏€ญ 1q 1q 1
  • 47. Costas Busch - LSU 47 Repeat for each transition followed in the 2-dimensional machine: 1. Update current symbol 2. Compute coordinates of next position 3. Go to new position Standard machine: END OF PROOF
  • 48. Costas Busch - LSU 48 Nondeterministic Turing Machines Lba ,๏‚ฎ Rca ,๏‚ฎ 1q 2q 3q Allows Non Deterministic Choices Choice 1 Choice 2
  • 49. Costas Busch - LSU 49 a b c๏ƒ  ๏ƒ  1q Lba ,๏‚ฎ Rca ,๏‚ฎ 1q 2q 3q Time 0 Time 1 b b c๏ƒ  ๏ƒ  2q c b c๏ƒ  ๏ƒ  3q Choice 1 Choice 2
  • 50. Costas Busch - LSU 50 Input string is accepted if there is a computation: w yqxwq f ๏€ช ๏ฆ0 Initial configuration Final Configuration Any accept state There is a computation:
  • 51. Costas Busch - LSU 51 Nondeterministic machines have the same power with Standard Turing machines Theorem: Proof: 1. Nondeterministic machines simulate Standard Turing machines 2. Standard Turing machines simulate Nondeterministic machines
  • 52. Costas Busch - LSU 52 1. Nondeterministic Machines simulate Standard (deterministic) Turing Machines Trivial: every deterministic machine is also nondeterministic
  • 53. Costas Busch - LSU 53 2. Standard (deterministic) Turing machines simulate Nondeterministic machines: โ€ข Stores all possible computations of the non-deterministic machine on the 2-dimensional tape Deterministic machine: โ€ข Uses a 2-dimensional tape (equivalent to standard Turing machine with one tape)
  • 54. Costas Busch - LSU 54 All possible computation paths Initial state Step 1 Step 2 Step i Step i+1 acceptreject infinite path
  • 55. Costas Busch - LSU 55 The Deterministic Turing machine simulates all possible computation paths: โ€ขwith breadth-first search โ€ขsimultaneously โ€ขstep-by-step depth-first may result getting stuck at exploring an infinite path before discovering the accepting path
  • 56. Costas Busch - LSU 56 a b c๏ƒ  ๏ƒ  1q Lba ,๏‚ฎ Rca ,๏‚ฎ 1q 2q 3q Time 0 NonDeterministic machine Deterministic machine a b c 1q # # # # ## # # # # # # # # # current configuration
  • 57. Costas Busch - LSU 57 Lba ,๏‚ฎ Rca ,๏‚ฎ 1q 2q 3q b b c 2q # # # # ## # # # # # # Computation 1 b b c๏ƒ  ๏ƒ  2q Choice 1 c b c๏ƒ  ๏ƒ  3q Choice 2 c b c 3q ## Computation 2 NonDeterministic machine Deterministic machine Time 1
  • 58. Costas Busch - LSU 58 Repeat For each configuration in current step of non-deterministic machine, if there are two or more choices: 1. Replicate configuration 2. Change the state in the replicas Deterministic Turing machine Until either the input string is accepted or rejected in all configurations
  • 59. Costas Busch - LSU 59 If the non-deterministic machine accepts the input string: The deterministic machine accepts and halts too The simulation takes in the worst case exponential time compared to the shortest length of an accepting path
  • 60. Costas Busch - LSU 60 If the non-deterministic machine does not accept the input string: 1. The simulation halts if all paths reach a halting state OR 2. The simulation never terminates if there is a never-ending path (infinite loop) In either case the deterministic machine rejects too (1. by halting or 2. by simulating the infinite loop) END OF PROOF