SlideShare a Scribd company logo
1 of 16
DEPARTMENT OF COMPUTRSCIENCE AND APPLICATION
ATALBIHARI VAJPAYEEUNIVERSITYBILASPUR(C.G.)
Topic :- Turing Machine: Formal Definition and Behaviour, Transition Diagram,
Acceptance by Turing Machine.
PRESENTED BY :-
.Aniket Singh
.Krishna Dewangan
.Suraj sahu
.Ravindra Nishad
Class :- MSC 1st year 1st Sem
Subject :- Theory of Computation
PRESENTED To :-
Prerna Mam
Transition Diagram
Acceptance by Turing Machine
Turing Machine: Formal Definetion and Behaviour
Turing
Machine:--
A L A N T U R I N G
2 3 J u n e 1 9 1 2
To
0 7 J u n e 1 9 5 7
INTRODUCATION TO TURING MACHINE:--
• Invented by esteemed Computer Scientist ALAN TURING IN 1936.
• Basically an abstract computational model that perform
computations.
• Provide a powerful computational model for solving problems in
computer science
• Capable of simulating common computers.
• It has unlimited memory capability.
Turing machine was invented in 1936 by Alan Turing. It is an accepting device which
accepts Recursive Enumerable Language generated by type 0 grammar
Turing machine can accept all this language
T.M Recursively Enumerable LanguageT.M
P.D.A Context Free LanguageP.D.A
F.A Ragular LanguageF.A
EX.  an bn PDA
an bn cn TM
Q  Set of finite states
∑ finite set of I/P Alphabet not containing B READ/WRITE HEAD
Γ  finite set of tape symbol including (∑≤ Γ )
B  Special symbol represtnting Blank cell (B )
q0 is initial state (q0 )
F Set of final state (F ≤ Q)
δ A transition or mapping function.
Q × Γ  Q × Γ × ( L,R )
(q0, a) (q1 × X , R/L )
M=[ Q, ∑, Γ, B, q0, F, δ ] {7 tuple}
Formal definition of Turing machine
… B B a b a B B B …
Finite control
Turing Machine has infinite size tape and it is used to accepted Recursively Enumerable
Language
L R
TM Read also allow as well as wright is also allow
TM can move in both directions [left/right]
TM is a mathematical model which consists of an infinite length tape divided into cells
which I/P is give if consist of a head which reads the I/P tape
After reading an I/P symbol , it is replaced with another symbol it is replaced with another
symbols it internal state is change it moves from one cell to the right n left
A B
q1 q0 q0 (state)
a b b
If the TM reaches the final state I/P string accepted
otherwise rejected
The RULE :--
1. You can read cell by cell
2. You can change the content to the cell
3. You can move to the right or to the left
Cannot do this :--
1. You cannot jump from a cell to a far cell just cell next to each
other
2. We will give you set of thing you can use them only as input to our
machine
B B a b b
B B X a a Y b b B B
 Let us understand the approach by taking the example
“aaabbb”.
Scan the input from the left.
First, replace an ‘a’ with ‘X’ and move right. Then skip all the a’s and b’s and move right.
When the pointer reaches Blank(B) Blank will remain Blank(B) and the pointer turns left.
Now it scans the input from the right and replaces the first ‘b’ with ‘Y’. Our Turing
machine looks like this –
Again the pointer reaches Blank(B) or X. It now scans the input from left to right. The pointer moves
forward and replaces ‘a’ with ‘X’.
Again the pointer reaches Blank(B) or Y. It now scans the input from the right to left. The pointer moves
forward and replaces ‘b’ with ‘y’.
We repeat the same steps until we convert all the a’s to ‘X’ and b’s to ‘Y’. When all the a’s converted to ‘X
and all the b’s converted to ‘Y’ our machine will halt.
accepted by Turing machine
The turing machine accepts all the language even though they are recursively enumerable.
Recursive means repeating the same set of rules for any number of times and enumerable
means a list of elements. The TM also accepts the computable functions, such as addition,
multiplication, subtraction, division, power function, and many more.
Example: Construct a turing machine which accepts the language of aba over ∑ = {a, b}.
Solution:
We will assume that on input tape the string 'aba' is placed like this:
The tape head will read out the sequence up to the Δ characters. If the tape head is readout
'aba' string then TM will halt after reading Δ.
Now, we will see how this turing machine will work for aba. Initially, state is q0 and
head points to a as:
The move will be δ(q0, a) = δ(q1, A, R) which means it will go to state q1, replaced a by A and
head will move to right as:
The move will be δ(q1, b) = δ(q2, B, R) which means it will go to state q2,
replaced b by B and head will move to right as:
The move will be δ(q2, a) = δ(q3, A, R) which means it will go to state q3, replaced a by A and
head will move to right as:
The move δ(q3, Δ) = (q4, Δ, S) which means it will go to state q4 which is the HALT state and HALT state
is always an accept state for any TM.
The same TM can be represented by Transition Table:
States a b Δ
q0 (q1, A, R) – –
q1 – (q2, B, R) –
q2 (q3, A, R) – –
q3 – – (q4, Δ, S)
q4 – – –
The same TM can be represented by Transition
Diagram:
souraj Toc.pptx

More Related Content

Similar to souraj Toc.pptx

Winter 8 Tutorial TM.pptx
Winter 8 Tutorial TM.pptxWinter 8 Tutorial TM.pptx
Winter 8 Tutorial TM.pptxHarisPrince
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Editor IJARCET
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Editor IJARCET
 
Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4Srimatre K
 
TuringMachines-myppt.pptx
TuringMachines-myppt.pptxTuringMachines-myppt.pptx
TuringMachines-myppt.pptxSanchayKedia2
 
1LECTURE 9TuringMachines.ppt
1LECTURE 9TuringMachines.ppt1LECTURE 9TuringMachines.ppt
1LECTURE 9TuringMachines.pptMarvin886766
 
03-FiniteAutomata.pptx
03-FiniteAutomata.pptx03-FiniteAutomata.pptx
03-FiniteAutomata.pptxssuser47f7f2
 
Theory of Automata and formal languages Unit 5
Theory of Automata and formal languages Unit 5Theory of Automata and formal languages Unit 5
Theory of Automata and formal languages Unit 5Abhimanyu Mishra
 

Similar to souraj Toc.pptx (20)

Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
Winter 8 Tutorial TM.pptx
Winter 8 Tutorial TM.pptxWinter 8 Tutorial TM.pptx
Winter 8 Tutorial TM.pptx
 
Turing machine by_deep
Turing machine by_deepTuring machine by_deep
Turing machine by_deep
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
 
TOC Introduction
TOC Introduction TOC Introduction
TOC Introduction
 
Turing machine
Turing machineTuring machine
Turing machine
 
Turing machine
Turing machineTuring machine
Turing machine
 
Lecture7x.ppt
Lecture7x.pptLecture7x.ppt
Lecture7x.ppt
 
Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4
 
TuringMachines-myppt.pptx
TuringMachines-myppt.pptxTuringMachines-myppt.pptx
TuringMachines-myppt.pptx
 
Turing machines
Turing machinesTuring machines
Turing machines
 
1LECTURE 9TuringMachines.ppt
1LECTURE 9TuringMachines.ppt1LECTURE 9TuringMachines.ppt
1LECTURE 9TuringMachines.ppt
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Turing Machine.pptx
Turing Machine.pptxTuring Machine.pptx
Turing Machine.pptx
 
03-FiniteAutomata.pptx
03-FiniteAutomata.pptx03-FiniteAutomata.pptx
03-FiniteAutomata.pptx
 
Unit iv
Unit ivUnit iv
Unit iv
 
Theory of Automata and formal languages Unit 5
Theory of Automata and formal languages Unit 5Theory of Automata and formal languages Unit 5
Theory of Automata and formal languages Unit 5
 
CS 5th.pptx
CS 5th.pptxCS 5th.pptx
CS 5th.pptx
 
lect_23.pdf
lect_23.pdflect_23.pdf
lect_23.pdf
 

Recently uploaded

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Recently uploaded (20)

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

souraj Toc.pptx

  • 1. DEPARTMENT OF COMPUTRSCIENCE AND APPLICATION ATALBIHARI VAJPAYEEUNIVERSITYBILASPUR(C.G.) Topic :- Turing Machine: Formal Definition and Behaviour, Transition Diagram, Acceptance by Turing Machine. PRESENTED BY :- .Aniket Singh .Krishna Dewangan .Suraj sahu .Ravindra Nishad Class :- MSC 1st year 1st Sem Subject :- Theory of Computation PRESENTED To :- Prerna Mam
  • 2. Transition Diagram Acceptance by Turing Machine Turing Machine: Formal Definetion and Behaviour
  • 3. Turing Machine:-- A L A N T U R I N G 2 3 J u n e 1 9 1 2 To 0 7 J u n e 1 9 5 7
  • 4. INTRODUCATION TO TURING MACHINE:-- • Invented by esteemed Computer Scientist ALAN TURING IN 1936. • Basically an abstract computational model that perform computations. • Provide a powerful computational model for solving problems in computer science • Capable of simulating common computers. • It has unlimited memory capability.
  • 5. Turing machine was invented in 1936 by Alan Turing. It is an accepting device which accepts Recursive Enumerable Language generated by type 0 grammar Turing machine can accept all this language T.M Recursively Enumerable LanguageT.M P.D.A Context Free LanguageP.D.A F.A Ragular LanguageF.A EX.  an bn PDA an bn cn TM
  • 6. Q  Set of finite states ∑ finite set of I/P Alphabet not containing B READ/WRITE HEAD Γ  finite set of tape symbol including (∑≤ Γ ) B  Special symbol represtnting Blank cell (B ) q0 is initial state (q0 ) F Set of final state (F ≤ Q) δ A transition or mapping function. Q × Γ  Q × Γ × ( L,R ) (q0, a) (q1 × X , R/L ) M=[ Q, ∑, Γ, B, q0, F, δ ] {7 tuple} Formal definition of Turing machine … B B a b a B B B … Finite control
  • 7. Turing Machine has infinite size tape and it is used to accepted Recursively Enumerable Language L R TM Read also allow as well as wright is also allow TM can move in both directions [left/right] TM is a mathematical model which consists of an infinite length tape divided into cells which I/P is give if consist of a head which reads the I/P tape After reading an I/P symbol , it is replaced with another symbol it is replaced with another symbols it internal state is change it moves from one cell to the right n left A B q1 q0 q0 (state) a b b
  • 8. If the TM reaches the final state I/P string accepted otherwise rejected The RULE :-- 1. You can read cell by cell 2. You can change the content to the cell 3. You can move to the right or to the left Cannot do this :-- 1. You cannot jump from a cell to a far cell just cell next to each other 2. We will give you set of thing you can use them only as input to our machine B B a b b
  • 9. B B X a a Y b b B B  Let us understand the approach by taking the example “aaabbb”. Scan the input from the left. First, replace an ‘a’ with ‘X’ and move right. Then skip all the a’s and b’s and move right. When the pointer reaches Blank(B) Blank will remain Blank(B) and the pointer turns left. Now it scans the input from the right and replaces the first ‘b’ with ‘Y’. Our Turing machine looks like this –
  • 10. Again the pointer reaches Blank(B) or X. It now scans the input from left to right. The pointer moves forward and replaces ‘a’ with ‘X’. Again the pointer reaches Blank(B) or Y. It now scans the input from the right to left. The pointer moves forward and replaces ‘b’ with ‘y’. We repeat the same steps until we convert all the a’s to ‘X’ and b’s to ‘Y’. When all the a’s converted to ‘X and all the b’s converted to ‘Y’ our machine will halt.
  • 11. accepted by Turing machine The turing machine accepts all the language even though they are recursively enumerable. Recursive means repeating the same set of rules for any number of times and enumerable means a list of elements. The TM also accepts the computable functions, such as addition, multiplication, subtraction, division, power function, and many more. Example: Construct a turing machine which accepts the language of aba over ∑ = {a, b}. Solution: We will assume that on input tape the string 'aba' is placed like this: The tape head will read out the sequence up to the Δ characters. If the tape head is readout 'aba' string then TM will halt after reading Δ.
  • 12. Now, we will see how this turing machine will work for aba. Initially, state is q0 and head points to a as: The move will be δ(q0, a) = δ(q1, A, R) which means it will go to state q1, replaced a by A and head will move to right as:
  • 13. The move will be δ(q1, b) = δ(q2, B, R) which means it will go to state q2, replaced b by B and head will move to right as: The move will be δ(q2, a) = δ(q3, A, R) which means it will go to state q3, replaced a by A and head will move to right as: The move δ(q3, Δ) = (q4, Δ, S) which means it will go to state q4 which is the HALT state and HALT state is always an accept state for any TM.
  • 14. The same TM can be represented by Transition Table: States a b Δ q0 (q1, A, R) – – q1 – (q2, B, R) – q2 (q3, A, R) – – q3 – – (q4, Δ, S) q4 – – –
  • 15. The same TM can be represented by Transition Diagram: