least for the small state sizes used in these experi-
ments, the heuristics find homing sequences which
are not too long compared to the shortest possible.
On the other hand, the time used by these heuris-
tics indicate that the methods based on using syn-
chronizing heuristics on homing automata will not
scale well. As noted before, the main reason is the
fact homing automata requires squaring the number
of states in the computation.
In order to enhance the time performance, we have
adapted the approach used in synchronizing heuristics
to compute homing sequences directly on FSMs. We
implemented 3 homing heuristics introduced in Sec-
tion 5, namely Fast–HS, Greedy–HS, and SyncrhoP–
HS. We experimented with these heuristics using the
same set of randomly generated FSMs.
Note that the three homing heuristics share their
first phase given as Algorithm 4. In all experiments
we measured the time for the Phase 1 of these heuris-
tics (given in P1 Time in Table 2) and the time to home
all d–pairs, which is Phase 2 of heuristics (given in
columns P2 time in Table 2), separately. The time
performance of homing heuristics in Table 2 are much
better compared to the time performance of the syn-
chronizing heuristics given in Table 1. Note that, the
time it takes for these heuristics is much faster (es-
pecially for Greedy–HS and Fast–HS) compared to
the time needed to find the shortest homing sequence
given in Table 1. As expected, however, the perfor-
mance on the length of the homing sequences de-
grades slightly, when we use the homing heuristics.
Note that Fast–HS picks the d–pair to be used ran-
domly, whereas Greedy–HS selects the d–pair with
the shortest homing word. Therefore, one would ex-
pect Fast–HS to have faster Phase 2 time compared to
Greedy–HS. Although this doesn’t seem to be the case
for the results given in Table 2, one can see that as the
state size increases (especially when the number of
inputs is small), the speed of Fast–HS becomes ap-
parent. Table 3 shows the experiment that reveals the
difference between speeds of Fast–HS and Greedy–
HS. We also see that as state size grows the gap be-
tween the Phase 1 and Phase 2 time increases such
that Phase 1 of Greedy–HS and Fast–HS is up to 10
times slower than the Phase 2 of these heuristics.
In this work, we have used an idea taken from
(Güniçen et al., 2014) which allows us to use synchro-
nizing heuristics for computing homing sequences.
Similar to the results obtained in (Güniçen et al.,
2014), this work shows how the existing synchroniz-
ing heuristics can be used to compute short homing
sequences. As a future work, the same idea can be
adapted to compute Unique Input Output (UIO) se-
quences as well. Since this problem is known to be
hard (Lee and Yannakakis, 1996), there are heuris-
tics to compute short UIO sequences. From a given
FSM, one can construct an automaton such that a syn-
chronizing sequence (for a subset of states) on this au-
tomaton corresponds to a UIO sequence of the orig-
inal FSM. This would similarly allow us to use ex-
isting synchronizing heuristics to compute UIO se-
quences.
REFERENCES
Broy, M., Jonsson, B., Katoen, J., Leucker, M., and
Pretschner, A., editors (2005). Model-Based Testing
of Reactive Systems, Advanced Lectures, volume 3472
of Lecture Notes in Computer Science. Springer.
Cirisci, B., Kahraman, M. K., Yildirimoglu, C. U., Kaya,
K., and Yenigün, H. (2018). Using structure of au-
tomata for faster synchronizing heuristics. In Proc. of
MODELSWARD’18, pages 544–551.
Eppstein, D. (1990). Reset sequences for monotonic au-
tomata. SIAM J. Comput., 19(3):500–510.
Ginsburg, S. (1958). On the length of the smallest uniform
experiment which distinguishes the terminal states of
a machine. J. ACM, 5(3):266–280.
Güniçen, C.,
˙
Inan, K., Türker, U. C., and Yenigün, H.
(2014). The relation between preset distinguishing
sequences and synchronizing sequences. Formal As-
pects of Computing, 26(6):1153–1167.
Kohavi, Z. (1978). Switching and Finite Automata Theory.
McGraw–Hill, New York.
Kudlacik, R., Roman, A., and Wagner, H. (2012). Effective
synchronizing algorithms. Expert Systems with Appli-
cations, 39(14):11746–11757.
Kushik, N. and Yevtushenko, N. (2015). Describing hom-
ing and distinguishing sequences for nondeterminis-
tic finite state machines via synchronizing automata.
In Drewes, F., editor, Implementation and Application
of Automata, pages 188–198, Cham. Springer Interna-
tional Publishing.
Lee, D. and Yannakakis, M. (1996). Principles and methods
of testing finite state machines-a survey. Proceedings
of the IEEE, 84(8):1090–1123.
Moore, M. E. (1956). Gedanken-experiments on sequential
machines. Automata studies, pages 129–153.
Roman, A. (2005). New algorithms for finding short re-
set sequences in synchronizing automata. In IEC
(Prague), pages 13–17.
Roman, A. (2009). Synchronizing finite automata with
short reset words. Applied Mathematics and Compu-
tation, 209(1):125–136.
Roman, A. and Szykula, M. (2015). Forward and backward
synchronizing algorithms. Expert Systems with Appli-
cations, 42(24):9512–9527.
Trahtman, A. N. (2004). Some results of implemented al-
gorithms of synchronization. In 10th Journees Mon-
toises d’Inform.
Using Synchronizing Heuristics to Construct Homing Sequences
369