Paper record
W2005317775An Analysis of a Memory Allocation Scheme for Implementing Stacks
Andrew Chi-Chih Yao
- Year
- 1981
- Venue
- SIAM Journal on Computing
- References
- 1
- Cited by
- 33
Details and counts from OpenAlex.
Abstract
Consider the implementation of two stacks by letting them grow towards each other in a table of size m. Suppose a random sequence of insertions and deletions is executed, with each instruction having a fixed probability to be a deletion. Let denote the expected value of $\max \{ x,y\} $, where x and y are the stack heights when the table first becomes full. We shall prove that, as $m \to \infty $, . This gives a solution to an open problem in Knuth [The Art of Computer Programming, Vol. 1, Exercise 2.2.2-13].