Question: its a java algorithm question its urgent thank you can you describe it detailed please Algorithm Design (Heaps) 6. (20 points) Please write a method
its a java algorithm question its urgent thank you can you describe it detailed please

Algorithm Design (Heaps) 6. (20 points) Please write a method that converts a maximum binary heap to a minimum binary heap. Your algorithm should run in linear time (i.e. O(N)). a) First explain how your method works in 2-3 sentences, b) Secondly, write the Java code for the method: public static void convert Heap ( int[a, int n) { c) Explain the big-O complexity of your algorithm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
