Question: Total = 1 5 marks ( answer each question in the given space ) 1 ) ( 8 marks ) If we call BuildHeap on

Total =15 marks (answer each question in the given space)1)(8 marks) If we call BuildHeap on the given array A =[2,3,4,5,6,7,8,9,10,11,12] then1.How many times Heapify will be called by BuildHeap (non recursive calls)?2.Total how many times Heapify will be called recursively ?3.After BuildHeap call, which elements in A will not move from their original location. 4.Write the content of the array after BuildHeap call.2)(7 marks) How would you modify LCS algorithm so that it solves Longest Common Substring problem using dynamic programming. Write the algorithm for it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!