KonkurStudy
همه کارت‌ها

Binary Heaps: Heapify and Build-Heap

A binary heap is a complete binary tree stored in an array; MAX-HEAPIFY repairs one node by sifting it down in Θ(lg⁡n)\Theta(\lg n), while BUILD-MAX-HEAP turns an unordered array into a heap bottom-up in Θ(n)\Theta(n) — not Θ(nlg⁡n)\Theta(n\lg n).

کارت الگوریتم کنکور ارشد علوم کامپیوتر