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

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Flipflop
FlipflopFlipflop
Flipflop
 
Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
 
Parse Tree
Parse TreeParse Tree
Parse Tree
 
DAA-Floyd Warshall Algorithm.pptx
DAA-Floyd Warshall Algorithm.pptxDAA-Floyd Warshall Algorithm.pptx
DAA-Floyd Warshall Algorithm.pptx
 
SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS
 
Dijkstra's Algorithm
Dijkstra's Algorithm Dijkstra's Algorithm
Dijkstra's Algorithm
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and Examples
 
Floyd Warshall Algorithm
Floyd Warshall AlgorithmFloyd Warshall Algorithm
Floyd Warshall Algorithm
 
1.1. the central concepts of automata theory
1.1. the central concepts of automata theory1.1. the central concepts of automata theory
1.1. the central concepts of automata theory
 
POST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEMPOST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEM
 
Lecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular LanguagesLecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular Languages
 
Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languages
 
language , grammar and automata
language , grammar and automatalanguage , grammar and automata
language , grammar and automata
 
0 1 knapsack using branch and bound
0 1 knapsack using branch and bound0 1 knapsack using branch and bound
0 1 knapsack using branch and bound
 
Prolog basics
Prolog basicsProlog basics
Prolog basics
 
9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problems
 
Regular expression with DFA
Regular expression with DFARegular expression with DFA
Regular expression with DFA
 
Polygons - Computer Graphics - Notes
Polygons - Computer Graphics - NotesPolygons - Computer Graphics - Notes
Polygons - Computer Graphics - Notes
 
GRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONS
 

Destaque (7)

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

Semelhante a Finite state Transducers and mealy Machine

deterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdfdeterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdf
AmayJaiswal4
 
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
FariyaTasneem1
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
Srimatre K
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
Editor IJARCET
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
Editor IJARCET
 

Semelhante a Finite state Transducers and mealy Machine (20)

Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
 
5. NFA & DFA.pdf
5. NFA & DFA.pdf5. NFA & DFA.pdf
5. NFA & DFA.pdf
 
deterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdfdeterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdf
 
Automata theory introduction
Automata theory introductionAutomata theory introduction
Automata theory introduction
 
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
 
Unit iv
Unit ivUnit iv
Unit iv
 
Theory of automata
Theory of automataTheory of automata
Theory of automata
 
Automaton
AutomatonAutomaton
Automaton
 
Automata
AutomataAutomata
Automata
 
Formal Languages and Automata Theory unit 3
Formal Languages and Automata Theory unit 3Formal Languages and Automata Theory unit 3
Formal Languages and Automata Theory unit 3
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
introduction-190804060837.pptx
introduction-190804060837.pptxintroduction-190804060837.pptx
introduction-190804060837.pptx
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
 
TOC Introduction
TOC Introduction TOC Introduction
TOC Introduction
 
Ch2 finite automaton
Ch2 finite automatonCh2 finite automaton
Ch2 finite automaton
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
 
closure properties of regular language.pptx
closure properties of regular language.pptxclosure properties of regular language.pptx
closure properties of regular language.pptx
 
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
 

Último

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 

Último (20)

FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 

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