Question: Match each heap method to its big-O running time. Heap Insert (either Max- Heap-Insert or Min-Heap- Insert) 1. O(1) [constant time] 2. O(lg n) 3.

Match each heap method to its big-O running time. Heap Insert (either Max- Heap-Insert or Min-Heap- Insert) 1. O(1) [constant time] 2. O(lg n) 3. O(n) 4. O(n Ig n) 5. O(n2) Build-Heap yHeap Extract (either Heap-Extract-Max or Heao-Extract-Min) Insert Heapify (either max- heapify or min-heapify) Heapsort
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
