Skip to main content
Log in

Careful synchronization of partial deterministic finite automata

  • Original Article
  • Published:
Acta Informatica Aims and scope Submit manuscript

Abstract

We approach the task of computing a carefully synchronizing word of minimum length for a given partial deterministic automaton, encoding the problem as an instance of SAT and invoking a SAT solver. Our experiments demonstrate that this approach gives satisfactory results for automata with up to 100 states even if very modest computational resources are used. We compare our results with the ones obtained by the first author for exact synchronization, which is another version of synchronization studied in the literature, and draw some theoretical conclusions.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13

Similar content being viewed by others

Notes

  1. It should be mentioned that Rystsov [30] used the term ‘synchronizing word’ for what we call ‘carefully synchronizing word’, following Martyugin [20,21,22,23,24]. The authors are grateful to Dr. Pavel Panteleev who drew their attention to Rystsov’s paper.

  2. We refer the reader to [5,  Chapters 3 and 10] for a detailed account of profound connections between codes and automata.

  3. It is fair to say that encodings in [33, 35] were designed to handle much more general nondeterministic automata so it is not a surprise that those encodings were bulkier than the present one.

  4. Türker [40] uses the term ‘reset sequence’ for what we call ‘exactly synchronizing word’.

References

  1. Ananichev, D.S., Volkov, M.V.: Some results on Černý type problems for transformation semigroups. In: Araújo, I. M., Branco, M.J.J., Fernandes, V.H., Gomes, G.M.S. (eds.) Semigroups and Languages, pp. 23–42. World Scientific (2004)

  2. Ananichev, D.S., Volkov, M.V., Gusev, V.V.: Primitive digraphs with large exponents and slowly synchronizing automata. J. Math. Sci. 192(3), 263–278 (2013)

    Article  MathSciNet  Google Scholar 

  3. Berlinkov, M.V.: On two algorithmic problems about synchronizing automata. In: Shur, A.M., Volkov, M.V. (eds.) Developments in Language Theory. 18th International Conference, DLT 2014. LNCS, 8633, 61–67. Springer (2014)

  4. Berlinkov, M.V.: On the probability of being synchronizable. In: Govindarajan, S., Maheshwari, A. (eds.) Algorithms and Discrete Applied Mathematics. 2nd International Conference, CALDAM 2016. LNCS, vol. 9602, pp. 73–84. Springer (2016)

  5. Berstel, J., Perrin, D., Reutenauer, C.: Codes and Automata. Cambridge University Press (2009)

  6. Biere, A., Heule, M., van Maaren, H., Walsh, T. (eds.): Handbook on Satisfiability. IOS Press (2009)

  7. Bonizzoni, P., Jonoska, N.: Existence of constants in regular splicing languages. Inf. Comput. 242, 340–353 (2015)

    Article  MathSciNet  Google Scholar 

  8. Cerny, J.: Poznámka k homogénnym eksperimentom s konečnými automatami. Matematicko-fyzikalny Časopis Slovenskej Akadémie Vied 14(3), 208–216 (1964) (in Slovak); Engl. translation: A note on homogeneous experiments with finite automata. J. Autom. Lang. Comb. 24(2-4), 121–130 (2019)

  9. de Bondt, M., Don, H., Zantema, H.: Lower bounds for synchronizing word lengths in partial automata. Int. J. Found. Comput. Sci. 30(1), 29–60 (2019)

    Article  MathSciNet  Google Scholar 

  10. Don, H., Zantema, H.: Synchronizing non-deterministic finite automata. J. Autom. Lang. Comb. 23(4), 307–328 (2018)

    MathSciNet  MATH  Google Scholar 

  11. Eén, N., Sörensson, N.: An extensible SAT-solver. In: Giunchiglia, E., Tacchella, A. (eds.), Theory and Applications of Satisfiability Testing. 6th International Conference, SAT 2003. LNCS, 2919, 502–518. Springer (2004)

  12. Eén, N., Sörensson, N.: The MiniSat Page. Available at http://minisat.se

  13. Gent, I.P., Nightingale, P.: A new encoding of AllDifferent into SAt. In: Frisch, A.M., Miguel, I. (eds.), Modelling and Reformulating Constraint Satisfaction Problems: Towards Systematisation and Automation. 3rd International Workshop, 95–110 (2004) Available at http://www-users.cs.york.ac.uk/~frisch/ModRef/04/proceedings.pdf

  14. Gomes, C..P., Kautz, H., Sabharwal, A., Selman, B.: Satisfiability solvers. In: van Harmelen, F., Lifschitz, V., Porter, B. (eds.) Handbook of Knowledge Representation, vol. I, pp. 89–134. Elsevier (2008)

  15. Güniçen, C., Erdem, E., Yenigün, H.: Generating shortest synchronizing sequences using Answer Set Programming. In: Fink, M., Lierler, Yu. (eds.) Answer Set Programming and Other Computing Paradigms, 6th International Workshop, ASPOCP 2013, 117–127. https://arxiv.org/abs/1312.6146 (2013)

  16. Harris, B.: Probability distributions related to random mappings. Ann. Math. Stat. 31(4), 1045–1062 (1960)

    Article  MathSciNet  Google Scholar 

  17. Ito, M.: Algebraic Theory of Automata and Languages. World Scientific (2004)

  18. Kari, J., Volkov, M.V.: Černý’s conjecture and the road colouring problem. Chapter 15 in: J.-É. Pin (ed.), Handbook of Automata Theory, I, 525–565. EMS Press (2021)

  19. Kisielewicz, A., Kowalski, J., Szykuła, M.: Computing the shortest reset words of synchronizing automata. J. Comb. Optim. 29(1), 88–124 (2015)

    Article  MathSciNet  Google Scholar 

  20. Martyugin, P.V.: Lower bounds for the length of the shortest carefully synchronizing words for two- and three-letter partial automata. Diskretn. Anal. Issled. Oper. 15(4), 44–56 (2008) (in Russian)

  21. Martyugin, P.V.: A lower bound for the length of the shortest carefully synchronizing words. Russian Math. (Iz. VUZ) 54(1), 46–54 (2010)

    Article  MathSciNet  Google Scholar 

  22. Martyugin, P.V.: Synchronization of automata with one undefined or ambiguous transition. In: Moreira, N., Reis, R. (eds.), Implementation and Application of Automata, 17th International Conference, CIAA 2012. LNCS, 7381, 278–288. Springer (2012)

  23. Martyugin, P.V.: Careful synchronization of partial automata with restricted alphabets. In: Bulatov, A.A., Shur, A.M. (eds.) Computer Science—Theory and Applications, 8th International Computer Science Symposium in Russia, CSR 2013. LNCS, 7913, 76–87. Springer (2013)

  24. Martyugin, P.V.: Complexity of problems concerning carefully synchronizing words for PFA and directing words for NFA. Theory Comput. Syst. 54(2), 293–304 (2014)

    Article  MathSciNet  Google Scholar 

  25. Natarajan, B.K.: An algorithmic approach to the automated design of parts orienters. In: Proceedings of 27th Annual Symposium Foundations Computer Science, 132–142. IEEE Press (1986)

  26. Natarajan, B.K.: Some paradigms for the automated design of parts feeders. Int. J. Robotics Res. 8(6), 89–109 (1989)

    Article  Google Scholar 

  27. Nicaud, C.: Fast synchronization of random automata. In: Jansen, K., Mathieu, C., Rolim, J.D.P., Umans, C. (eds), Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques. APPROX/RANDOM 2016. LIPIcs, 60, 43:1–43:12. Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik (2016)

  28. Nicaud, C.: The Černý Conjecture holds with high probability. J. Autom. Lang. Comb. 24(2–4), 343–365 (2019)

    MathSciNet  MATH  Google Scholar 

  29. Ramírez Alfonsín, J.L.: The Diophantine Frobenius Problem. Oxford University Press (2005)

  30. Rystsov, I.K.: Asymptotic estimate of the length of a diagnostic word for a finite automaton. Cybernetics 16(1), 194–198 (1980)

    Article  MathSciNet  Google Scholar 

  31. Rystsov, I.K.: Polynomial complete problems in automata theory. Inf. Process. Lett. 16(3), 147–151 (1983)

    Article  MathSciNet  Google Scholar 

  32. Sandberg, S.: Homing and synchronizing sequences. In: Broy, M., Jonsson, B., Katoen, J.-P., Leucker, M., Pretschner, A. (eds.) Model-Based Testing of Reactive Systems, LNCS, 3472, 5–33. Springer (2005)

  33. Shabana, H.: \(D_2\)-synchronization in nondeterministic automata. Ural Math. J. 4(2), 99–110 (2018)

    Article  MathSciNet  Google Scholar 

  34. Shabana, H.: Exact synchronization in partial deterministic automata. J. Phys. Conf. Ser. 1352, 1–8 (2019)

    Article  Google Scholar 

  35. Shabana, H., Volkov, M.V.: Using Sat solvers for synchronization issues in nondeterministic automata. Siberian Electron. Math. Rep. 15, 1426–1442 (2018)

    MATH  Google Scholar 

  36. Shabana, H., Volkov, M.V.: Using Sat solvers for synchronization issues in partial deterministic automata. In: Bykadorov, I., Strsuevich, V.A., Tchemisova, T. (eds.), Mathematical Optimization Theory and Operation Research, 18th International Conference, MOTOR 2019. Communications in Computer and Information Science, Springer 1090, 103–118 (2019)

  37. Skvortsov, E., Tipikin, E.: Experimental study of the shortest reset word of random automata. In: Bouchou-Markhoff, B., Caron, P., Champarnaud, J.-M., Maurel, D. (eds.), Implementation and Application of Automata, 16th International Conference, CIAA 2011. LNCS, Springer 6807, 290–298 (2011)

  38. Travers, N., Crutchfield, J.: Exact synchronization for finite-state sources. J. Stat. Phys. 145(5), 1181–1201 (2011)

    Article  MathSciNet  Google Scholar 

  39. Travers, N., Crutchfield, J.: Asymptotic synchronization for finite-state sources. J. Stat. Phys. 145(5), 1202–1223 (2011)

    Article  MathSciNet  Google Scholar 

  40. Türker, U.. C.: Parallel brute-force algorithm for deriving reset sequences from deterministic incomplete finite automata. Turk. J. Electr. Eng. Comput. Sci. 27, 3544–3556 (2019)

    Article  Google Scholar 

  41. Volkov, M.V.: Synchronizing automata and the Černý conjecture. In: Martín-Vide, C., Otto, F., Fernau, H. (eds.), Languages and Automata Theory and Applications, 2nd International Conference, LATA 2008. LNCS, Springer 5196, 11–27 (2008)

  42. Zubkov, A.M.: Computation of distributions of the numbers of components and cyclic points for random mappings. Mat. Vopr. Kriptogr., 1(2), 5–18 (2010) (in Russian)

Download references

Acknowledgements

We are grateful to the reviewers for a number of valuable remarks and suggestions.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to M. V. Volkov.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supported by the Ministry of Science and Higher Education of the Russian Federation, project FEUZ-2020-0016.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Shabana, H., Volkov, M.V. Careful synchronization of partial deterministic finite automata. Acta Informatica 59, 479–504 (2022). https://doi.org/10.1007/s00236-022-00433-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00236-022-00433-1

Navigation