a. Construct a heap for the list W, E, L, C, O, M, E by either the
Fantastic news! We've Found the answer you've been seeking!
Question:
b. Apply heapsort to sort the above list. Show the intermediate heap of each step.
c. Discuss the best case, worst case, and average case of heapsort
d. Is heapsort stable? Why? If not, give a counterexample.
e. Is heapsort in-place? Why? If not, give a counterexample.
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: