Abstract
We investigate the relative efficiency of a finite number of stacks in comparison to several variants of deques. In the nondeterministic setting, two stacks can simulate a general deque in linear time. This implies a negative answer to the question raised by Brandenburg whether a deque can simulate a finite number of tapes in linear time. Wealso show that in realtime an output-restricted deque cannot simulate two stacks for deterministic computations. It is known that a general deque can be simulated deterministically by three stacks in linear time. We describe an approach that is simpler to analyze and has a smaller constant factor (with respect to the required stack operations) than a previous solution.
Supported by “Deutsche Akademie der Naturforscher Leopoldina”, grant number BMBF-LPD 9901/8-1 of “Bundesministerium für Bildung und Forschung”.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Kathleen Ayers Deque automata and a subfamily of context-sensitive languages which contains all semilinear bounded languages. Theoretical Computer Science, 40:163–174, 1985.
Ronald V. Book and Sheila A. Greibach Quasi-realtime languages. Mathematical Systems Theory, 4:97–111, 1970.
Franz J. Brandenburg A note on:’ Deque automata and a subfamily of contextsensitive languages which contains all semilinear bounded languages’ (by K. Ayers). Theoretical Computer Science, 52:341–342, 1987.
Tyng-Ruey Chuang and Benjamin Goldberg Real-time deques, multihead Turing machines, and purely functional programming. In Conference on Functional Programming Languages and Computer Architecture, pages 289–298, 1993.
Patrick C. Fischer, Albert R. Meyer, and Arnold L. Rosenberg Real-time simulation of multihead tape units. Journal of the Association for Computing Machinery, 19:590–607, 1972.
Zvi Galil, Ravi Kannan, and Endre Szemeredi On nontrivial separators for k-page graphs and simulations by nondeterministic one-tape Turing machines. In Proceedings of the 18th ACM Symposium on Theory of Computing (STOC), Berkeley, California, pages 39–49, 1986.
Juris Hartmanis and Richard E. Stearns On the computational complexity of algorithms. Transactions of the American Mathematical Society, 117:285–306, 1965.
Robert Hood and Robert Melville Real time queue operations in pure Lisp. Information Processing Letters, 13:50–54, 1981.
Tao Jiang, Joel I. Seiferas, and Paul M. B. Vit#x00E1;nyi Two heads are better than two tapes. Journal of the Association for Computing Machinery, 44:237–256, 1997.
Donald E. Knuth The Art of Computer Programming, volume 1. Addison-Wesley, Reading Mass., 3rd edition, 1997.
Benton L. Leong and Joel I. Seiferas New real-time simulations of multihead tape units. Journal of the Association for Computing Machinery, 28:166–180, 1981.
Ming Li Simulating two pushdown stores by one tape in O(n1.5vlog n) time. Journal of Computer and System Sciences, 37:101–116, 1988.
Ming Li, Luc Longpré, and Paul Vitányi The power of the queue. SIAM Journal on Computing, 21:697–712, 1992.
Ming Li and Paul Vitányi An Introduction to Kolmogorov Complexity and its Applications. Springer, Berlin-Heidelberg-New York, 1993.
Ming Li and Paul M. B. Vitányi Tape versus queue and stacks: The lower bounds. Information and Computation, 78:56–85, 1988.
Burton Rosenberg Simulating a stack by queues. In Proceedings of the XIX Latinamerican Conference on Computer Science, volume 1, pages 3–13, 1993.
Hanns-Jörg Stoß k-Band Simulation von k-Kopf Turingmaschinen. (k-tape simulation of k-head Turing machines). Computing, 6:309–317, 1970. In German.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2001 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Petersen, H. (2001). Stacks versus Deques. In: Wang, J. (eds) Computing and Combinatorics. COCOON 2001. Lecture Notes in Computer Science, vol 2108. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44679-6_24
Download citation
DOI: https://doi.org/10.1007/3-540-44679-6_24
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-42494-9
Online ISBN: 978-3-540-44679-8
eBook Packages: Springer Book Archive