#What is meant by heap, binary heap and priority queue in data structure and algorithm

1 messages · Page 1 of 1 (latest)

sly ridge
#

Can someone explain what is meant by a heap? More precisely a binary heap; how is it related to a primary queue (just to confirm, a primary queue is a data structure that allows us to process a particular item based on its priority right?)

mild smelt
#

heyy, i think a heap it's a specific type of tree data structure but maybe heap is a "family" of data structures bc on priority queue u can use it too. Im studiying data structures for a exam, but im not sure if my answer its correctCuteBlushingHearts