Skip to main content

2021 | OriginalPaper | Buchkapitel

Succinct Representations for (Non)Deterministic Finite Automata

verfasst von : Sankardeep Chakraborty, Roberto Grossi, Kunihiko Sadakane, Srinivasa Rao Satti

Erschienen in: Language and Automata Theory and Applications

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Deterministic finite automata are one of the simplest and most practical models of computation studied in automata theory. Their extension is the non-deterministic finite automata which also have plenty of applications. In this article, we study these models through the lens of succinct data structures where our ultimate goal is to encode these mathematical objects using information theoretically optimal number of bits along with supporting queries on them efficiently. Towards this goal, we first design a succinct data structure for representing any deterministic finite automaton \(\mathcal {D}\) having n states over a \(\sigma \)-letter alphabet \(\varSigma \) using \((\sigma -1) n\log n (1+o(1))\) bits, which can determine, given an input string x over \(\varSigma \), whether \(\mathcal {D}\) accepts x in optimal O(|x|) time. We also consider the case when there are \(N < \sigma n\) non-failure transitions, and obtain various time-space trade-offs in both the cases. When the input deterministic finite automaton \(\mathcal {A}\) is acyclic, not only we can improve the above space bound significantly to \((\sigma -1) (n-1)\log n+ O(n + \log ^2 \sigma )\) bits, we can also check if an input string x over \(\varSigma \) can be accepted by \(\mathcal {A}\) optimally in O(|x|) time. We also exhibit a succinct data structure for representing a non-deterministic finite automaton \(\mathcal {N}\) having n states over a \(\sigma \)-letter alphabet \(\varSigma \) using \(\sigma n^2+n\) bits of space, such that given an input string x, we can decide whether \(\mathcal {N}\) accepts x efficiently in \(O(n^2|x|)\) time. Finally, we also provide time and space efficient algorithms for performing several standard operations such as union, intersection and complement on the languages accepted by deterministic finite automata.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Fußnoten
1
A directed graph with labels on its arcs is deterministic if no two out-neighbor arcs have the same label. Since there are \(\lceil \log {n^2 \atopwithdelims ()N} \rceil \) directed graphs [13] with n nodes and N arcs, each deterministic graph \(G=(V,E)\) can have \(L = \prod _{u \in V} d_u!\) label assignments for its arcs, where \(d_u\) s the out-degree of node u and \(N = \sum _{u \in V} d_u\). Note that \(\log L = \varTheta (N \log \sigma )\) when labels are from \(\varSigma \) and thus \(d_u \le \sigma \).
 
Literatur
2.
Zurück zum Zitat Almeida, M., Moreira, N., Reis, R.: Enumeration and generation with a string automata representation. Theor. Comput. Sci. 387(2), 93–102 (2007)MathSciNetCrossRef Almeida, M., Moreira, N., Reis, R.: Enumeration and generation with a string automata representation. Theor. Comput. Sci. 387(2), 93–102 (2007)MathSciNetCrossRef
3.
Zurück zum Zitat Bassino, F., Nicaud, C.: Enumeration and random generation of accessible automata. Theor. Comput. Sci. 381(1–3), 86–104 (2007)MathSciNetCrossRef Bassino, F., Nicaud, C.: Enumeration and random generation of accessible automata. Theor. Comput. Sci. 381(1–3), 86–104 (2007)MathSciNetCrossRef
4.
Zurück zum Zitat Chakraborty, S., Grossi, R., Sadakane, K., Satti, S.R.: Succinct representation for (non) deterministic finite automata. CoRR abs/1907.09271 (2019) Chakraborty, S., Grossi, R., Sadakane, K., Satti, S.R.: Succinct representation for (non) deterministic finite automata. CoRR abs/1907.09271 (2019)
5.
Zurück zum Zitat Clark, D.R.: Compact pat trees. Ph.D. thesis, University of Waterloo, Canada (1996) Clark, D.R.: Compact pat trees. Ph.D. thesis, University of Waterloo, Canada (1996)
6.
Zurück zum Zitat Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 3 edn. MIT Press, Cambridge (2009) Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 3 edn. MIT Press, Cambridge (2009)
7.
Zurück zum Zitat Cotumaccio, N., Prezza, N.: On indexing and compressing finite automata. CoRR abs/2007.07718 (2020) Cotumaccio, N., Prezza, N.: On indexing and compressing finite automata. CoRR abs/2007.07718 (2020)
8.
Zurück zum Zitat Diestel, R.: Graph Theory, 4th edn. Graduate texts in mathematics, vol. 173. Springer, Heidelberg (2012) Diestel, R.: Graph Theory, 4th edn. Graduate texts in mathematics, vol. 173. Springer, Heidelberg (2012)
9.
Zurück zum Zitat Dodis, Y., Patrascu, M., Thorup, M.: Changing base without losing space. In: STOC, pp. 593–602 (2010) Dodis, Y., Patrascu, M., Thorup, M.: Changing base without losing space. In: STOC, pp. 593–602 (2010)
10.
11.
Zurück zum Zitat Domaratzki, M., Kisman, D., Shallit, J.: On the number of distinct languages accepted by finite automata with n states. J. Autom. Lang. Comb. 7(4), 469–486 (2002)MathSciNetMATH Domaratzki, M., Kisman, D., Shallit, J.: On the number of distinct languages accepted by finite automata with n states. J. Autom. Lang. Comb. 7(4), 469–486 (2002)MathSciNetMATH
12.
Zurück zum Zitat Equi, M., Grossi, R., Mäkinen, V., Tomescu, A.I.: On the complexity of string matching for graphs. In: 46th ICALP. LIPIcs, vol. 132, pp. 55:1–55:15 (2019) Equi, M., Grossi, R., Mäkinen, V., Tomescu, A.I.: On the complexity of string matching for graphs. In: 46th ICALP. LIPIcs, vol. 132, pp. 55:1–55:15 (2019)
13.
14.
Zurück zum Zitat Flajolet, P., Sedgewick, R.: Analytic Combinatorics. Cambridge University Press, Cambridge (2009) Flajolet, P., Sedgewick, R.: Analytic Combinatorics. Cambridge University Press, Cambridge (2009)
15.
Zurück zum Zitat Gagie, T., Manzini, G., Sirén, J.: Wheeler graphs: a framework for BWT-based data structures. Theor. Comput. Sci. 698, 67–78 (2017)MathSciNetCrossRef Gagie, T., Manzini, G., Sirén, J.: Wheeler graphs: a framework for BWT-based data structures. Theor. Comput. Sci. 698, 67–78 (2017)MathSciNetCrossRef
16.
Zurück zum Zitat Hopcroft, J.E., Motwani, R., Ullman, J.D.: Introduction to Automata Theory, Languages, and Computation - International Edition, 2 edn. Addison-Wesley, Boston (2003) Hopcroft, J.E., Motwani, R., Ullman, J.D.: Introduction to Automata Theory, Languages, and Computation - International Edition, 2 edn. Addison-Wesley, Boston (2003)
17.
Zurück zum Zitat Jacobson, G.J.: Succinct static data structures. Ph.D. thesis, Carnegie Mellon University (1998) Jacobson, G.J.: Succinct static data structures. Ph.D. thesis, Carnegie Mellon University (1998)
18.
Zurück zum Zitat Liskovets, V.A.: Exact enumeration of acyclic deterministic automata. Discrete Appl. Math. 154(3), 537–551 (2006)MathSciNetCrossRef Liskovets, V.A.: Exact enumeration of acyclic deterministic automata. Discrete Appl. Math. 154(3), 537–551 (2006)MathSciNetCrossRef
19.
Zurück zum Zitat Munro, J.I., Raman, V.: Succinct representation of balanced parentheses and static trees. SIAM J. Comput. 31(3), 762–776 (2001)MathSciNetCrossRef Munro, J.I., Raman, V.: Succinct representation of balanced parentheses and static trees. SIAM J. Comput. 31(3), 762–776 (2001)MathSciNetCrossRef
20.
Zurück zum Zitat Navarro, G., Sadakane, K.: Fully functional static and dynamic succinct trees. ACM Trans. Algorithms 10(3), 16 (2014)MathSciNetCrossRef Navarro, G., Sadakane, K.: Fully functional static and dynamic succinct trees. ACM Trans. Algorithms 10(3), 16 (2014)MathSciNetCrossRef
21.
Zurück zum Zitat Raman, R., Raman, V., Satti, S.R.: Succinct indexable dictionaries with applications to encoding k-ary trees, prefix sums and multisets. ACM Trans. Algorithms 3(4), 43 (2007)MathSciNetCrossRef Raman, R., Raman, V., Satti, S.R.: Succinct indexable dictionaries with applications to encoding k-ary trees, prefix sums and multisets. ACM Trans. Algorithms 3(4), 43 (2007)MathSciNetCrossRef
22.
Zurück zum Zitat Sipser, M.: Introduction to the Theory of Computation. PWS Publishing Company, Boston (1997) Sipser, M.: Introduction to the Theory of Computation. PWS Publishing Company, Boston (1997)
Metadaten
Titel
Succinct Representations for (Non)Deterministic Finite Automata
verfasst von
Sankardeep Chakraborty
Roberto Grossi
Kunihiko Sadakane
Srinivasa Rao Satti
Copyright-Jahr
2021
DOI
https://doi.org/10.1007/978-3-030-68195-1_5