This operation computes the union (sum) of two FSTs. If A transduces string
x to y with weight a and B transduces string w to v with weight b,
then their union transduces x to y with weight a and w to v with
weight b.
template <class Arc>
void Union(MutableFst<Arc> *fst1, const Fst<Arc> &fst2);template <class Arc> UnionFst<Arc>::
UnionFst(const Fst<Arc> &fst1, const Fst<Arc> &fst2);fstunion a.fst b.fst out.fstUnion(&A, B);
UnionFst<Arc>(A, B);
fstunion a.fst b.fst out.fstUnion:
- Time:
$O(V_2 + E_2)$ - Space:
$O(V_2 + E_2)$
where
UnionFst:
- Time:
$O(v_1 + e_1 + v_2 + e_2)$ - Space:
$O(v_1 + v_2)$
where


