STL源碼剖析(四)heap--priority_queue

文章目錄 1. heap概述 2. 爲何選擇heap作爲priority queue的底層機制? 3. binary heap 4. heap算法 5. priority_queue 1. heap概述 heap,即我們在數據結構中所說的堆;在STL中我們所應用到priority queue中作爲其操作實現的是binary max heap(最大二叉堆),是一種complete binary tr
相關文章
相關標籤/搜索