Saturday, December 5, 2020

Difference between creating a heap and heapify

 Creating a Heap is inserting all the elements of a given array into an existing heap assuming the first element of the given array as the initial heap, where as Heapify is simply creating a CBT ( complete binary tree) with all the elements of the given array and then converting that CBT into a heap, by moving up from the last non-leaf node up to the root.

No comments:

Post a Comment

Class X IT notes: Part A, Unit 1, Session 1.

 IT notes class 10 Unit 1: COMMUNICATION SKILLS Session 1: METHODS & TYPES OF COMMUNICATION Q1. What is communication? Communication is ...