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

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 

Recently uploaded (20)

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 

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: