SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Non regular languages
Non regular languagesNon regular languages
Non regular languages
lavishka_anuj
 

Was ist angesagt? (20)

Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDAPush Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
 
PDA (pushdown automaton)
PDA (pushdown automaton)PDA (pushdown automaton)
PDA (pushdown automaton)
 
Regular Languages
Regular LanguagesRegular Languages
Regular Languages
 
pushdown automata
pushdown automatapushdown automata
pushdown automata
 
Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machines
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFA
 
Regular language and Regular expression
Regular language and Regular expressionRegular language and Regular expression
Regular language and Regular expression
 
Greedy algorithm
Greedy algorithmGreedy algorithm
Greedy algorithm
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
 
Traveling salesman problem
Traveling salesman problemTraveling salesman problem
Traveling salesman problem
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
Theory of computation Lec3 dfa
Theory of computation Lec3 dfaTheory of computation Lec3 dfa
Theory of computation Lec3 dfa
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Theory of Computation "Chapter 1, introduction"
Theory of Computation "Chapter 1, introduction"Theory of Computation "Chapter 1, introduction"
Theory of Computation "Chapter 1, introduction"
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
Context free grammar
Context free grammar Context free grammar
Context free grammar
 
Non regular languages
Non regular languagesNon regular languages
Non regular languages
 

Andere mochten auch (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
 

Ähnlich wie 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
 
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
 

Ähnlich wie 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
 
TOC Introduction
TOC Introduction TOC Introduction
TOC Introduction
 
Ch2 finite automaton
Ch2 finite automatonCh2 finite automaton
Ch2 finite automaton
 
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
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
1. finite_automata_new.ppt
1. finite_automata_new.ppt1. finite_automata_new.ppt
1. finite_automata_new.ppt
 

Kürzlich hochgeladen

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Kürzlich hochgeladen (20)

Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
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
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 

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