Question: Datsruct in C its for max heap tree, but make it for min heap tree. Explain on how to make the program, its for learning
Datsruct in C
its for max heap tree, but make it for min heap tree. Explain on how to make the program, its for learning purpose
Make a program that simulates Max Heap Tree. Below will describe the requirements.
The program consists of menus, there are:
Insert
View
Pop
Exit
Figure Main Menu
If the user chooses Insert Menu then:
Ask the user to input a number. Validate that the number must be between and
Insert the data into the treebased Max Heap Tree concept.
If data has been successfully inputted, show the message Insert Success
Figure Insert Menu
If the user chooses View Menu then print the tree to the screenlike the image
Figure View Menu
If the user chooses Pop Menu then:
if there is no data in the tree, print There is no data
Delete the data of the root of the tree The tree should keep the max heap rules
Figure Delete Menu
If the user chooses Exit Menu then:
Delete all data in the tree.
Termintate the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
