Introduction
Finite Automata (FA) are essential mathematical models for pattern recognition in strings. An automaton is considered ambiguous if a single input string can be processed through multiple distinct paths. This ambiguity is classified into three types:
- Finite Ambiguity: Any string has at most $k$ paths.
- Polynomial Ambiguity: The number of paths grows as a polynomial function of string length.
- Exponential Ambiguity: The number of paths grows exponentially with string length.
Understanding the degree of ambiguity is critical in fields such as Natural Language Processing (NLP) and speech recognition, where it influences algorithm convergence and entropy calculations. While algorithms existed for "ε-free" automata, previous methods for those with empty-string transitions were computationally expensive and complex.
Methodology: Intersection and the ε-Filter
The authors propose a unified approach based on Automata Intersection. By intersecting an automaton $A$ with itself (creating $A^2$ or $A^3$), one can track multiple paths simultaneously. This transforms complex structural questions about path multiplicity into simpler reachability problems within a product space.
A core challenge in this process is the presence of empty-string (ε) transitions. Standard intersection techniques often produce redundant paths for the same label sequence. The "Aha!" moment of this research is the introduction of the ε-filter. This specialized transducer ensures that only a unique path is represented in the intersection for every pair of paths in the original machines, avoiding the computationally expensive "ε-removal" step.
Algorithmic Breakthroughs
Using the ε-filter, the authors reduce ambiguity testing to graph-theoretic analysis:
- Exponential Ambiguity (EDA): Tested by computing $A^2 = A \cap A$ and searching for a Strongly Connected Component (SCC) containing both a "diagonal" state $(p, p)$ and a "non-diagonal" state $(q, q')$. This is achieved in $O(|A|_E^2)$ time.
- Polynomial Ambiguity (IDA): Tested via the triple intersection $A^3 = A \cap A \cap A$ to find specific non-ε paths between states representing three distinct original paths. This is achieved in $O(|A|_E^3)$ time.
Results and Complexity Analysis
The proposed algorithms offer a significant leap in efficiency over previous state-of-the-art methods. By keeping complexity tied directly to the number of transitions ($|A|_E$), the authors avoid the state-space explosion typical of ε-removal.
| Ambiguity Type | New Complexity | Previous Best (Weber & Seidl) |
|---|---|---|
| Exponential | $O(|A|_E^2)$ | $\approx O((|A|_E + |A|_Q^2)^2)$ |
| Polynomial | $O(|A|_E^3)$ | $\approx O((|A|_E + |A|_Q^2)^3)$ |
Furthermore, the authors demonstrate that for a probabilistic automaton with finite ambiguity $k$, the computed entropy $S(A)$ is bounded by $H(A) \leq S(A) \leq H(A) + \log k$, providing a practical tool for entropy approximation.
Conclusion
This work provides simpler and more efficient general-purpose algorithms for testing the ambiguity of finite automata. By natively handling ε-transitions through a novel filtering mechanism, the authors establish new complexity bounds that are conjectured to be optimal for these problems.
Summary updated