SlideShare a Scribd company logo
2
Most read
3
Most read
9
Most read
Finite State
Transducers
Mealy Machine
Nadeem Qasmi
Finite state transducer
• A finite state transducer is a finite state
automaton in which the members of Σ (the
symbols labeling the arcs) are pairs, triples, etc.,
rather than simple symbols.
• Traditionally the members of Σ in a transducer
are just pairs, of which the left-hand member is
the `input symbol' and the right hand member is
the `output symbol'.
Finite State Transducers
• Special type of finite state machine
• It has two tapes
• An input string and an output string
• Rather than just traversing (and accepting or
rejecting) an input string
• It translates the contents of its input string to its
output string
Finite state transducer
• Fst has a finite set Q of internal states
• Read once-only input file that contains a string from an
input alphabet Σ,
• Output mechanism produces a string from an output
alphabet r, in response to a given input,
We put PAIRS of symbols (or symbol strings) on
our transition arrows, viewing one as input and
the other as output
a:b at the arc means that in this transition the
transducer reads a from the first tape and writes
b onto the second.
Finite state transducer
• Fst as an implementation of a function.
If M is an fst, we will FM denote the function
represented by M, so
FM : D R
Where D is subset of Σ* and R is a subset of r*
Finite state transducer
 Interpreting as fst as a function implies
that it is deterministic, that is that output is
uniquely deterministic by the input,
 Nondeterministic is no significant role in
the study of finite state transducer.
Finite state transducer
• One input symbol result in one output symbol
appears to imply that the mapping FM
length-preserving that is
|FM (w)| = |w|
• We can always include the empty string so that
|FM (w)| < |w|
Formal definition of FST
• A Deterministic Finite State Transducer (FST) is a
7-tuple (Q, Σ, Γ, δ, ω, q0, F)
1. Q is a finite set called the states
2. Σ is a finite set called the alphabet
3. Γ is a finite set called the output alphabet
4. δ : Q × Σ → Q is the transition function
5. ω : Q × Σ → Γ is the output function
6. q0 ∈ Q is the start state
7. F ⊆ Q is the set of accept states
Frequently the transition function and the
transduction function(output function) are
combined into a single transition-transduction
function, which may also be called δ,
Q × Σ → Q × Γ,
mapping a pair of a state and an input symbol
onto a pair of a state and an output symbol
• Each string-to-string finite state transducer
relates the input alphabet Σ to the output
alphabet Γ.
Relations R on Σ*×Γ* that can be implemented
as finite state transducers are called rational
relations.
Rational relations that are partial functions,
i.e. that relate every input string from Σ* to at
most one Γ*, are called rational functions.
 A finite-state transducer is deterministic if
the output is uniquely determined by the input,
A finite-state transducer is non-deterministic if
either the transition mapping or the
transduction mapping fails to be a function, i.e.
if there is more than one possible transition or
more than one possible output symbol for a
given pair of a state and an input symbol.
http://www.coli.unisb.de/~kris/nlp-with-prolog/html/node13.html
http://arxiv.org/pdf/1301.5197.pdf
Mealy Machines
 Output produced by each transition
depends on the internal state prior to the
transition and the input symbol used in the
transition
 Output produced during the
transition.
Definition:
Mealy Machine
A Mealy machine is defined by the sextuple
M = ( Q , Σ, r, δ, ,qo )
Where
Q is a finite set of internal states,
Σ is the input alphabet,
R is the output alphabet,
δ : Q × Σ Q is the transition function.
: Q × Σ r is the output function.
qo ∈ Q is the initial state of M.
• Starting qo at which time All input is available for
processing.
At the time tn the mealy machine is in state qi, the curent
input symbol is ‘a’ and δ(qi ,a ) = qf , (qi ,a ) =b the
machine enter state qf and produce output ‘b’.
a/b
It is assumed the entire process is process is terminated when
the end of the input is reached.
Note that there are no final states associated with a transducer.
qi qf
Example
Question?
nadeemqasmi40@gmail.com
Thanks

More Related Content

PPTX
Context free grammar
PPTX
Automata Theory - Turing machine
PDF
Turing machines
PPTX
push down automata
PDF
String matching algorithms
PPT
Turing Machine
PPTX
Turing machine
PDF
TOC 5 | Regular Expressions
Context free grammar
Automata Theory - Turing machine
Turing machines
push down automata
String matching algorithms
Turing Machine
Turing machine
TOC 5 | Regular Expressions

What's hot (20)

PPTX
1.1. the central concepts of automata theory
PPTX
CONTEXT FREE GRAMMAR
PPTX
2.8 normal forms gnf &amp; problems
PPTX
Mealy and moore machine
PPT
Theory of Computation Unit 5
PPT
String matching algorithm
PPTX
Secure Hash Algorithm
PPTX
Automata theory - Push Down Automata (PDA)
PPTX
language , grammar and automata
PPTX
asymptotic notation
PPTX
Genetic algorithms
PPTX
Turing machine - theory of computation
PDF
Stuart russell and peter norvig artificial intelligence - a modern approach...
PPTX
A* algorithm
PPTX
Church Turing Thesis
PPTX
5. phases of nlp
PPTX
Artificial Intelligence Searching Techniques
PPTX
Minimization of DFA.pptx
PPTX
Decision properties of reular languages
1.1. the central concepts of automata theory
CONTEXT FREE GRAMMAR
2.8 normal forms gnf &amp; problems
Mealy and moore machine
Theory of Computation Unit 5
String matching algorithm
Secure Hash Algorithm
Automata theory - Push Down Automata (PDA)
language , grammar and automata
asymptotic notation
Genetic algorithms
Turing machine - theory of computation
Stuart russell and peter norvig artificial intelligence - a modern approach...
A* algorithm
Church Turing Thesis
5. phases of nlp
Artificial Intelligence Searching Techniques
Minimization of DFA.pptx
Decision properties of reular languages
Ad

Viewers also liked (7)

PDF
Kaldi-voice: Your personal speech recognition server using open source code
PPTX
MASK: Robust Local Features for Audio Fingerprinting
PDF
Finite State Automata
PPT
Pumping lemma
PPTX
Deciability (automata presentation)
PPT
Analysis of state machines
PDF
State of the Word 2011
Kaldi-voice: Your personal speech recognition server using open source code
MASK: Robust Local Features for Audio Fingerprinting
Finite State Automata
Pumping lemma
Deciability (automata presentation)
Analysis of state machines
State of the Word 2011
Ad

Similar to Finite state Transducers and mealy Machine (20)

DOCX
Automata theory introduction
PDF
Finite automata
PPTX
Chapter 2_Finite Automata in Formal Language.pptx
PPTX
Finite State Machine.ppt.pptx
PPTX
Formalization Machines and Sastes
PDF
Lecture Notes-Finite State Automata for NLP.pdf
PPT
String Matching with Finite Automata,Aho corasick,
DOC
Flat notes iii i (1)(7-9-20)
PDF
Lecture3 : Finite State Automata Models.
PPTX
Automata introduction to FA_ Anurag Kumar.pptx
PPT
Lecture12_16717_Lecture1.ppt
PPSX
FINITE STATE MACHINE AND CHOMSKY HIERARCHY
PDF
Ch2 finite automaton
PPTX
CS 5th.pptx
PPTX
Automaton
PPTX
Moore Mealy Machine Conversion
DOC
Chapter7
PPTX
ATFL_MATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMM.pptx
PDF
Finite automata
PPSX
Finite state automaton
Automata theory introduction
Finite automata
Chapter 2_Finite Automata in Formal Language.pptx
Finite State Machine.ppt.pptx
Formalization Machines and Sastes
Lecture Notes-Finite State Automata for NLP.pdf
String Matching with Finite Automata,Aho corasick,
Flat notes iii i (1)(7-9-20)
Lecture3 : Finite State Automata Models.
Automata introduction to FA_ Anurag Kumar.pptx
Lecture12_16717_Lecture1.ppt
FINITE STATE MACHINE AND CHOMSKY HIERARCHY
Ch2 finite automaton
CS 5th.pptx
Automaton
Moore Mealy Machine Conversion
Chapter7
ATFL_MATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMATFL_MMM.pptx
Finite automata
Finite state automaton

Recently uploaded (20)

PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPT
Mechanical Engineering MATERIALS Selection
DOCX
573137875-Attendance-Management-System-original
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPT
Project quality management in manufacturing
PDF
Well-logging-methods_new................
PPTX
Artificial Intelligence
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PPT
Total quality management ppt for engineering students
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Fundamentals of Mechanical Engineering.pptx
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Mechanical Engineering MATERIALS Selection
573137875-Attendance-Management-System-original
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Categorization of Factors Affecting Classification Algorithms Selection
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Project quality management in manufacturing
Well-logging-methods_new................
Artificial Intelligence
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
R24 SURVEYING LAB MANUAL for civil enggi
Fundamentals of safety and accident prevention -final (1).pptx
Total quality management ppt for engineering students
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Fundamentals of Mechanical Engineering.pptx

Finite state Transducers and mealy Machine

  • 2. Finite state transducer • A finite state transducer is a finite state automaton in which the members of Σ (the symbols labeling the arcs) are pairs, triples, etc., rather than simple symbols. • Traditionally the members of Σ in a transducer are just pairs, of which the left-hand member is the `input symbol' and the right hand member is the `output symbol'.
  • 3. Finite State Transducers • Special type of finite state machine • It has two tapes • An input string and an output string • Rather than just traversing (and accepting or rejecting) an input string • It translates the contents of its input string to its output string
  • 4. Finite state transducer • Fst has a finite set Q of internal states • Read once-only input file that contains a string from an input alphabet Σ, • Output mechanism produces a string from an output alphabet r, in response to a given input,
  • 5. We put PAIRS of symbols (or symbol strings) on our transition arrows, viewing one as input and the other as output a:b at the arc means that in this transition the transducer reads a from the first tape and writes b onto the second.
  • 6. Finite state transducer • Fst as an implementation of a function. If M is an fst, we will FM denote the function represented by M, so FM : D R Where D is subset of Σ* and R is a subset of r*
  • 7. Finite state transducer  Interpreting as fst as a function implies that it is deterministic, that is that output is uniquely deterministic by the input,  Nondeterministic is no significant role in the study of finite state transducer.
  • 8. Finite state transducer • One input symbol result in one output symbol appears to imply that the mapping FM length-preserving that is |FM (w)| = |w| • We can always include the empty string so that |FM (w)| < |w|
  • 9. Formal definition of FST • A Deterministic Finite State Transducer (FST) is a 7-tuple (Q, Σ, Γ, δ, ω, q0, F) 1. Q is a finite set called the states 2. Σ is a finite set called the alphabet 3. Γ is a finite set called the output alphabet 4. δ : Q × Σ → Q is the transition function 5. ω : Q × Σ → Γ is the output function 6. q0 ∈ Q is the start state 7. F ⊆ Q is the set of accept states
  • 10. Frequently the transition function and the transduction function(output function) are combined into a single transition-transduction function, which may also be called δ, Q × Σ → Q × Γ, mapping a pair of a state and an input symbol onto a pair of a state and an output symbol
  • 11. • Each string-to-string finite state transducer relates the input alphabet Σ to the output alphabet Γ. Relations R on Σ*×Γ* that can be implemented as finite state transducers are called rational relations. Rational relations that are partial functions, i.e. that relate every input string from Σ* to at most one Γ*, are called rational functions.
  • 12.  A finite-state transducer is deterministic if the output is uniquely determined by the input,
  • 13. A finite-state transducer is non-deterministic if either the transition mapping or the transduction mapping fails to be a function, i.e. if there is more than one possible transition or more than one possible output symbol for a given pair of a state and an input symbol. http://www.coli.unisb.de/~kris/nlp-with-prolog/html/node13.html http://arxiv.org/pdf/1301.5197.pdf
  • 14. Mealy Machines  Output produced by each transition depends on the internal state prior to the transition and the input symbol used in the transition  Output produced during the transition.
  • 15. Definition: Mealy Machine A Mealy machine is defined by the sextuple M = ( Q , Σ, r, δ, ,qo ) Where Q is a finite set of internal states, Σ is the input alphabet, R is the output alphabet, δ : Q × Σ Q is the transition function. : Q × Σ r is the output function. qo ∈ Q is the initial state of M.
  • 16. • Starting qo at which time All input is available for processing. At the time tn the mealy machine is in state qi, the curent input symbol is ‘a’ and δ(qi ,a ) = qf , (qi ,a ) =b the machine enter state qf and produce output ‘b’. a/b It is assumed the entire process is process is terminated when the end of the input is reached. Note that there are no final states associated with a transducer. qi qf