Give a formal proof that any sequence ofnappend or pop operations on
an initially empty dynamic array takesO(n) time, if using the strategy
described in Exercise C-5.16.
Consider a variant of Exercise C-5.16, in which an array of capacityNis
resized to capacity precisely that of the number of elements, any time the
number of elements in the array goes strictly belowN/4. Give a formal
proof that any sequence ofnappend or pop operations on an initially
empty dynamic array takesO(n) time.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here