Since you did not specify an input format, I assume that 0 is the initial state, any integers that appear in the second column, but not the first, are accepting states (3 for T1 and 2 for T2) and each row is an element of the transition relation, giving the previous state, next state, input letter and output letter.
Any operation on an FST should create a new FST, so we need states, an input alphabet, an output alphabet, initial states, final states, and transition relation (the FST specifications A, B, and W are given below in this order). Assume our FST:
A = (Q, Ξ£, Ξ, Q 0 , Q F , Ξ±)
B = (P, Ξ, Ξ, P 0 , P F , Ξ²)
and we want to find
W = (R, Ξ£, Ξ, R 0 , R F , Ο) = A β B
Note that we do not need to define alphabets W; composition definition does this.
Imagine that you use A and B in series, and the output tape is served as input cassette B. The combined FST state is simply the combined states of A and B. In other words, the composition states are in the cross product of the states of the individual FSTs.
R = Q Γ P
In your example, the W states are pairs of integers:
R = {(0,0), (0,1), ... (3, 2)} although we could renumber them and get (for example):
R = {00, 01, 02, 10, 11, 12, 20, 21, 22, 30, 31, 32} Similarly, the initial and receiving states of a compiled FST are cross-products of those contained in the components of the FST. In particular, R accepts the string iff A and B both accept the string.
R 0 = Q 0 Γ P 0
R F = Q F Γ P F
In the example, R 0 = {00} and R F = {32}.
It remains only to determine the transition relation Ο. To do this, combine each transition rule for A with each transition rule for B that may apply. That is, combine each transition rule A (q i , Ο) β (q j , Ξ³) with each rule B that has βΞ³β as the input character.
Ο = {((q i , p h ), Ο) β ((q j , p k ), Ξ΄): (q i , Ο) β (q j , Ξ³) β Ξ±,
(p h , Ξ³) β (p k , Ξ΄) β Ξ²} In this example, this means combining (for example) 0 1 a : b T1 with 0 1 b : a and 1 2 b : a from T2 to get:
00 11 a: a
01 12 a: a
Similarly, you would combine 0 2 b : b T1 with the same 0 1 b : a and 1 2 b : a from T2, 0 0 a : a from T1 with 1 1 a : d and 1 2 a : c from T2 & c.
Note that you may have unreachable states (which never appear as the βnextβ state) and transitions that will never occur (from unreachable states). As an optimization step, you can remove these states and transitions. However, leaving them will not affect the correct design; it's just an optimization.