user
Create an example for the given data structure.

Heap


assistant
A heap can be used to store a sequence of values in a tree-like structure. For example, a heap might be used to store a sequence of exam scores so that the largest score can be pulled out easily. The heap would contain the scores in order, with the largest value at the top of the heap, and the smaller values below it.