State complexity is an area of theoretical computer science dealing with the size of abstract automata, such as different kinds of finite automata. The classical result in the area is that simulating an -state nondeterministic finite automaton by a deterministic finite automaton requires exactly states in the worst case.
Transformation between variants of finite automata
editFinite automata can be deterministic and nondeterministic, one-way (DFA, NFA) and two-way (2DFA, 2NFA). Other related classes are unambiguous (UFA), self-verifying (SVFA) and alternating (AFA) finite automata. These automata can also be two-way (2UFA, 2SVFA, 2AFA).
All these machines can accept exactly the regular languages. However, the size of different types of automata necessary to accept the same language (measured in the number of their states) may be different. For any two types of finite automata, the state complexity tradeoff between them is an integer function where is the least number of states in automata of the second type sufficient to recognize every language recognized by an -state automaton of the first type. The following results are known.
- NFA to DFA: states. This is the subset construction by Rabin and Scott,[1] proved optimal by Lupanov.[2]
- UFA to DFA: states, see Leung,[3] An earlier lower bound by Schmidt[4] was smaller.
- NFA to UFA: states, see Leung.[3] There was an earlier smaller lower bound by Schmidt.[4]
- SVFA to DFA: states, see Jirásková and Pighizzini[5]
- 2DFA to DFA: states, see Kapoutsis.[6] Earlier construction by Shepherdson[7] used more states, and an earlier lower bound by Moore[8] was smaller.
- 2DFA to NFA: , see Kapoutsis.[6] Earlier construction by Birget[9] used more states.
- 2NFA to NFA: , see Kapoutsis.[6]
- AFA to DFA: states, see Chandra, Kozen and Stockmeyer.[11]
- AFA to NFA: states, see Fellah, Jürgensen and Yu.[12]
- 2AFA to DFA: , see Ladner, Lipton and Stockmeyer.[13]
- 2AFA to NFA: , see Geffert and Okhotin.[14]
The 2DFA vs. 2NFA problem and logarithmic space
editIt is an open problem whether all 2NFAs can be converted to 2DFAs with polynomially many states, i.e. whether there is a polynomial such that for every -state 2NFA there exists a -state 2DFA. The problem was raised by Sakoda and Sipser,[15] who compared it to the P vs. NP problem in the computational complexity theory. Berman and Lingas[16] discovered a formal relation between this problem and the L vs. NL open problem. This relation was further elaborated by Kapoutsis.[17]
State complexity of operations for finite automata
editGiven a binary regularity-preserving operation on languages and a family of automata X (DFA, NFA, etc.), the state complexity of is an integer function such that
- for each m-state X-automaton A and n-state X-automaton B there is an -state X-automaton for , and
- for all integers m, n there is an m-state X-automaton A and an n-state X-automaton B such that every X-automaton for must have at least states.
Analogous definition applies for operations with any number of arguments.
The first results on state complexity of operations for DFAs were published by Maslov [18] and by Yu, Zhuang and Salomaa. [19] Holzer and Kutrib [20] pioneered the state complexity of operations on NFA. The known results for basic operations are listed below.
Union
editIf language requires m states and language requires n states, how many states does require?
- DFA: states, see Maslov[18] and Yu, Zhuang and Salomaa.[19]
- NFA: states, see Holzer and Kutrib.[20]
- UFA: at least ;[21] between and states, see Jirásek, Jirásková and Šebej.[22]
- SVFA: states, see Jirásek, Jirásková and Szabari.[23]
- 2DFA: between and states, see Kunc and Okhotin.[24]
- 2NFA: states, see Kunc and Okhotin.[25]
Intersection
editHow many states does require?
- DFA: states, see Maslov[18] and Yu, Zhuang and Salomaa.[19]
- NFA: states, see Holzer and Kutrib.[20]
- UFA: states, see Jirásek, Jirásková and Šebej.[22]
- SVFA: states, see Jirásek, Jirásková and Szabari.[23]
- 2DFA: between and states, see Kunc and Okhotin.[24]
- 2NFA: between and states, see Kunc and Okhotin.[25]
Complementation
editIf language L requires n states then how many states does its complement require?
- DFA: states, by exchanging accepting and rejecting states.
- NFA: states, see Birget.[26] or Jirásková[27]
- UFA: at least states, see Göös, Kiefer and Yuan,[21] (this follows an earlier bound by Raskin[28]); and at most states, see Indzhev and Kiefer.[29]
- SVFA: states, by exchanging accepting and rejecting states.
- 2DFA: at least and at most states, see Geffert, Mereghetti and Pighizzini.[30]
Concatenation
editHow many states does require?
- DFA: states, see Maslov [18] and Yu, Zhuang and Salomaa.[19]
- NFA: states, see Holzer and Kutrib.[20]
- UFA: states, see Jirásek, Jirásková and Šebej.[22]
- SVFA: states, see Jirásek, Jirásková and Szabari.[23]
- 2DFA: at least and at most states, see Jirásková and Okhotin.[31]
Kleene star
edit- DFA: states, see Maslov[18] and Yu, Zhuang and Salomaa.[19]
- NFA: states, see Holzer and Kutrib.[20]
- UFA: states, see Jirásek, Jirásková and Šebej.[22]
- SVFA: states, see Jirásek, Jirásková and Szabari.[23]
- 2DFA: at least and at most states, see Jirásková and Okhotin.[31]
Reversal
editFinite automata over a unary alphabet
editState complexity of finite automata with a one-letter (unary) alphabet, pioneered by Chrobak,[34] is different from the multi-letter case.
Let be Landau's function.
Transformation between models
editFor a one-letter alphabet, transformations between different types of finite automata are sometimes more efficient than in the general case.
- NFA to DFA: states, see Chrobak.[34]
- 2DFA to DFA: states, see Chrobak[34] and Kunc and Okhotin.[35]
- 2NFA to DFA: states, see Mereghetti and Pighizzini.[36] and Geffert, Mereghetti and Pighizzini.[37]
- NFA to 2DFA: at most states, see Chrobak.[34]
- 2NFA to 2DFA: at most states, proved by implementing the method of Savitch's theorem, see Geffert, Mereghetti and Pighizzini.[37]
- UFA to DFA: , see Okhotin.[38]
- NFA to UFA: , see Okhotin.[38]
Union
edit- DFA: states, see Yu, Zhuang and Salomaa.[19]
- NFA: states, see Holzer and Kutrib.[20]
- 2DFA: between and states, see Kunc and Okhotin.[24]
- 2NFA: states, see Kunc and Okhotin.[25]
Intersection
edit- DFA: states, see Yu, Zhuang and Salomaa.[19]
- NFA: states, see Holzer and Kutrib.[20]
- 2DFA: between and states, see Kunc and Okhotin.[24]
- 2NFA: between and states, see Kunc and Okhotin.[25]
Complementation
edit- DFA: states.
- NFA: states, see Holzer and Kutrib.[20]
- UFA: at least states, see Raskin,[39] and at most states, see Okhotin.[38]
- 2DFA: at least and at most states, see Kunc and Okhotin.[24]
- 2NFA: at least and at most states. The upper bound is by implementing the method of the Immerman–Szelepcsényi theorem, see Geffert, Mereghetti and Pighizzini.[30]
Concatenation
edit- DFA: states, see Yu, Zhuang and Salomaa.[19]
- NFA: between and states, see Holzer and Kutrib.[20]
- 2DFA: states, see Kunc and Okhotin.[24]
- 2NFA: states, see Kunc and Okhotin.[24]
Kleene star
editFurther reading
editSurveys of state complexity were written by Holzer and Kutrib[40][41] and by Gao et al.[42]
New research on state complexity is commonly presented at the annual workshops on Descriptional Complexity of Formal Systems (DCFS), at the Conference on Implementation and Application of Automata (CIAA), and at various conferences on theoretical computer science in general.
References
edit- ^ Rabin, M. O.; Scott, D. (1959). "Finite Automata and Their Decision Problems". IBM Journal of Research and Development. 3 (2): 114–125. doi:10.1147/rd.32.0114. ISSN 0018-8646.
- ^ Lupanov, Oleg B. (1963). "A comparison of two types of finite sources". Problemy Kibernetiki. 9: 321–326.
- ^ a b Leung, Hing (2005). "Descriptional complexity of NFA of different ambiguity". International Journal of Foundations of Computer Science. 16 (5): 975–984. doi:10.1142/S0129054105003418. ISSN 0129-0541.
- ^ a b Schmidt, Erik M. (1978). Succinctness of Description of Context-Free, Regular and Unambiguous Languages (Ph.D.). Cornell University.
- ^ Jirásková, Galina; Pighizzini, Giovanni (2011). "Optimal simulation of self-verifying automata by deterministic automata". Information and Computation. 209 (3): 528–535. doi:10.1016/j.ic.2010.11.017. ISSN 0890-5401.
- ^ a b c Kapoutsis, Christos (2005). "Removing Bidirectionality from Nondeterministic Finite Automata". Mathematical Foundations of Computer Science 2005. Lecture Notes in Computer Science. Vol. 3618. pp. 544–555. doi:10.1007/11549345_47. ISBN 978-3-540-28702-5. ISSN 0302-9743.
- ^ Shepherdson, J. C. (1959). "The Reduction of Two-Way Automata to One-Way Automata". IBM Journal of Research and Development. 3 (2): 198–200. doi:10.1147/rd.32.0198. ISSN 0018-8646.
- ^ Moore, F.R. (1971). "On the Bounds for State-Set Size in the Proofs of Equivalence Between Deterministic, Nondeterministic, and Two-Way Finite Automata". IEEE Transactions on Computers. C-20 (10): 1211–1214. doi:10.1109/T-C.1971.223108. ISSN 0018-9340. S2CID 206618275.
- ^ Birget, Jean-Camille (1993). "State-complexity of finite-state devices, state compressibility and incompressibility". Mathematical Systems Theory. 26 (3): 237–269. doi:10.1007/BF01371727. ISSN 0025-5661. S2CID 20375279.
- ^ Vardi, Moshe Y. (1989). "A note on the reduction of two-way automata to one-way automata". Information Processing Letters. 30 (5): 261–264. CiteSeerX 10.1.1.60.464. doi:10.1016/0020-0190(89)90205-6. ISSN 0020-0190.
- ^ Chandra, Ashok K.; Kozen, Dexter C.; Stockmeyer, Larry J. (1981). "Alternation". Journal of the ACM. 28 (1): 114–133. doi:10.1145/322234.322243. ISSN 0004-5411. S2CID 238863413.
- ^ Fellah, A.; Jürgensen, H.; Yu, S. (1990). "Constructions for alternating finite automata∗". International Journal of Computer Mathematics. 35 (1–4): 117–132. doi:10.1080/00207169008803893. ISSN 0020-7160.
- ^ Ladner, Richard E.; Lipton, Richard J.; Stockmeyer, Larry J. (1984). "Alternating Pushdown and Stack Automata". SIAM Journal on Computing. 13 (1): 135–155. doi:10.1137/0213010. ISSN 0097-5397.
- ^ Geffert, Viliam; Okhotin, Alexander (2014). Transforming Two-Way Alternating Finite Automata to One-Way Nondeterministic Automata. Lecture Notes in Computer Science. Vol. 8634. pp. 291–302. doi:10.1007/978-3-662-44522-8_25. ISBN 978-3-662-44521-1. ISSN 0302-9743.
- ^ Sakoda, William J.; Sipser, Michael (1978). "Nondeterminism and the Size of Two Way Finite Automata". Proceedings of the tenth annual ACM symposium on Theory of computing - STOC '78. STOC 1978. ACM. pp. 275–286. doi:10.1145/800133.804357.
- ^ Berman, Piotr; Lingas, Andrzej (1977). On the complexity of regular languages in terms of finite automata. Vol. Report 304. Polish Academy of Sciences.
- ^ Kapoutsis, Christos A. (2014). "Two-Way Automata Versus Logarithmic Space". Theory of Computing Systems. 55 (2): 421–447. doi:10.1007/s00224-013-9465-0. S2CID 14808151.
- ^ a b c d e Maslov, A. N. (1970). "Estimates of the number of states of finite automata". Soviet Mathematics - Doklady. 11: 1373–1375.
- ^ a b c d e f g h i j Yu, Sheng; Zhuang, Qingyu; Salomaa, Kai (1994). "The state complexities of some basic operations on regular languages". Theoretical Computer Science. 125 (2): 315–328. doi:10.1016/0304-3975(92)00011-F. ISSN 0304-3975.
- ^ a b c d e f g h i j k Holzer, Markus; Kutrib, Martin (2003). "Nondeterministic descriptional complexity of regular languages". International Journal of Foundations of Computer Science (Submitted manuscript). 14 (6): 1087–1102. doi:10.1142/S0129054103002199. ISSN 0129-0541.
- ^ a b Göös, Mika; Kiefer, Stefan; Yuan, Weiqiang (12 February 2022). "Lower Bounds for Unambiguous Automata via Communication Complexity". arXiv:2109.09155 [cs.FL].
- ^ a b c d Jirásek, Jozef; Jirásková, Galina; Šebej, Juraj (2016). Operations on Unambiguous Finite Automata. Lecture Notes in Computer Science. Vol. 9840. pp. 243–255. doi:10.1007/978-3-662-53132-7_20. ISBN 978-3-662-53131-0. ISSN 0302-9743.
- ^ a b c d e Jirásek, Jozef Štefan; Jirásková, Galina; Szabari, Alexander (2015). Computer Science -- Theory and Applications. Lecture Notes in Computer Science. Vol. 9139. pp. 231–261. doi:10.1007/978-3-319-20297-6_16. ISBN 978-3-319-20296-9. ISSN 0302-9743.
- ^ a b c d e f g h i Kunc, Michal; Okhotin, Alexander (2012). "State complexity of operations on two-way finite automata over a unary alphabet". Theoretical Computer Science. 449: 106–118. doi:10.1016/j.tcs.2012.04.010. ISSN 0304-3975.
- ^ a b c d Kunc, Michal; Okhotin, Alexander (2011). "State Complexity of Union and Intersection for Two-way Nondeterministic Finite Automata". Fundamenta Informaticae. 110 (1–4): 231–239. doi:10.3233/FI-2011-540.
- ^ Birget, Jean-Camille (1993). "Partial orders on words, minimal elements of regular languages, and state complexity". Theoretical Computer Science. 119 (2): 267–291. doi:10.1016/0304-3975(93)90160-U. ISSN 0304-3975.
- ^ Jirásková, Galina (2005). "State complexity of some operations on binary regular languages". Theoretical Computer Science. 330 (2): 287–298. doi:10.1016/j.tcs.2004.04.011., Theorem 5
- ^ Raskin, Mikhail (2018). "A Superpolynomial Lower Bound for the Size of Non-Deterministic Complement of an Unambiguous Automaton". DROPS-IDN/V2/Document/10.4230/LIPIcs.ICALP.2018.138. Schloss-Dagstuhl - Leibniz Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2018.138.
- ^ Indzhev, Emil; Kiefer, Stefan (1 August 2022). "On complementing unambiguous automata and graphs with many cliques and cocliques". Information Processing Letters. 177: 106270. arXiv:2105.07470. doi:10.1016/j.ipl.2022.106270. ISSN 0020-0190. S2CID 234741832. Retrieved 29 May 2022.
- ^ a b Geffert, Viliam; Mereghetti, Carlo; Pighizzini, Giovanni (2007). "Complementing two-way finite automata". Information and Computation. 205 (8): 1173–1187. doi:10.1016/j.ic.2007.01.008. ISSN 0890-5401.
- ^ a b c Jirásková, Galina; Okhotin, Alexander (2008). On the State Complexity of Operations on Two-Way Finite Automata. Lecture Notes in Computer Science. Vol. 5257. pp. 443–454. doi:10.1007/978-3-540-85780-8_35. ISBN 978-3-540-85779-2. ISSN 0302-9743.
- ^ Mirkin, Boris G. (1966). "On dual automata". Cybernetics. 2: 6–9. doi:10.1007/bf01072247. S2CID 123186223.
- ^ Leiss, Ernst (1985). "Succinct representation of regular languages by boolean automata II". Theoretical Computer Science. 38: 133–136. doi:10.1016/0304-3975(85)90215-4. ISSN 0304-3975.
- ^ a b c d Chrobak, Marek (1986). "Finite automata and unary languages". Theoretical Computer Science. 47: 149–158. doi:10.1016/0304-3975(86)90142-8. ISSN 0304-3975.
- ^ Kunc, Michal; Okhotin, Alexander (2011). Developments in Language Theory. Lecture Notes in Computer Science. Vol. 6795. pp. 324–336. CiteSeerX 10.1.1.616.8835. doi:10.1007/978-3-642-22321-1_28. ISBN 978-3-642-22320-4. ISSN 0302-9743.
- ^ Mereghetti, Carlo; Pighizzini, Giovanni (2001). "Optimal Simulations between Unary Automata". SIAM Journal on Computing. 30 (6): 1976–1992. doi:10.1137/S009753979935431X. hdl:2434/35121. ISSN 0097-5397.
- ^ a b Geffert, Viliam; Mereghetti, Carlo; Pighizzini, Giovanni (2003). "Converting two-way nondeterministic unary automata into simpler automata". Theoretical Computer Science. 295 (1–3): 189–203. doi:10.1016/S0304-3975(02)00403-6. ISSN 0304-3975.
- ^ a b c d Okhotin, Alexander (2012). "Unambiguous finite automata over a unary alphabet". Information and Computation. 212: 15–36. doi:10.1016/j.ic.2012.01.003. ISSN 0890-5401.
- ^ Raskin, Michael (2018). "A superpolynomial lower bound for the size of non-deterministic complement of an unambiguous automaton". Proc. ICALP 2018. pp. 138:1–138:11. doi:10.4230/LIPIcs.ICALP.2018.138.
- ^ Holzer, Markus; Kutrib, Martin (2009). "Nondeterministic finite automata — recent results on the descriptional and computational complexity". International Journal of Foundations of Computer Science. 20 (4): 563–580. doi:10.1142/S0129054109006747. ISSN 0129-0541.
- ^ Holzer, Markus; Kutrib, Martin (2011). "Descriptional and computational complexity of finite automata—A survey". Information and Computation. 209 (3): 456–470. doi:10.1016/j.ic.2010.11.013. ISSN 0890-5401.
- ^ Gao, Yuan; Moreira, Nelma; Reis, Rogério; Yu, Sheng (2015). "A Survey on Operational State Complexity". arXiv:1509.03254v1 [cs.FL].