COMP2402: Data Structures: Fall 2020Note: This is the webpage for the Fall 2020 offering of this course. It's only left here in case someone finds it useful as a reference.https://cglab.ca/~morin/teaching/2402/Min-max heapIn computer science, a min-max heap is a complete binary tree data structure which combines the usefulness of both a min-heap and a max-heap, that is, it provides constant time retrieval and logarithmic time removal of both the minimum and maximum elements in it.[2] This makes the min-max heap a very useful data structure to implement a double-ended priority queue. Like binary min-heaps and max-heaps, min-max heaps support logarithmic insertion and deletion and can be built in linear time.[3] Min-max heaps are often represented implicitly in an array;[4] hence it's referred to as an implicit data structure.https://en.wikipedia.org/wiki/Min-max_heapJörg-Rüdiger SackJörg-Rüdiger Wolfgang Sack is a professor of computer science at Carleton University, where he holds the SUN–NSERC chair in Applied Parallel Computing.https://en.wikipedia.org/wiki/J%C3%B6rg-R%C3%BCdiger_Sack