Skip to main content

Derived-Term Automata for Extended Weighted Rational Expressions

  • Conference paper
  • First Online:
Theoretical Aspects of Computing – ICTAC 2016 (ICTAC 2016)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9965))

Included in the following conference series:

  • 497 Accesses

Abstract

We present an algorithm to build an automaton from a rational expression. This approach introduces support for extended weighted expressions. Inspired by derived-term based algorithms, its core relies on a different construct, rational expansions. We introduce an inductive algorithm to compute the expansion of an expression from which the automaton follows. This algorithm is independent of the size of the alphabet, and actually even supports infinite alphabets. It can easily be accommodated to generate deterministic (weighted) automata. These constructs are implemented in Vcsn, a free-software platform dedicated to weighted automata and rational expressions.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    See the interactive environment, http://vcsn-sandbox.lrde.epita.fr, or http://vcsn.lrde.epita.fr/dload/2.3/notebooks/expression.derived_term.html, its documentation, or this paper’s companion notebook, http://vcsn.lrde.epita.fr/dload/2.3/notebooks/ICTAC-2016.html.

  2. 2.

    The induction is on the length of the word u in , which is defined for all q and all words of the given length simultaneously.

  3. 3.

    Vcsn 2.2 as of 2016-05-16, compiled with Clang 3.6 with options -O3 -DNDEBUG, and run on a Mac OS X 10.11.4, Intel Core i7 2.9GHz, 8GB of RAM. Best run out of five.

References

  1. Allauzen, C., Mohri, M.: A unified construction of the Glushkov, follow, and Antimirov automata. In: Královič, R., Urzyczyn, P. (eds.) MFCS 2006. LNCS, vol. 4162, pp. 110–121. Springer, Heidelberg (2006). doi:10.1007/11821069_10

    Chapter  Google Scholar 

  2. Angrand, P.-Y., Lombardy, S., Sakarovitch, J.: On the number of broken derived terms of a rational expression. J. Automata Lang. Comb. 15(1/2), 27–51 (2010)

    Google Scholar 

  3. Antimirov, V.: Partial derivatives of regular expressions and finite automaton constructions. TCS 155(2), 291–319 (1996)

    Article  MathSciNet  MATH  Google Scholar 

  4. Brzozowski, J.A.: Derivatives of regular expressions. J. ACM 11(4), 481–494 (1964)

    Article  MathSciNet  MATH  Google Scholar 

  5. Caron, P., Champarnaud, J.-M., Mignot, L.: Partial derivatives of an extended regular expression. In: Dediu, A.-H., Inenaga, S., Martín-Vide, C. (eds.) LATA 2011. LNCS, vol. 6638, pp. 179–191. Springer, Heidelberg (2011). doi:10.1007/978-3-642-21254-3_13

    Chapter  Google Scholar 

  6. Champarnaud, J.-M., Ziadi, D.: From Mirkin’s prebases to Antimirov’s word partial derivatives. Fundam. Inf. 45(3), 195–205 (2001)

    MathSciNet  MATH  Google Scholar 

  7. Champarnaud, J.-M., Ziadi, D.: Canonical derivatives, partial derivatives and finite automaton constructions. TCS 289(1), 137–163 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  8. Champarnaud, J.-M., Ouardi, F., Ziadi, D.: An efficient computation of the equation \(\mathbb{K}\)-automaton of a regular \(\mathbb{K}\)-expression. In: Harju, T., Karhumäki, J., Lepistö, A. (eds.) DLT 2007. LNCS, vol. 4588, pp. 145–156. Springer, Heidelberg (2007). doi:10.1007/978-3-540-73208-2_16

    Chapter  Google Scholar 

  9. Demaille, A.: Derived-term automata of multitape rational expressions. In: Han, Y.-S., Salomaa, K. (eds.) CIAA 2016. LNCS, vol. 9705, pp. 51–63. Springer, Heidelberg (2016). doi:10.1007/978-3-319-40946-7_5

    Chapter  Google Scholar 

  10. Demaille, A., Duret-Lutz, A., Lombardy, S., Sakarovitch, J.: Implementation concepts in Vaucanson 2. In: Konstantinidis, S. (ed.) CIAA 2013. LNCS, vol. 7982, pp. 122–133. Springer, Heidelberg (2013). doi:10.1007/978-3-642-39274-0_12

    Chapter  Google Scholar 

  11. Fischer, S., Huch, F., Wilke, T.: A play on regular expressions: functional pearl. In: Proceedings of the 15th ACM SIGPLAN International Conference on Functional Programming, ICFP 2010, pp. 357–368. ACM (2010)

    Google Scholar 

  12. Glushkov, V.M.: The abstract theory of automata. Russ. Math. Surv. 16, 1–53 (1961)

    Article  MathSciNet  MATH  Google Scholar 

  13. Kaplan, R.M., Kay, M.: Regular models of phonological rule systems. Comput. Linguist. 20(3), 331–378 (1994)

    Google Scholar 

  14. Lombardy, S., Sakarovitch, J.: Derivatives of rational expressions with multiplicity. TCS 332(1–3), 141–177 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  15. McNaughton, R., Yamada, H.: Regular expressions and state graphs for automata. IEEE Trans. Electron. Comput. 9, 39–47 (1960)

    Article  MATH  Google Scholar 

  16. Mirkin, B.G.: An algorithm for constructing a base in a language of regular expressions. Eng. Cybern. 5, 110–116 (1966)

    Google Scholar 

  17. Owens, S., Reppy, J., Turon, A.: Regular-expression derivatives re-examined. J. Funct. Program. 19(2), 173–190 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  18. Rutten, J.J.M.M.: Behavioural differential equations: a coinductive calculus of streams, automata, and power series. TCS 308(1–3), 1–53 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  19. Sakarovitch, J.: Elements of Automata Theory. Cambridge University Press (2009). Corrected English translation of Éléments de théorie des automates, Vuibert, 2003

    Google Scholar 

Download references

Acknowledgments

Interactions with A. Duret-Lutz, S. Lombardy, L. Saiu and J. Sakarovitch resulted in this work. Anonymous reviewers made very helpful comments. In particular, an anonymous reviewer of ICALP 2016 contributed the proof of Theorem 1, much simpler than the original one (which was still based on derivatives), and proposed the benchmark of Sect. 4.4.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Akim Demaille .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing AG

About this paper

Cite this paper

Demaille, A. (2016). Derived-Term Automata for Extended Weighted Rational Expressions. In: Sampaio, A., Wang, F. (eds) Theoretical Aspects of Computing – ICTAC 2016. ICTAC 2016. Lecture Notes in Computer Science(), vol 9965. Springer, Cham. https://doi.org/10.1007/978-3-319-46750-4_20

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-46750-4_20

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-46749-8

  • Online ISBN: 978-3-319-46750-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics