SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Semelhante a 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
 

Semelhante a 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
 

Último

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
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
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
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
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Último (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
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
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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
 
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
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
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
 
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: