SlideShare a Scribd company logo
Presentation Topic is:
To Our Theory of Computing Presentation
Group Member List:
Name ID
Md. Touhidur Rahman 152-15-6232
Computational Models
Computational Model are four type:
 Finite Automata - DFA & NFA
 Context Free Grammar
 Push Down Automata
 Turing Machine
Finite Automata - DFA & NFA
Definition: A deterministic finite automaton (DFA) consists of
• 1. a finite set of states (often denoted Q)
• 2. a finite set of symbols (alphabet)
• 3. a transition function that takes as argument a state and a
• symbol and returns a state (often denoted )
• 4. a start state often denoted q0
• 5. a set of final or accepting states (often denoted F)
Finite Automata - DFA & NFA
How to present a DFA? With a transition table
• The ! indicates the start state: here q0
• The indicates the final state(s) (here only one final state q1)
• This defines the following transition diagram
Finite Automata - DFA & NFA
Formal Definition:
Finite Automata - DFA & NFA
How to present a NFA? With a transition table
Context Free Grammar
What is a grammar?:
A grammar consists of one or more variables that represent
classes of strings (i.e., languages)
There are rules that say how the strings in each class are
constructed. The construction can use :
1. symbols of the alphabet
2. strings that are already known to be in one of the
classes
3. or both
Context Free Grammar
Definition of Context-Free Grammar:
A CFG (or just a grammar) G is a tuple G = (V, T, P, S) where
1. V is the (finite) set of variables (or nonterminal or syntactic
categories). Each variable represents a language, i.e., a set of
strings .
2. T is a finite set of terminals, i.e., the symbols that form the
strings of the language being defined.
3. P is a set of production rules that represent the recursive
definition of the language.
4. S is the start symbol that represents the language being
defined. Other variables represent auxiliary classes of
strings that are used to help define the language of the start
symbol.
Context Free Grammar
Examples 1(CFG): The grammar:
1. E → I
2. E → E + E
3. E → E ∗ E
4. E → (E)
5. I → a
6. I → b
7. I → Ia
8. I → Ib
9. I → I 0
10. I → I 1
The Grammar for expression is started formally as,
Grammar G 1 = ( {E, I }, T, P, E)
where: T = { +, ∗, (, ), a, b, 0, 1 } is the set of symbol and P is
the set of productions
Context Free Grammar
Derivation:
The sequence of substitutions to generate a string is called a
derivation.
Derivation both are two types:
1.Left-Most Derivation.
2.Right-Most Derivation.
Left-Most Derivation:
A derivation which always replace the leftmost variable in each step is
called a leftmost derivation.
Examples of Left-Most derivation to Previous Examples1:
Derivation of a ∗ (a + b00) by G 1
E ⇒ E ∗ E ⇒ I ∗ E ⇒ a ∗ E ⇒ a ∗ (E) ⇒ a ∗ (E + E) ⇒ a ∗ (I + E) ⇒ a ∗
(a + E) ⇒ a ∗ (a + I) ⇒ a ∗ (a + I0) ⇒ a ∗ (a + I00) ⇒ a ∗ (a + b00)
We can conclude that E ∗ ⇒lm a ∗ (a + b00).
Context Free Grammar
Right-Most Derivation:
Rightmost derivation Always replace the rightmost variable by
one of its rule-bodies.
Examples of Right-Most derivation to Previous Examples 1:
E ⇒E ∗ E ⇒ E ∗ (E) ⇒ E ∗ (E + E) ⇒ E ∗ (E + I) ⇒rm E
∗ (E + I0) ⇒ E ∗ (E + I00) ⇒ E ∗ (E + b00) ⇒ E ∗ (I + b00) ⇒ E ∗
(a + b00) ⇒ I ∗ (a + b00) ⇒ a ∗ (a + b00)
We can conclude that E ∗ ⇒rm a ∗ (a + b00).
Push Down Automata
Definition:
A pushdown automata (PDA) is essentially an -NFA with a
stack.
• On a transition, the PDA:
1. Consumes an input symbol.
2. Goes to a new state (or stays in the old).
3. Replaces the top of the stack by any string (does nothing,
pops the
stack, or pushes a string onto
the stack)
Push Down Automata
Formal Definition:
Push Down Automata
Turing Machine
Definition:
 We can give a formal description to a particular TM by
specifying each of its seven components.
 This way a TM can become cumbersome.
Note: To avoid this we use higher level descriptions which are
precise enough for the purpose of understanding
 However, every higher level description is actually just a
short hand for its formal counterpart.
Turing Machine
Analysis:
Turing Machine
Example:
Theory of computing presentation

More Related Content

PDF
Deterministic Finite Automata (DFA)
PPT
Dfa basics
PPTX
Introduction TO Finite Automata
PPTX
Finite automata-for-lexical-analysis
PPT
Finite automata
PPT
Finite automata examples
PPT
Introduction to fa and dfa
Deterministic Finite Automata (DFA)
Dfa basics
Introduction TO Finite Automata
Finite automata-for-lexical-analysis
Finite automata
Finite automata examples
Introduction to fa and dfa

What's hot (19)

PDF
Theory of computation and automata
PDF
Automata theory
PPT
Finite automata(For college Seminars)
PPT
Finite automata
PPTX
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
DOC
AUTOMATA THEORY - SHORT NOTES
PDF
Introduction to the theory of computation
PPT
Theory of Computation - Lectures 4 and 5
PPTX
Toc 1 | gate | Theory of computation
PDF
Lecture: Automata
DOCX
Automata theory introduction
PPTX
NFA Non Deterministic Finite Automata by Mudasir khushik
ODP
Final fa part1
PDF
Automata
PDF
Fafl notes [2010] (sjbit)
PPT
Finite Automata
PDF
Finite automata
PDF
Finite automata
Theory of computation and automata
Automata theory
Finite automata(For college Seminars)
Finite automata
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
AUTOMATA THEORY - SHORT NOTES
Introduction to the theory of computation
Theory of Computation - Lectures 4 and 5
Toc 1 | gate | Theory of computation
Lecture: Automata
Automata theory introduction
NFA Non Deterministic Finite Automata by Mudasir khushik
Final fa part1
Automata
Fafl notes [2010] (sjbit)
Finite Automata
Finite automata
Finite automata
Ad

Similar to Theory of computing presentation (20)

PDF
Formal Languages and Automata Theory unit 3
PPTX
Chapter-twoChapter-three automata and complexity theory .pptx
PPTX
1. Introduction to machine learning and AI
PPTX
1. Introduction automata throry and intoduction
PDF
PPTX
TOC Introduction
PPTX
ATFL_MATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMM.pptx
PPTX
closure properties of regular language.pptx
PPT
Unit-2 Context free grammer. ppt CFG CFL
PPTX
Pumping lamma Book theory of automat Examples.pptx
PPTX
Regular Expressions To Finite Automata
PDF
Theory of Computation Basic Concepts and Grammar
PPTX
INTRODUTION Formal Language and Automatic Theory.pptx
PPT
context-freelanguages and properties lecture note.ppt
PPTX
Lec1.pptx
PPTX
TCS MUBAI UNIVERSITY ATHARVA COLLEGE OF ENGINEERING.pptx
PPT
Context-Free Languages under theory of automata.ppt
PPT
Context free grammer.ppt
PPTX
introductory Discrete structure workshop.pptx
Formal Languages and Automata Theory unit 3
Chapter-twoChapter-three automata and complexity theory .pptx
1. Introduction to machine learning and AI
1. Introduction automata throry and intoduction
TOC Introduction
ATFL_MATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMM.pptx
closure properties of regular language.pptx
Unit-2 Context free grammer. ppt CFG CFL
Pumping lamma Book theory of automat Examples.pptx
Regular Expressions To Finite Automata
Theory of Computation Basic Concepts and Grammar
INTRODUTION Formal Language and Automatic Theory.pptx
context-freelanguages and properties lecture note.ppt
Lec1.pptx
TCS MUBAI UNIVERSITY ATHARVA COLLEGE OF ENGINEERING.pptx
Context-Free Languages under theory of automata.ppt
Context free grammer.ppt
introductory Discrete structure workshop.pptx
Ad

More from Md. Touhidur Rahman (13)

PPTX
Industrial management presentation
PPTX
Computer graphices presentation
PPT
Presentation simulation
PPTX
Presentation operating system
PPTX
Presentation compiler design
PPT
Numerical presentation
PPTX
Presentation of database management system
PPTX
Computer networking presentation
PPTX
Architecture presentation
PPTX
Semiconductor
PPTX
Data communication presentation
PPT
Statistics presentation
PPTX
Production of Cost
Industrial management presentation
Computer graphices presentation
Presentation simulation
Presentation operating system
Presentation compiler design
Numerical presentation
Presentation of database management system
Computer networking presentation
Architecture presentation
Semiconductor
Data communication presentation
Statistics presentation
Production of Cost

Recently uploaded (20)

PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Well-logging-methods_new................
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Geodesy 1.pptx...............................................
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Digital Logic Computer Design lecture notes
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
DOCX
573137875-Attendance-Management-System-original
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
additive manufacturing of ss316l using mig welding
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPT
Project quality management in manufacturing
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Well-logging-methods_new................
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
OOP with Java - Java Introduction (Basics)
Geodesy 1.pptx...............................................
Structs to JSON How Go Powers REST APIs.pdf
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Digital Logic Computer Design lecture notes
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
573137875-Attendance-Management-System-original
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
additive manufacturing of ss316l using mig welding
Arduino robotics embedded978-1-4302-3184-4.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Project quality management in manufacturing
UNIT-1 - COAL BASED THERMAL POWER PLANTS
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx

Theory of computing presentation

  • 1. Presentation Topic is: To Our Theory of Computing Presentation
  • 2. Group Member List: Name ID Md. Touhidur Rahman 152-15-6232
  • 3. Computational Models Computational Model are four type:  Finite Automata - DFA & NFA  Context Free Grammar  Push Down Automata  Turing Machine
  • 4. Finite Automata - DFA & NFA Definition: A deterministic finite automaton (DFA) consists of • 1. a finite set of states (often denoted Q) • 2. a finite set of symbols (alphabet) • 3. a transition function that takes as argument a state and a • symbol and returns a state (often denoted ) • 4. a start state often denoted q0 • 5. a set of final or accepting states (often denoted F)
  • 5. Finite Automata - DFA & NFA How to present a DFA? With a transition table • The ! indicates the start state: here q0 • The indicates the final state(s) (here only one final state q1) • This defines the following transition diagram
  • 6. Finite Automata - DFA & NFA Formal Definition:
  • 7. Finite Automata - DFA & NFA How to present a NFA? With a transition table
  • 8. Context Free Grammar What is a grammar?: A grammar consists of one or more variables that represent classes of strings (i.e., languages) There are rules that say how the strings in each class are constructed. The construction can use : 1. symbols of the alphabet 2. strings that are already known to be in one of the classes 3. or both
  • 9. Context Free Grammar Definition of Context-Free Grammar: A CFG (or just a grammar) G is a tuple G = (V, T, P, S) where 1. V is the (finite) set of variables (or nonterminal or syntactic categories). Each variable represents a language, i.e., a set of strings . 2. T is a finite set of terminals, i.e., the symbols that form the strings of the language being defined. 3. P is a set of production rules that represent the recursive definition of the language. 4. S is the start symbol that represents the language being defined. Other variables represent auxiliary classes of strings that are used to help define the language of the start symbol.
  • 10. Context Free Grammar Examples 1(CFG): The grammar: 1. E → I 2. E → E + E 3. E → E ∗ E 4. E → (E) 5. I → a 6. I → b 7. I → Ia 8. I → Ib 9. I → I 0 10. I → I 1 The Grammar for expression is started formally as, Grammar G 1 = ( {E, I }, T, P, E) where: T = { +, ∗, (, ), a, b, 0, 1 } is the set of symbol and P is the set of productions
  • 11. Context Free Grammar Derivation: The sequence of substitutions to generate a string is called a derivation. Derivation both are two types: 1.Left-Most Derivation. 2.Right-Most Derivation. Left-Most Derivation: A derivation which always replace the leftmost variable in each step is called a leftmost derivation. Examples of Left-Most derivation to Previous Examples1: Derivation of a ∗ (a + b00) by G 1 E ⇒ E ∗ E ⇒ I ∗ E ⇒ a ∗ E ⇒ a ∗ (E) ⇒ a ∗ (E + E) ⇒ a ∗ (I + E) ⇒ a ∗ (a + E) ⇒ a ∗ (a + I) ⇒ a ∗ (a + I0) ⇒ a ∗ (a + I00) ⇒ a ∗ (a + b00) We can conclude that E ∗ ⇒lm a ∗ (a + b00).
  • 12. Context Free Grammar Right-Most Derivation: Rightmost derivation Always replace the rightmost variable by one of its rule-bodies. Examples of Right-Most derivation to Previous Examples 1: E ⇒E ∗ E ⇒ E ∗ (E) ⇒ E ∗ (E + E) ⇒ E ∗ (E + I) ⇒rm E ∗ (E + I0) ⇒ E ∗ (E + I00) ⇒ E ∗ (E + b00) ⇒ E ∗ (I + b00) ⇒ E ∗ (a + b00) ⇒ I ∗ (a + b00) ⇒ a ∗ (a + b00) We can conclude that E ∗ ⇒rm a ∗ (a + b00).
  • 13. Push Down Automata Definition: A pushdown automata (PDA) is essentially an -NFA with a stack. • On a transition, the PDA: 1. Consumes an input symbol. 2. Goes to a new state (or stays in the old). 3. Replaces the top of the stack by any string (does nothing, pops the stack, or pushes a string onto the stack)
  • 16. Turing Machine Definition:  We can give a formal description to a particular TM by specifying each of its seven components.  This way a TM can become cumbersome. Note: To avoid this we use higher level descriptions which are precise enough for the purpose of understanding  However, every higher level description is actually just a short hand for its formal counterpart.