Skip to main content

On the Uniform Distribution of Regular Expressions

  • Conference paper
  • First Online:
Descriptional Complexity of Formal Systems (DCFS 2021)

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

Included in the following conference series:

  • 156 Accesses

Abstract

Although regular expressions do not correspond univocally to regular languages, it is still worthwhile to study their properties and algorithms. For the average case analysis one often relies on the uniform random generation using a specific grammar for regular expressions, that can represent regular languages with more or less redundancy. Generators that are uniform on the set of expressions are not necessarily uniform on the set of regular languages. Nevertheless, it is not straightforward that asymptotic estimates obtained by considering the whole set of regular expressions are different from those obtained using a more refined set that avoids some large class of equivalent expressions. In this paper we study a set of expressions that avoid a given absorbing pattern. It is shown that, although this set is significantly smaller than the standard one, the asymptotic average estimates for the size of the Glushkov automaton for these expressions does not differ from the standard case.

This work was partially supported by CMUP, through FCT - Fundação para a Ciência e a Tecnologia, I.P., under the project with reference UIDB/00144/2020.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    It is actually true that \(|\varDelta _k(z)-p_k(z)| < |p_k(z)|\) for all \(|z| = \frac{1}{\sqrt{8+8k}}\) and \(k\ge 2\).

  2. 2.

    These polynomials are quite large, e.g. \(q_k\) has 437 monomials and degree \(10+28k\).

References

  1. Broda, S., Machiavelo, A., Moreira, N., Reis, R.: On the average size of Glushkov and partial derivative automata. Int. J. Found. Comput. Sci. 23(5), 969–984 (2012)

    Article  MathSciNet  Google Scholar 

  2. Broda, S., Machiavelo, A., Moreira, N., Reis, R.: On average behaviour of regular expressions in strong star normal form. Int. J. Found. Comput. Sci. 30(6–7), 899–920 (2019)

    Article  MathSciNet  Google Scholar 

  3. Broda, S., Machiavelo, A., Moreira, N., Reis, R.: Analytic combinatorics and descriptional complexity of regular languages on average. ACM SIGACT News 51(1), 38–56 (2020)

    Article  MathSciNet  Google Scholar 

  4. Buchberger, B.: Gröbner bases: a short introduction for systems theorists. In: Moreno-Díaz, R., Buchberger, B., Luis Freire, J. (eds.) EUROCAST 2001. LNCS, vol. 2178, pp. 1–19. Springer, Heidelberg (2001). https://doi.org/10.1007/3-540-45654-6_1

    Chapter  Google Scholar 

  5. Flajolet, P., Sedgewick, R.: Analytic Combinatorics. CUP (2008)

    Google Scholar 

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

    Article  MathSciNet  Google Scholar 

  7. Koechlin, F., Nicaud, C., Rotondo, P.: Uniform random expressions lack expressivity. In: Rossmanith, P., Heggernes, P., Katoen, J. (eds.) 44th MFCS 2019, vol. 138, pp. 51:1–51:14. LIPIcs (2019)

    Google Scholar 

  8. Koechlin, F., Nicaud, C., Rotondo, P.: On the degeneracy of random expressions specified by systems of combinatorial equations. In: Jonoska, N., Savchuk, D. (eds.) DLT 2020. LNCS, vol. 12086, pp. 164–177. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-48516-0_13

    Chapter  Google Scholar 

  9. Nicaud, C.: On the average size of Glushkov’s automata. In: Dediu, A.H., Ionescu, A.M., Martín-Vide, C. (eds.) LATA 2009. LNCS, vol. 5457, pp. 626–637. Springer, Heidelberg (2009). https://doi.org/10.1007/978-3-642-00982-2_53

    Chapter  MATH  Google Scholar 

  10. Nicaud, C.: Random deterministic automata. In: Csuhaj-Varjú, E., Dietzfelbinger, M., Ésik, Z. (eds.) MFCS 2014. LNCS, vol. 8634, pp. 5–23. Springer, Heidelberg (2014). https://doi.org/10.1007/978-3-662-44522-8_2

    Chapter  Google Scholar 

  11. Simon, B.: Basic Complex Analysis, vol. 2A. American Mathematical Society, Providence (2015)

    Book  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Rogério Reis .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 IFIP International Federation for Information Processing

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Broda, S., Machiavelo, A., Moreira, N., Reis, R. (2021). On the Uniform Distribution of Regular Expressions. In: Han, YS., Ko, SK. (eds) Descriptional Complexity of Formal Systems. DCFS 2021. Lecture Notes in Computer Science(), vol 13037. Springer, Cham. https://doi.org/10.1007/978-3-030-93489-7_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-93489-7_2

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-93488-0

  • Online ISBN: 978-3-030-93489-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics