Skip to main content
Log in

Two-Way Automata Versus Logarithmic Space

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

Abstract

We strengthen a previously known connection between the size complexity of two-way finite automata () and the space complexity of Turing machines (tms). Specifically, we prove that

  • every s-state has a poly(s)-state that agrees with it on all inputs of length ≤s if and only if NLL/poly, and

  • every s-state has a poly(s)-state that agrees with it on all inputs of length ≤2s if and only if NLLLL/polylog.

Here, and are the deterministic and nondeterministic , NL and L/poly are the standard classes of languages recognizable in logarithmic space by nondeterministic tms and by deterministic tms with access to polynomially long advice, and NLL and LL/polylog are the corresponding complexity classes for space O(loglogn) and advice length poly(logn). Our arguments strengthen and extend an old theorem by Berman and Lingas and can be used to obtain variants of the above statements for other modes of computation or other combinations of bounds for the input length, the space usage, and the length of advice.

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

Similar content being viewed by others

Notes

  1. Note the unusual forms ‘AB’ and ‘AB’. In cases where AB (e.g., when A=2D & B=2N), these are of course equivalent to the more usual ‘A=B’ and ‘A⊆̷B’. However, we will encounter cases where AB is not true (e.g., when A=2D & B=2N/poly or when A=L/poly & B=NL—see below) and hence ‘AB’ and ‘AB’ are appropriate. We thus use these forms throughout the article, so that all statements are easy to compare. We read and think of these forms as ‘A covers/does not cover B’.

  2. Note that a set of designated final states F is not really necessary in this definition. Since the accepts by falling off ⊣, designating all states as accepting or just one state as accepting (e.g., q 0) would have had the same effect. With F, our definition stays comparable to other standard finite automata definitions.

  3. Note that, in contrast, for an with n>m we have no guarantee that A m  agrees with M under . It may be that the computation tree τ n of M on input x and advice y n =ε uses f(n) work tape cells on every accepting branch. Hence, if f(n)>f(m), our A m will be missing some of the states necessary to simulate these accepting branches in its computation tree \(\tau _{m}'\) on x. Therefore, τ n  will be accepting but \(\tau _{m}'\) will be rejecting—despite the fact that y n =y m =ε.

  4. These trailing 0s are, in fact, redundant. They are included in the definition just for symmetry with the definitions of the variants in the next two paragraphs.

  5. More tightly, the expansion of the first reduction is O(s 2 σ)+mlgσ. But the looser O(s 2 σm) is simpler and does not harm our conclusions, since it is later (Theorem 3.0, forward direction) fed to an unspecified polynomial. Similar looseness is adopted elsewhere, too.

  6. The actual statement of [3, Theorem 6] is very close to the usual citation (8); however, it also includes a pointer to a Remark a few pages later (p. 17), which explains that the promised can be constructed in logarithmic space and that with this observation the theorem becomes an equivalence. We also note that the actual statement of [3, Theorem 6] uses sm as the length bound, for s the number of states in the , whereas the full statement (\(8^{\scriptscriptstyle +}\)) uses just m; the two statements are equivalent, but (\(8^{\scriptscriptstyle +}\)) is simpler and facilitates comparison with subsequent statements.

References

  1. Alberts, M.: Space complexity of alternating Turing machines. In: Proceedings of FCT, pp. 1–7 (1985)

    Google Scholar 

  2. Aleliunas, R., Karp, R.M., Lipton, R.J., Lovász, L., Rackoff, C.: Random walks, universal traversal sequences, and the complexity of maze problems. In: Proceedings of FOCS, pp. 218–223 (1979)

    Google Scholar 

  3. Berman, P., Lingas, A.: On complexity of regular languages in terms of finite automata. Report 304, Institute of Computer Science, Polish Academy of Sciences, Warsaw (1977)

  4. Geffert, V., Pighizzini, G.: Two-way unary automata versus logarithmic space. Inf. Comput. 209(7), 1016–1025 (2011)

    Article  MATH  MathSciNet  Google Scholar 

  5. Geffert, V., Mereghetti, C., Pighizzini, G.: Converting two-way nondeterministic unary automata into simpler automata. Theor. Comput. Sci. 295, 189–203 (2003)

    Article  MATH  MathSciNet  Google Scholar 

  6. Hopcroft, J.E., Ullman, J.D.: Some results on tape-bounded Turing machines. J. ACM 16(1), 168–177 (1967)

    Article  MathSciNet  Google Scholar 

  7. Hromkovič, J., Schnitger, G.: Nondeterminism versus determinism for two-way finite automata: generalizations of Sipser’s separation. In: Proceedings of ICALP, pp. 439–451 (2003)

    Google Scholar 

  8. Ibarra, O.H., Ravikumar, B.: Sublogarithmic-space Turing machines, nonuniform space complexity, and closure properties. Math. Syst. Theory 21, 1–17 (1988)

    Article  MATH  MathSciNet  Google Scholar 

  9. Kapoutsis, C.: Deterministic moles cannot solve liveness. J. Autom. Lang. Comb. 12(1–2), 215–235 (2007)

    MATH  MathSciNet  Google Scholar 

  10. Kapoutsis, C.: Nondeterminism is essential in small 2FAs with few reversals. In: Proceedings of ICALP, vol. 2, pp. 192–209 (2011)

    Google Scholar 

  11. Karp, R.M., Lipton, R.J.: Some connections between nonuniform and uniform complexity classes. In: Proceedings of STOC, pp. 302–309 (1980)

    Google Scholar 

  12. Kuroda, S.: Classes of languages and linear-bounded automata. Inf. Control 7, 207–223 (1964)

    Article  MATH  MathSciNet  Google Scholar 

  13. Sakoda, W.J., Sipser, M.: Nondeterminism and the size of two-way finite automata. In: Proceedings of STOC, pp. 275–286 (1978)

    Google Scholar 

  14. Savitch, W.J.: Relationships between nondeterministic and deterministic tape complexities. J. Comput. Syst. Sci. 4, 177–192 (1970)

    Article  MATH  MathSciNet  Google Scholar 

  15. Seiferas, J.I.: Untitled manuscript, communicated to M. Sipser (1973)

  16. Shepherdson, J.C.: The reduction of two-way automata to one-way automata. IBM J. Res. Dev. 3, 198–200 (1959)

    Article  MathSciNet  Google Scholar 

  17. Stearns, R.E., Hartmanis, J., Lewis, P.M. II: Hierarchies of memory limited computations. In: Proceedings of SWCT, pp. 179–190 (1965)

    Google Scholar 

  18. Szepietowski, A.: If deterministic and nondeterministic space complexities are equal for loglogn then they are also equal for logn. In: Proceedings of STACS, pp. 251–255 (1989)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Christos A. Kapoutsis.

Additional information

Research funded by a Marie Curie Intra-European Fellowship (pief-ga-2009-253368) within the European Union Seventh Framework Programme (fp7/2007-2013).

Rights and permissions

Reprints and permissions

About this article

Cite this article

Kapoutsis, C.A. Two-Way Automata Versus Logarithmic Space. Theory Comput Syst 55, 421–447 (2014). https://doi.org/10.1007/s00224-013-9465-0

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-013-9465-0

Keywords

Navigation