Finite State Transducer (FST)
Definition 1
A finite state transducer is a type of Finite State Machine that maps input String to output strings.
Formally, it is a 6-tuple :
- : finite set of states
- : input alphabet
- : output alphabet
- : state transition function
- : output function
- Mealy type:
- Moore type:
- : start state
Human Definition While a DFA/FSM only accepts or rejects inputs, an FST can actually translate them into outputs.
- Example: In digital circuits, FSMs control the “state”, while FSTs produce outputs like signals or encoded strings.
- In computer science, FSTs are used for compilers, NLP (morphological analyzers, phonological rules), and protocol design.
Example 1
Imagine a machine that takes a binary string and outputs the parity (even/odd count of 1’s so far).
- Input Alphabet:
- Output alphabet:
- States:
- Transitions: On
1→ toggle state; on0→ stay in same state - Outputs: Each state is labeled with Even/Odd (Moore style)
So the string 1101 would produce: Even → Odd → Even → Odd → Even.