Q64
MCQ2 marks, −0.5Let S be a stack of size . Starting with the empty stack, suppose we push the first n natural numbers in sequence, and then perform pop operations. Assume that Push and Pop operations take seconds each, and seconds elapse between the end of one such stack operation and the start of the next operation. For , define the stack-life of as the time elapsed from the end of to the start of the pop operation that removes from S. The average stack-life of an element of this stack is
Sign in to save attempts.
Loading…