What is Binary heap?
A complete binary tree in which each parent's value is greater than or equal to (max-heap) or less than or equal to (min-heap) its children's values. It can be stored in an array: with the root at a[0], the children of a[i] are a[2i+1] and a[2i+2]. Reading the maximum (minimum) takes O(1), and insertion and removal take O(log n); it is used for priority queues and heapsort.
Japanese name: 二分ヒープ
Binary heap appears in 2 practice questions across 1 topic, including Data Structures and Algorithms.