Question: Problem 1.1. Is the sequence (23, 18, 14, 6, 13, 10, 1, 5, 7, 12) a max-heap? Can you call MAX-HEAPIFY (A, i) to make

Problem 1.1. Is the sequence (23, 18, 14, 6, 13, 10, 1, 5, 7, 12) a max-heap? Can you call MAX-HEAPIFY (A, i) to make it a max-heap for a single i? Why? Problem 1.2. What is the effect of calling MAX-HEAPIFY (A, i) for i > heap- size[A]/2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
