complete binary trees and their representation implementing priority queue with heap java heap implementation heap-sort bottom-up heap construction adaptable priority queues methods of the adaptable priority queue adt