In: Computer Science
Basically Heap is a collection of objects that placed one after the other in general term
Comming to computer science,the definition of heap is:In some progaming languagae heap is a reserved computer storage area where process is stored in a variable.let us say for example when an cpu executing a program it takes many inputs from user during processing .as already it takes some memory from system it is easy to process and manage storage.
In computer science,we also termed Heap as a specilazed Data Structered with parent and child nodes arranged acordingly.Heap can also be used as priority queue.and the most important element is always at the top.priority queues are useful in finding problems like shortest path.Heap can also to for sorting data.
by seeing we can say heap is simple but the implementation of heap is somewhat differrnt and thinkable.
when we deal with heap most of time for algorithm is upheaping and downheaping