Exam (elaborations)
CMPUT 204 Exercise 4 Questions with 100% Correct Answers.
- Course
- Institution
Illustrate the operation of MAX-HEAP-INSERT(A,10) on A = (15,13,9,5,12,8,7,4,0,6,2,1) Correct Answer Append -infinity, then repeatedly call HEAP-INCREASE-KEY to bubble it up The operation HEAP-DELETE(A, i) deletes node i from A, give an implementation in log n Correct Answer if A[i] > A[heaps...
[Show more]