圖二(c)。 如此一來,有被 MaxHeapify() 檢查過的subtree,都會符合Max Heap規則。 因此,只要對所有「具有child的node」檢查一次 MaxHeapify() ,便能夠把一個任意 ...
確定! 回上一頁