What is Heap?

Answer Posted / nisha nair

A data structure called heap is a binary tree with keys
assigned to its nodes provided it satisfies two
requirements:

1. Tree shape requirement.
2. Parental domainance requirement.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a structural principle?

637


Why clrscr is used after variable declaration?

1035


Why is a semicolon (;) put at the end of every program statement?

622


What is binary tree in c?

617


What does %p mean c?

623






What is the symbol indicated the c-preprocessor?

692


I have seen function declarations that look like this

598


What is structure padding and packing in c?

614


What will be the outcome of the following conditional statement if the value of variable s is 10?

757


Write a simple code fragment that will check if a number is positive or negative.

704


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2238


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

629


What is a void * in c?

591


Explain what is the best way to comment out a section of code that contains comments?

712


Why header files are used?

642