Question: coding must be done in c# Question 4 (9 marks) a) (2 marks) Draw the binary heap that is represented by the following array A
coding must be done in c#
Question 4 (9 marks) a) (2 marks) Draw the binary heap that is represented by the following array A 10 40 20 5070603080 4 b) (4 marks) Using the BuildHeap method, rebuild A where higher values have higher priority c) (3 marks) Consider the (partial) definition of the generic class PriorityQueue implemented as a binary heap. Briefly describe the purpose of the method Mystery class PriorityQueue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
