Presented by Ravi Teja Pampana [email protected]..
-
Upload
bennett-fisher -
Category
Documents
-
view
240 -
download
2
Transcript of Presented by Ravi Teja Pampana [email protected]..
![Page 2: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/2.jpg)
Agenda
What is Turing Machine
How it works
Examples of Turing Machine
Simulation in Turing Machine and Computers
![Page 3: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/3.jpg)
What is Turing Machine
Turing machine is a hypothetical device that manipulates symbols on a strip of tape according to a table of rules
It is invented by Alan Turing in the year 1936.
![Page 4: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/4.jpg)
How it works
It consists of infinitely long tape. This tape will act like a memory to store the data.
This tape is divided into infinite cells, each consists of symbols.
The symbols we use in this machine are 0,1 and " "(blank).
![Page 5: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/5.jpg)
![Page 6: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/6.jpg)
Continued….
This machine is having head which is placed on the top of the cell, this perform 3 kinds of operations
Read the symbol on the cell
Write the symbol on the cell
Move to left or right to the next cell.
![Page 7: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/7.jpg)
![Page 8: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/8.jpg)
Example
let's try printing the symbols "1 1 0" on an initially blank tape:
First, we write a 1 on the square under the head:
![Page 9: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/9.jpg)
Continued
Next, we move the tape left by one square:
Now, write a 1 on the new square under the head:
![Page 10: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/10.jpg)
Continued
We then move the tape left by one square again and write a 0 :
Finally, and that's it!
![Page 11: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/11.jpg)
Turing Machine is having some set of rules in order to perform certain operations on the tape.
This rules are defined in “instruction table”.
![Page 12: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/12.jpg)
Simulation in Turing MachineWe will see, how increment operation is done in
Turing Machine.
![Page 13: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/13.jpg)
Simulation in Computers
Increment operation performed in computers.
#include <stdio.h>void main() {
int i = 10;i = i + 1;printf(“%d”,i);
}
![Page 14: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/14.jpg)
Simulation in Turing Machine
Given input is divided by 2
![Page 15: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/15.jpg)
Simulation in Computers
Dividing given input by 2
#include <stdio.h>void main() {
int i = 8;i = i/2;printf(“%f”,i);
}
![Page 16: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/16.jpg)
Simulation in Turing Machine
Given input is multiplied by 2
![Page 17: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/17.jpg)
Simulation in Computers
Given input is multiplied by 2
#include <stdio.h>void main() {
int i = 3;i = i*2;printf(“%d”, i);
}
![Page 18: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/18.jpg)
Summary
Any computation that is performed on computers can be performed by the Turing Machine
Internal processing of computers uses the concept of Turing machine.
![Page 19: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/19.jpg)
Referrence
http://en.wikipedia.org/wiki/Turing_machinehttps://www.youtube.com/watch?
v=dNRDvLACg5Qhttps://www.cl.cam.ac.uk/projects/
raspberrypi/tutorials/turing-machine/one.htmlhttp://www.alanturing.net/turing_archive/
pages/reference%20articles/what%20is%20a%20turing%20machine.html
![Page 20: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/20.jpg)
Any queries
![Page 21: Presented by Ravi Teja Pampana rpampana@kent.edu..](https://reader033.fdocuments.net/reader033/viewer/2022061618/56649dbf5503460f94ab3e90/html5/thumbnails/21.jpg)
Thank You